Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to stop UIJ_AreThereWindowShowsPending errors

599 views
Skip to first unread message

Joel

unread,
Jun 1, 2012, 2:15:22 PM6/1/12
to
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

Jesper Holm

unread,
Aug 12, 2014, 4:20:12 AM8/12/14
to
I've been googling about this error from time to time without having solved it. And I have NOT found any useful tips on how to solve it. I also have matlab scripts that run "forever" in a similar way as yours (i.e. run in a loop and plot something every 2 hours).

I've more or less learned to live with the error (I only see it a 3-5 times a year).

Anyway... I have in the past struggled a lot with Matlab memory leaks related to figures. My scripts are deployed as Matlab Compiler Runtime executables that run 24-7 so even small memory leaks will slowly add up and sooner or later cause strange things to happen. Such leaks do not show up for "normal" matlab users where you likely just terminate Matlab after use.

In order to "monitor" this I have used the "memory" command. I have then logged the data to a file in order to watch memory usage over time. One thing I did learn was that figure annotations caused memory leaks (proven in versions 2011 and 2012). The ONLY way to reclaim memory was to exit matlab and start all over.

So... This is probably totally unrelated to the "timeout for window to show up" error, but the "memory" command may help you debug the problem.

PS : I know that your post is old, but others may be looking for tips as well :-)
0 new messages