Mouse lagging, Desktop Remote crashing

This is where you report any issues if you are running a beta version of EventGhost
Forum rules
To submit a possible bug report please follow this template

Version: 0.5 beta 2 (the version you are running)
Traceback: Traceback (most recent call last):
File "<SOME_EVENTGHOST_FILE.py>", line 10, in <module>
SOME_FUNCTION()
File "<SOME_EVENTGHOST_FILE.py>", line 4, in SOME_EVENTGHOST_MODULE
SOME_FUNCTION()

copy and past any traceback information from the log if there is no traceback put NONE

Event:
Main.test.0.1.2.3.4.5.6.7.8
1
2

in the Event field you will want to put the event that was triggered just prior to the traceback occurring, if there is personal data put PERSONAL DATA if there was no traceback or no event triggered right before the traceback put NO EVENT

Description: if you have the ability to replicate the issue then put in here a description of what you are doing to create the problem.

Screen Shots: screen shots of the error and any events/macros/acrions that were run before the issue or screen shots of the problem

Files: any files that may be used to isolate where the issue is. something like the log.txt file would go here

if you provide the above information before hand it will greatly speed up the diagnostic process. we will not have to ask for the bits and pieces. And also having a well formatted Bug Report filled out will get answered sooner then the ones that aren't

Mouse lagging, Desktop Remote crashing

Postby george tirebuyer » Sat Jun 03, 2017 11:42 am

Win 7 x64
The mouse has a noticeable lag that is quite annoying when editing the configuration. Also the desktop remote crashes in a loop occasionally and generates the error: This didn't happen in r1710.

04:34:11 Traceback (most recent call last) (0.5.0-rc2):
04:34:11 File "wx\lib\buttons.pyc", line 330, in OnLeftDown
04:34:11 File "wx\_core.pyc", line 10638, in CaptureMouse
04:34:11 PyAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at ..\..\src\common\wincmn.cpp(3271) in wxWindowBase::CaptureMouse(): Recapturing the mouse in the same window?
george tirebuyer
 
Posts: 34
Joined: Sun Apr 28, 2013 12:25 pm

Re: Mouse lagging, Desktop Remote crashing

Postby kgschlosser » Sat Jun 03, 2017 4:46 pm

I would need you to run eventghost in debugging mode
so start EG from a command line with the -debug switch and run it until it crashes. then attach %appdata%/eventghost/log.txt to this forum post and if you are able to also able to provide a screen shot of EG when it does this it would be most helpful
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Mouse lagging, Desktop Remote crashing

Postby george tirebuyer » Sun Jun 04, 2017 2:05 pm

Here's the log file: The editor was locked in a loop where each mouse click generated an error.

06:58:48: 0 MainThread: ----------------------------------------
06:58:48: 0 MainThread: EventGhost started
06:58:48: 0 MainThread: ----------------------------------------
06:58:48: 0 MainThread: EventGhost Version: 0.5.0-rc2
06:58:48: 0 MainThread: Machine type: AMD64
06:58:48: 0 MainThread: Processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
06:58:48: 0 MainThread: Architecture: ('32bit', 'WindowsPE')
06:58:48: 0 MainThread: Python: 2.7.12 CPython ('default', 'Oct 31 2016 18:42:08') [MSC v.1500 32 bit (Intel)]
06:58:48: 0 MainThread: ----------------------------------------
06:58:48: 0 MainThread: missing guid in plugin: C:\Program Files (x86)\EventGhost\plugins\itunes
06:58:48: 0 MainThread: missing guid in plugin: C:\Program Files (x86)\EventGhost\plugins\Ping
06:58:48: 0 MainThread: PluginManager.ScanAllPlugins :0.08633512634290065
06:58:48: 0 MainThread: SendKeysParser.__init__()
06:58:48: 0 MainMessageReceiver: MainMessageReceiver.__MainLoop()
06:58:48: 0 MainMessageReceiver: MainMessageReceiver.Setup()
06:58:48: 0 MainThread: Document.ShowFrame()
06:58:48: 0 MainThread: Log.GetData()
06:58:48: 0 MainThread: Document.ShowFrame => None
06:58:48: 0 ActionThread: ActionThread.__MainLoop()
06:58:48: 0 EventThread: EventThread.__MainLoop()
06:58:48: 0 EventThread: EventThread.StartSession(filename=u'C:\\Program Files (x86)\\EventGhost\\Desktop0.2.egtree')
06:58:48: 0 ActionThread: ActionThread.StartSession(filename=u'C:\\Program Files (x86)\\EventGhost\\Desktop0.2.egtree')
06:58:48: 0 ActionThread: Document.Load(filePath=u'C:\\Program Files (x86)\\EventGhost\\Desktop0.2.egtree')
06:58:48: 0 MouseThread: MouseThread.run()
06:58:48: 1 MainThread: OSDFrame.__init__(parent=None)
06:58:48: 0 ActionThread: StartLoad(cls=<class 'eg.Classes.TreeLink.TreeLink'>)
06:58:48: 0 Thread-2: SessionChangeNotifier.Register()
06:58:48: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=2822278, uMsg=536L, wParam=32787L, lParam=5862168)
06:58:48: 0 ActionThread: Document.SetExpandState(expanded=set([0, 1, 2, 4, 5, 6, 7, 32, 37, 38, 39, 41, 42, 43, 44, 45, 46, 75, 76, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 114, 139, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 179, 182, 183, 184, 185, 186, 187, 188, 189, 193, 194, 195, 196, 197, 198, 199, 200, 201, 204, 205, 213, 214, 215, 216, 219, 220, 221, 223, 224, 225, 226, 227, 228, 229, 231, 232, 233, 234, 235, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269]))
06:58:48: 0 ActionThread: XML loaded in 0.066105 seconds.
06:58:49: 0 ActionThread: ActionThread.StartSession => None
06:58:49: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=2822278, uMsg=536L, wParam=32787L, lParam=5862168)
06:58:49: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=2822278, uMsg=536L, wParam=32787L, lParam=165494480)
06:58:49: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
Traceback (most recent call last) (0.5.0-rc2):
File "wx\lib\buttons.pyc", line 330, in OnLeftDown
File "wx\_core.pyc", line 10638, in CaptureMouse
PyAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at ..\..\src\common\wincmn.cpp(3271) in wxWindowBase::CaptureMouse(): Recapturing the mouse in the same window?
Traceback (most recent call last) (0.5.0-rc2):
File "wx\lib\buttons.pyc", line 330, in OnLeftDown
File "wx\_core.pyc", line 10638, in CaptureMouse
PyAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at ..\..\src\common\wincmn.cpp(3271) in wxWindowBase::CaptureMouse(): Recapturing the mouse in the same window?
Traceback (most recent call last) (0.5.0-rc2):
File "wx\lib\buttons.pyc", line 330, in OnLeftDown
File "wx\_core.pyc", line 10638, in CaptureMouse
PyAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at ..\..\src\common\wincmn.cpp(3271) in wxWindowBase::CaptureMouse(): Recapturing the mouse in the same window?
Traceback (most recent call last) (0.5.0-rc2):
File "wx\lib\buttons.pyc", line 330, in OnLeftDown
File "wx\_core.pyc", line 10638, in CaptureMouse
PyAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at ..\..\src\common\wincmn.cpp(3271) in wxWindowBase::CaptureMouse(): Recapturing the mouse in the same window?
Traceback (most recent call last) (0.5.0-rc2):
File "wx\lib\buttons.pyc", line 330, in OnLeftDown
File "wx\_core.pyc", line 10638, in CaptureMouse
PyAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at ..\..\src\common\wincmn.cpp(3271) in wxWindowBase::CaptureMouse(): Recapturing the mouse in the same window?
Traceback (most recent call last) (0.5.0-rc2):
File "wx\lib\buttons.pyc", line 330, in OnLeftDown
File "wx\_core.pyc", line 10638, in CaptureMouse
PyAssertionError: C++ assertion "!wxMouseCapture::IsInCaptureStack(this)" failed at ..\..\src\common\wincmn.cpp(3271) in wxWindowBase::CaptureMouse(): Recapturing the mouse in the same window?
george tirebuyer
 
Posts: 34
Joined: Sun Apr 28, 2013 12:25 pm

Re: Mouse lagging, Desktop Remote crashing

Postby kgschlosser » Sun Jun 04, 2017 5:46 pm

ok try this. in %appdata%/EventGhost there is a Config.py file. rename it to Config.py.BAK then startup EG and see if the problem persists. this is going to load the default Configuration Tree and reset all of the settings inside eg.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Mouse lagging, Desktop Remote crashing

Postby george tirebuyer » Sun Jun 04, 2017 10:00 pm

The problem doesn't happen. No crash etc. I may have to build the egtree one folder at a time to see which plugin is causing the issue. I suspect the
Desktop Remote but could be something else.
george tirebuyer
 
Posts: 34
Joined: Sun Apr 28, 2013 12:25 pm

Re: Mouse lagging, Desktop Remote crashing

Postby kgschlosser » Mon Jun 05, 2017 7:12 am

well here is what you do from here. since the config file is fresh load your tree and see if it is still acting up. if it is then you know it's an issue with your tree and if not the issue was in the Config.py file
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Mouse lagging, Desktop Remote crashing

Postby george tirebuyer » Wed Jun 07, 2017 11:17 pm

The lag seems to be cause by the ping plugin. I removed it and no more crashes or lag.
george tirebuyer
 
Posts: 34
Joined: Sun Apr 28, 2013 12:25 pm

Re: Mouse lagging, Desktop Remote crashing

Postby kgschlosser » Thu Jun 15, 2017 4:29 am

I never really did like the way the ping plugin worked. because if something goes wrong with EG and you have to kill the EG process there ends up being other processes for the ping plugin that get stuck and have to be terminated as well.


I did just write a nice little thing to grab the mac address from a network attached computer. this uses an ARP packet to grab the Mac. so this could be used along with a timer to do the same job as the ping plugin.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Mouse lagging, Desktop Remote crashing

Postby kgschlosser » Thu Jun 15, 2017 5:57 pm

i wanted to give ya an update on this. I have the back end working properly. have to make it into a plugin form here. but it's pure python. it doesn't use subprocess to run ping. so it's completely self contained. I have it sending out arp requests to get the mac address of a device and I measure how long it takes the device to respond.


this will allow for dynamic use of IP addresses on the device. and it will use the host/NetBios name of the device to send out a broadcast to get the IP address from either the device it's self or from a dns server.

you will have 2 settings per device that can be adjusted.. the length of time between checking to see if it's on the network as well as a timeout for the checking. so if you have a slow network you may want to increase the timeout this will give the device a greater amount of time to return an answer.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Mouse lagging, Desktop Remote crashing

Postby kgschlosser » Thu Jun 15, 2017 9:47 pm

ok the alternative to the ping plugin is done.

download it here
viewtopic.php?f=9&t=9711
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 2702
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA


Return to Beta Version Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest