Hello Everyone,
I am running some code using parfor loop which takes several hours to finish.
I get this error every time I check on my PC to see the status.
I checked my machine after leaving it overnight.
I have a Win7 64 bit and 8 GB of Ram.
Any suggestions is much appreciated.
Cheers,
Ash
java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Sourc

댓글 수: 7

Walter Roberson
Walter Roberson 2012년 7월 19일
What steps are you taking to "check the status" of your machine?
Nitin
Nitin 2012년 7월 19일
편집: Nitin 2012년 7월 19일
Thanks Walter.
I have the function display ('Folder working on etc...') on my command window which helps me to keep track when processing on each folder is completed. I also have the tic and toc after each parfor loop.
The error mentioned above appears on the command window when I check my machine after several hours...
Thanks
Walter Roberson
Walter Roberson 2012년 7월 19일
Ah, so the error message is being produced before you check, but you don't see it until you look. As opposed to it being the action of checking that triggers the error message.
Which MATLAB version are you using?
Nitin
Nitin 2012년 7월 19일
편집: Nitin 2012년 7월 19일
Actually I can see the error on the command window a few seconds after I log into my machine again..
I lock my machine before I leave and when I log in I see the error... it only happens when I log in after several hours...on the other hand if i log in after a few minutes I can see that the experiment is still running fine without any problem..
I am using MATLAB (R2011b) 7.13 64-bit (win64)
Thanks
Sean de Wolski
Sean de Wolski 2012년 7월 19일
Are you on a remote desktop or multimonitor system?
Nitin
Nitin 2012년 7월 19일
Hi Sean,
Yes I am on a multimonitor system and I also log in remotely using Logmein sometimes.
Thanks
Sean de Wolski
Sean de Wolski 2012년 7월 19일
I would test these as well along with locking your computer.

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

 채택된 답변

Jan
Jan 2012년 7월 19일

2 개 추천

Is any GUI open during the computer is locked?
The Java Dispatch Thread is resonsible for managing Java objects as e.g. uicontrols and the command window. It is possible that locking the machine causes delays, which confuse the Dispatch Thread. So what about avoiding the locking?

댓글 수: 3

Nitin
Nitin 2012년 7월 19일
Hi Jan,
As mentioned, I also that suspect locking the machine might be the cause behind the error although it only happens only I log in after several hours. I will avoid the unlocking and see how it goes..
Cheers,
Nitin
Nitin 2012년 7월 24일
Hello everyone,
Just a quick update.
I have not had this error again since I left the machine unlocked as suggested by Jan. I also dragged both Matlab windows to my main monitor rather than leaving them on the secondary monitor as Sean suggested (by the way I am using MultiMon taskbar on my secondary monitor)
Cheers,
Nathan McNutt
Nathan McNutt 2016년 5월 7일
I restarted my MATLAB program and closed command prompt which was running in the background. Now my problem is fixed! Thanks so much

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

추가 답변 (1개)

fatemeh haghighi
fatemeh haghighi 2019년 7월 29일

0 개 추천

I have the same problem,
The error is only about some sheets of excel and not all of them.

카테고리

도움말 센터File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

태그

질문:

2012년 7월 19일

답변:

2019년 7월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by