Turn Off Monitor action crashes Eventghost.

Found a bug in EventGhost? Report it here.
copota
Posts: 33
Joined: Sat Mar 27, 2010 4:08 pm

Turn Off Monitor action crashes Eventghost.

Post by copota » Mon Oct 30, 2017 6:29 pm

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

User avatar
Neytrino-OnLine
Experienced User
Posts: 100
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: Turn Off Monitor action crashes Eventghost.

Post by Neytrino-OnLine » Mon Oct 30, 2017 7:05 pm

Same problem...
My temp solution - use: "...\nircmd.exe monitor off" it works ok!
Sin©erely yours, Neytrino.

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Turn Off Monitor action crashes Eventghost.

Post by kgschlosser » 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.

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?
If you like the work I have been doing then feel free to Image

User avatar
Neytrino-OnLine
Experienced User
Posts: 100
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: Turn Off Monitor action crashes Eventghost.

Post by Neytrino-OnLine » Tue Oct 31, 2017 3:56 am

Turn Off Monitor Log.txt - turn off display, then crush...

Turn Off Monitor Log.txt - do nothin, then crush...
Attachments
Turn Off Monitor (Standby) Log.txt
(4.4 KiB) Downloaded 101 times
Turn Off Monitor Log.txt
(7.16 KiB) Downloaded 100 times
Sin©erely yours, Neytrino.

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Turn Off Monitor action crashes Eventghost.

Post by kgschlosser » 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.
If you like the work I have been doing then feel free to Image

User avatar
Neytrino-OnLine
Experienced User
Posts: 100
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: Turn Off Monitor action crashes Eventghost.

Post by Neytrino-OnLine » Tue Oct 31, 2017 6:39 am

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...
Attachments
Log.txt
(6.62 KiB) Downloaded 104 times
Sin©erely yours, Neytrino.

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Turn Off Monitor action crashes Eventghost.

Post by kgschlosser » Tue Oct 31, 2017 7:20 am

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.
If you like the work I have been doing then feel free to Image

copota
Posts: 33
Joined: Sat Mar 27, 2010 4:08 pm

Re: Turn Off Monitor action crashes Eventghost.

Post by copota » Tue Oct 31, 2017 2:41 pm

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 137 times
Attachments
crash2.txt
(18.83 KiB) Downloaded 100 times

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Turn Off Monitor action crashes Eventghost.

Post by kgschlosser » Tue Oct 31, 2017 8:09 pm

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.
If you like the work I have been doing then feel free to Image

User avatar
Neytrino-OnLine
Experienced User
Posts: 100
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: Turn Off Monitor action crashes Eventghost.

Post by Neytrino-OnLine » Tue Oct 31, 2017 8:22 pm

It freezing, and stop working, so we ned go to task manager and...
Sin©erely yours, Neytrino.

copota
Posts: 33
Joined: Sat Mar 27, 2010 4:08 pm

Re: Turn Off Monitor action crashes Eventghost.

Post by copota » Tue Oct 31, 2017 8:52 pm

Yes, as neytrino posted, it freezes and you need to end it in task manager.

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Turn Off Monitor action crashes Eventghost.

Post by kgschlosser » 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.
If you like the work I have been doing then feel free to Image

User avatar
Neytrino-OnLine
Experienced User
Posts: 100
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: Turn Off Monitor action crashes Eventghost.

Post by Neytrino-OnLine » Wed Nov 01, 2017 4:02 am

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.
Sin©erely yours, Neytrino.

User avatar
kgschlosser
Site Admin
Posts: 5495
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Turn Off Monitor action crashes Eventghost.

Post by kgschlosser » 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.
If you like the work I have been doing then feel free to Image

User avatar
Neytrino-OnLine
Experienced User
Posts: 100
Joined: Tue Aug 20, 2013 7:14 pm
Location: Moscow, Russia

Re: Turn Off Monitor action crashes Eventghost.

Post by Neytrino-OnLine » Wed Nov 01, 2017 5:08 am

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...
Sin©erely yours, Neytrino.

Post Reply