App Designer shuts down when processing big files

조회 수: 2 (최근 30일)
Simon Allosserie
Simon Allosserie 2022년 5월 31일
댓글: dpb 2022년 6월 9일
I have an app that processes .tif files in different resolutions. It compares two images printed on two different printers to check colour differences.
This is done by plotting all the pixels on 2D and 3D axes in LAB spaces, and variables like Delta E are calculated for each pixel.
Now I am processing relatively large images (100 MB). When processing smaller images, everything works fine. When I process these 'big' images, the app closes itself during the calculations. The only error I get is that the next step cannot be executed anymore ("Invalid or deleted object")
Is this a known behaviour of App Designer, that an app shuts itself off when too much needs to be calculated/plotted? As there are no error messages to learn from, I have no idea where it goes wrong...
As it works fine for other files, I assume the code on itself isn't faulty, but there must be something that shuts down the app?
  댓글 수: 5
Simon Allosserie
Simon Allosserie 2022년 6월 9일
I tried working with breakpoints but it didn't give more information. Steps just worked fine and then out of nowhere it shut down again.
What is even weirder is that on some occasions, the calculations did go through, while on other moments exactly the samen calculations blocked again. So maybe it has more to do something with the Matlab usage of the cores and allocation of memory or something like that.
The app.DataTab is just a reference to one of the tabs in the tab group. This command just tells the GUI to show that tab in front (as if you as a user would click on the tab header to switch to that tab).
dpb
dpb 2022년 6월 9일
I think you would have to send the app and data file(s) that cause the problem to TMW with an official support request -- not much anybody here can do as it is certain it is not an intended/design feature within AppDesigner.
Have you the facility to be able to try another machine/installation to see if is reproducible?
It sounds most like the exhaustion of a system resource; it's always possible even if unlikely your specific code has uncovered a memory leak or HG2 handles leak or somesuch...
Have you watched system monitor during execution?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by