Java Errors Closing Windows

3 vues (au cours des 30 derniers jours)
Joel
Joel le 22 Août 2014
Commenté : Image Analyst le 22 Août 2014
In the last year of so I get a lot of errors like this: "UIJ_AreThereWindowShowsPending - timeout waiting for window to show up" when I am trying to display figures.
Here is some background on the problem. (1) I am running Matlab 2010b at home and 2011a in my office and have seen it in both places. (2) Is this a windows 7 issue? I run that OS but I use the 32 bit version. (3) Most of my code runs in a loop where I aquire some data from hardware (cameras, other instruments) and update a figure frequently. (4) I only have a single figure open at at time
I'd like to know if there is an official fix for this. Right now I have to litter my code with try catch statements to work around the issue. Experimented with changing the amount of memory for the "Java Heap". Whatever that is. Results inconclusive so far
Thanks, Joel

Réponses (1)

Image Analyst
Image Analyst le 22 Août 2014
I've never seen that, even in old versions, and I have lots of camera acquisition applications.
What window is trying to show up? You say you have only one figure open at a time but you're thrashing windows with "I am trying to display figures". Are you sure the old window is shutdown before the new one comes up, not that that should make any difference? If the window you're shutting down is tied to a camera are you sure you deleted the video object variable for that video stream before you shut down the window?
You have a very old version. Have you kept current with your maintenance contract? If so, upgrade to the latest release and call tech support if it happens again.
  2 commentaires
Joel
Joel le 22 Août 2014
Modifié(e) : Image Analyst le 22 Août 2014
That you for the follow up. I also run 2012 on my laptop and have seen it there too. Haven't tried it in 2013 or 2014 yet.
I wonder if this related to the shg command? like
while(1)
im = getsnapshot(usb device);
imshow(im)
shg
pause(0.02);
end
Image Analyst
Image Analyst le 22 Août 2014
I don't see why shg is necessary - I never use it and your figure is already showing anyway, no need to show it again.
By the way, I hope you have some other, unshown way of exiting that while loop.

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by