Page 1 of 1

Exception: Timeout in ActionThread.CallWait()

Posted: Sun Feb 14, 2010 6:00 pm
by wkumeling
After installing the latest version (EventGhost 0.3.7.r1436, 11.8 MB, Feb 11 2010) to get hold of the ELV FS20 PCS plugin, eventually everything seemed to work fine.
But after a restart of my computer (Windows XP SP2) the following extract of the log pane comes up and EventGhost is not working. Even to kill the program I have to go to taskmanager and kill the process.

18:30:45 Plugin: ELV FS20 PCS
18:32:44 Stack trace (most recent call last) (1436):
18:32:44 File "threading.pyc", line 497, in __bootstrap
18:32:44 File "threading.pyc", line 525, in __bootstrap_inner
18:32:44 File "threading.pyc", line 477, in run
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 179, in __MainLoop
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 201, in __DoOneEvent
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 224, in HandleAction
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 127, in StartSession
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 308, in CallWait
18:32:44 Unhandled exception in WorkerThread <EventThread>:
18:32:44 Callers stack:
18:32:44 File "wx\_core.pyc", line 8007, in MainLoop
18:32:44 File "wx\_core.pyc", line 7303, in MainLoop
18:32:44 File "wx\_core.pyc", line 14618, in <lambda>
18:32:44 Traceback (most recent call last) (1436):
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 201, in __DoOneEvent
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 224, in HandleAction
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 127, in StartSession
18:32:44 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 310, in CallWait
18:32:44 Exception: Timeout in ActionThread.CallWait()

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sun Feb 14, 2010 6:17 pm
by Bartman
Can you replace the file HID.py in the EG directory from svn?
http://www.eventghost.org/svn/trunk/eg/WinApi/HID.py
I encountered a race condition and hopefully fixed it in the svn last week

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sun Feb 14, 2010 9:13 pm
by wkumeling
Thanks,
Now it works fine!
Keep up the good work.

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sat Mar 06, 2010 8:37 pm
by wkumeling
Still encountering problems.
My computer reboots every night in order to start a certain program fresh.
Not always but often I get the following in the log pane:

Autostart
Plugin: Task Create/Switch Events
Plugin: ELV FS20 PCE
Plugin: File Operations
Plugin: ELV FS20 PCS
Stack trace (most recent call last) (1436):
File "threading.pyc", line 497, in __bootstrap
File "threading.pyc", line 525, in __bootstrap_inner
File "threading.pyc", line 477, in run
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 179, in __MainLoop
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 201, in __DoOneEvent
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 224, in HandleAction
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 127, in StartSession
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 308, in CallWait
Unhandled exception in WorkerThread <EventThread>:
Callers stack:
File "wx\_core.pyc", line 8007, in MainLoop
File "wx\_core.pyc", line 7303, in MainLoop
File "wx\_core.pyc", line 14618, in <lambda>
Traceback (most recent call last) (1436):
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 201, in __DoOneEvent
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 224, in HandleAction
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 127, in StartSession
File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 310, in CallWait
Exception: Timeout in ActionThread.CallWait()

Afterwards it is only possible to kill the app with task manager. Even when I am starting manually afterwards I get the above listing in the log pane.
Can you have another look at this problem? The app is in no way reliable to use with the ELV interfaces.

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sat Mar 06, 2010 8:43 pm
by Bartman
Can you post a log with timestamps?
Does anything change if you change the order of the plugin loading?
I haven't had a problem after the last fixes. I could make a build outputting some extra debug infos if started in debug mode.

Just wondering why you still have SP2 running. There are well over a dozen USB related bugfixes after that.

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sat Mar 06, 2010 9:47 pm
by wkumeling
I changed the order in which the plugins are started (first PCS, second PCE and than the others) and it becomes clear the driver for the ELV FS20 PCS transmitter is causing the problem.
The reason for running SP2 is the fact that this little computer is running on flash memory with limited resources. SP3 could make things worse for the other applications.
Herewith a timestamped logfile:
22:42:42 ---> Welcome to EventGhost <---
22:42:42 Autostart
22:42:42 Plugin: ELV FS20 PCS
22:44:42 Stack trace (most recent call last) (1436):
22:44:42 File "threading.pyc", line 497, in __bootstrap
22:44:42 File "threading.pyc", line 525, in __bootstrap_inner
22:44:42 File "threading.pyc", line 477, in run
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 179, in __MainLoop
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 201, in __DoOneEvent
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 224, in HandleAction
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 127, in StartSession
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 308, in CallWait
22:44:42 Unhandled exception in WorkerThread <EventThread>:
22:44:42 Callers stack:
22:44:42 File "wx\_core.pyc", line 8007, in MainLoop
22:44:42 File "wx\_core.pyc", line 7303, in MainLoop
22:44:42 File "wx\_core.pyc", line 14618, in <lambda>
22:44:42 Traceback (most recent call last) (1436):
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 201, in __DoOneEvent
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 224, in HandleAction
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\EventThread.py", line 127, in StartSession
22:44:42 File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 310, in CallWait
22:44:42 Exception: Timeout in ActionThread.CallWait()

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Mon Mar 08, 2010 9:27 pm
by Bartman
With added debug output I also encounter the error occasionally.
Don't know why at the moment though...

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sun Mar 21, 2010 3:28 pm
by Bartman
I changed the init behavior of the HID Thread.
could you please update the HID.py and tell the results?

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sun Mar 21, 2010 9:25 pm
by wkumeling
Thanks for the effort! I installed already.
I will let it run a couple of days and tell you afterwards.
So please stay tuned ;-)
Wilfried Kumeling

Re: Exception: Timeout in ActionThread.CallWait()

Posted: Sun Mar 28, 2010 8:51 pm
by wkumeling
After one week of rebooting every night the application is now running fine and stable.
It seems the problem is fixed.
Thanks and continue with the good work!