Event ghost crashed after resume from standby

Found a bug in EventGhost? Report it here.

Event ghost crashed after resume from standby

Postby mielens » Mon Nov 15, 2010 8:25 pm

Hi, my OS is Windows 7 Home 32 bits. Sometimes (may be 1 per day) Eventghost crashed after resume from standby. I have tried many releases bat with all of them error is the same. After that eventghost do not respond to any command. Below is log from my setup:

Close
Start Program: CLI.exe
Clear Pending Events
UIRT2.NEC.004CCC32
Close
Find Window: uDigital Theatre.exe
UIRT2.SIRC12.00AF
UIRT2.SIRC12.00AF
UIRT2.Unknown.17D55FD5575FD75FD0
Stand By
Clear Pending Events
Wait: 8.0 sec
Forced: Stand By
UIRT2.NEC.3F40FF00
System.Suspend
Traceback (most recent call last) (1397):
File "C:\Program Files\EventGhost\eg\Classes\ActionThread.py", line 112, in OnComputerResume
plugin.OnComputerResume(None)
File "C:\Program Files\EventGhost\plugins\UIRT2\__init__.py", line 222, in OnComputerResume
self.__start__()
File "C:\Program Files\EventGhost\plugins\UIRT2\__init__.py", line 198, in __start__
raise self.Exceptions.InitFailed
SubInitFailed

System.UnIdle
System.ResumeAutomatic
System.Resume
mielens
 
Posts: 5
Joined: Sun Oct 10, 2010 9:30 am

Re: Event ghost crashed after resume from standby

Postby miljbee » Sat Nov 27, 2010 4:32 pm

I haven't fully understand what your Eg conf does, but I experienced some crash on resume a few times ago and found the solution.

My problem was that sometimes there were still some events in eg queue after the standby action.
I have added a "Clear Pending Events" in the my Standby Macro, and my problem was solved.
miljbee
Experienced User
 
Posts: 137
Joined: Fri Mar 27, 2009 1:29 pm

Re: Event ghost crashed after resume from standby

Postby hotbuddha » Fri Apr 08, 2011 5:09 am

I have had a similar problem with my own plugin which I developed. Mostly (if not always not sure) has happened on resume, like you have experienced with this UIRT2 plugin. I allowed the full exception to be raised in my code and waiting for it to happen again, and traced it to a timeout in a thread worker. Seems that some plugins like mine take longer to start and/or stop and the system can be pretty busy and slow during wakeup.

Anyway, found that ThreadWorker.py method CallWait was throwing the exception in the stack for this timeout exception. Suspicious thing is that CallWait has it's local parameter for timeout set to 10 seconds, however that is being override with a value of 5 seconds when the method is called with a default from config settings in C:\Program Files (x86)\EventGhost\eg\Classes\Config.py, this is the line with the timeout value...

defaultThreadStartTimeout = 5.00

I strongly suspect this is the area causing my exceptions. Since the UIRT2 plugin you are using is apparently catching and then re-raising the exception with it's own message I can not say for sure this is your same problem seems likely, and it probably can not hurt for you to try changing this same value, see if it helps.

I am going to try changing to 10 seconds:

C:\Program Files (x86)\EventGhost\eg\Classes\Config.py

defaultThreadStartTimeout = 10.00

There may be other possible resolutions to this, for instance the plugin code could be changed to catch this exception and re-try it's own OnResume event more than once. But this timeout seems much simpler.
hotbuddha
Experienced User
 
Posts: 98
Joined: Tue Mar 29, 2011 5:14 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests