Page 1 of 2

Turn Off Monitor action crashes Eventghost.

Posted: Mon Oct 30, 2017 6:29 pm
by copota
My rig:
Eventghost 0.5.0-rc4
Win10 Pro latest updates
AMD FX-8320 CPU
Nvidia Geforce GTX 750 Ti latest driver
Samsung SSD 500GB EVO
Samsung SyncMaster BX2431 monitor
Microsoft IR Receiver model 1040

Problem:
When I go to execute the Turn Off Monitor action, either by remote or manaually, EG crashes.

I tried a fresh configuration, with just the Microsoft MCE Remote (Vista+) plugin, and Turn Off Monitor action added, and it still crashes.

Below is my debug output. Thanks for any help.

Code: Select all

---> Welcome to EventGhost <---
Autostart
   Plugin: Microsoft MCE Remote (Vista+)
MCE_Vista: Connected to MceIr pipe, started handling IR events
System.Monitor.On
MceRemote.Connected
Main.OnInit
System.PowerSource.Line
System.PowerSaving.Off
System.PowerProfile.HighPerformance
MceRemote.SIRC20.49D09
   Turn Off Monitor
      Turn Off Monitor
         14:06:18: 0 MainMessageReceiver: timeout TriggerEventWait
         14:06:23: 0 MainMessageReceiver: timeout TriggerEventWait
           File "threading.pyc", line 774, in __bootstrap
           File "threading.pyc", line 801, in __bootstrap_inner
           File "threading.pyc", line 754, in run
           File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 280, in __MainLoop
             self.__DoOneEvent()
           File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 261, in __DoOneEvent
             self.__PumpWaitingMessages()
           File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 287, in __PumpWaitingMessages
             while PeekMessage(byref(msg), 0, 0, 0, PM_REMOVE):
           File "C:\Program Files (x86)\EventGhost\eg\Classes\MessageReceiver.py", line 127, in WindowProc
             res = handler(hwnd, mesg, wParam, lParam)
           File "C:\Program Files (x86)\EventGhost\plugins\System\PowerBroadcastNotifier.py", line 254, in OnPowerBroadcast
             source=self.plugin
           File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 150, in TriggerEventWait
             eg.PrintDebugNotice("timeout TriggerEventWait")
           File "C:\Program Files (x86)\EventGhost\eg\Classes\Log.py", line 163, in PrintDebugNotice
             sys.stderr.write(" ".join(strs) + "\n")
           File "C:\Program Files (x86)\EventGhost\eg\Classes\Log.py", line 70, in write
             log.Write(data, ERROR_ICON)
           File "C:\Program Files (x86)\EventGhost\eg\Classes\Log.py", line 240, in Write
             wx.CallAfter(self._WriteLine, line, icon, wRef, when, eg.indent)
           File "wx\_core.pyc", line 16772, in CallAfter
           File "wx\_core.pyc", line 8410, in PostEvent
           File "C:\Program Files (x86)\EventGhost\eg\Classes\MessageReceiver.py", line 127, in WindowProc
             res = handler(hwnd, mesg, wParam, lParam)
           File "C:\Program Files (x86)\EventGhost\plugins\System\PowerBroadcastNotifier.py", line 254, in OnPowerBroadcast
             source=self.plugin
           File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 151, in TriggerEventWait
             traceback.print_stack()
           File "threading.pyc", line 774, in __bootstrap
           File "threading.pyc", line 801, in __bootstrap_inner
           File "threading.pyc", line 754, in run
           File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 280, in __MainLoop
             self.__DoOneEvent()
           File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 261, in __DoOneEvent
             self.__PumpWaitingMessages()
           File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 287, in __PumpWaitingMessages
             while PeekMessage(byref(msg), 0, 0, 0, PM_REMOVE):
           File "C:\Program Files (x86)\EventGhost\eg\Classes\MessageReceiver.py", line 127, in WindowProc
             res = handler(hwnd, mesg, wParam, lParam)
           File "C:\Program Files (x86)\EventGhost\plugins\System\PowerBroadcastNotifier.py", line 254, in OnPowerBroadcast
             source=self.plugin
           File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 151, in TriggerEventWait
             traceback.print_stack()
Image

Re: Turn Off Monitor action crashes Eventghost.

Posted: Mon Oct 30, 2017 7:05 pm
by Neytrino-OnLine
Same problem...
My temp solution - use: "...\nircmd.exe monitor off" it works ok!

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 1:33 am
by kgschlosser
ok i need the debug output. run eventghost from a command line with -debug switch. get it to crash.

then come back to this forum topic and make a new post. put whatever in in.. then click on attach a file. when the dialog opens up put the line below into it

%appdata%/EventGhost\log.txt

this will attach the debugging log for EventGhost. this way I will be able to see what is going on with the back end of things.

also what version of EventGhost are you using?

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 3:56 am
by Neytrino-OnLine
Turn Off Monitor Log.txt - turn off display, then crush...

Turn Off Monitor Log.txt - do nothin, then crush...

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 4:39 am
by kgschlosser
Those tracebacks will only appear if you have debugging turned on. start EG as usual and turn off the debugging mode from the dropdown menu.

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 6:39 am
by Neytrino-OnLine
kgschlosser wrote:
Tue Oct 31, 2017 4:39 am
Those tracebacks will only appear if you have debugging turned on. start EG as usual and turn off the debugging mode from the dropdown menu.
And then? Early You told:
kgschlosser wrote:
Tue Oct 31, 2017 1:33 am
ok i need the debug output. run eventghost from a command line with -debug switch.
I did it and share results... I did not turn somethin in the debug mode, so if it did somethin - it did it because itself...

Normal mode:
Image
Close,
Start in -debug mode:
Image
Turn off monitor,
Crush...

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 7:20 am
by kgschlosser
the -debug is debugging mode. it simply provides a little more output then selecting the one from the drop down. but they are still the same thing. hence the reason why when you do not have it checked off and you do not start it with -debug you don't get any traceback.

I have changed some code up to alleviate this problem. I do not know if it will be included in the next release or not. One of the past people that coded on this project saw fit to add the ability to turn on the debugging from the menu. But also saw the need to have the color of the debugging message be the same as error messages. when in reality they are not the same thing. I apologize for this causing confusion.

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 2:41 pm
by copota
kgschlosser wrote:
Tue Oct 31, 2017 1:33 am
also what version of EventGhost are you using?
Eventghost 0.5.0-rc4
kgschlosser wrote:
Tue Oct 31, 2017 1:33 am
ok i need the debug output. run eventghost from a command line with -debug switch. get it to crash.
crash.txt
(9.65 KiB) Downloaded 136 times

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 8:09 pm
by kgschlosser
is EG locking up or freezing? or are you just getting this error message? Because this error message is just a stack printout that only shows up when you have debugging enabled.

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 8:22 pm
by Neytrino-OnLine
It freezing, and stop working, so we ned go to task manager and...

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 8:52 pm
by copota
Yes, as neytrino posted, it freezes and you need to end it in task manager.

Re: Turn Off Monitor action crashes Eventghost.

Posted: Tue Oct 31, 2017 9:26 pm
by kgschlosser
ok next question. are you trying to do this from a remote desktop session? and that question also applies to team viewer and VNC and other programs of the like.

Re: Turn Off Monitor action crashes Eventghost.

Posted: Wed Nov 01, 2017 4:02 am
by Neytrino-OnLine
kgschlosser wrote:
Tue Oct 31, 2017 9:26 pm
ok next question. are you trying to do this from a remote desktop session? and that question also applies to team viewer and VNC and other programs of the like.
No.

Re: Turn Off Monitor action crashes Eventghost.

Posted: Wed Nov 01, 2017 4:26 am
by kgschlosser
Do this for me as this has worked in the past... make sure your video card drivers are up to date. and I do not mean by using microsoft update. find out your card manufacturer and model number. go to the manufacturers website (dell, hp, or any of the like are computer builders not component manufacturers) and get the drivers for your model.

Re: Turn Off Monitor action crashes Eventghost.

Posted: Wed Nov 01, 2017 5:08 am
by Neytrino-OnLine
kgschlosser wrote:
Wed Nov 01, 2017 4:26 am
Do this for me as this has worked in the past... make sure your video card drivers are up to date. and I do not mean by using microsoft update. find out your card manufacturer and model number. go to the manufacturers website (dell, hp, or any of the like are computer builders not component manufacturers) and get the drivers for your model.
All that done...
I think, I found this problem when migrate to the 0.5.0 rc4 version, and as i told before - "...\nircmd.exe monitor off" works fine, so I think it is EG problem...