EG Problem at startup

Found a bug in EventGhost? Report it here.
PooFox
Posts: 38
Joined: Sun Feb 14, 2010 6:18 am

Re: EG Problem at startup

Post by PooFox » Sat Aug 19, 2017 5:55 am

No just one user account do I use. Whenever this has occurred, I have opened config.py and it has been completely blank.

Btw, I noticed you live in Colorado. Whereabouts? I'm from Neo-California, AKA Boulder.

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

Re: EG Problem at startup

Post by kgschlosser » Sat Aug 19, 2017 4:36 pm

LOL @ Neo-California.
Evergreen aka "The Sticks"

@ the blank thing... The only thign that would cause that is if the file was opened and nothing was written to it because of a hang.

and btw
DO NOT REINSTALL WINDOWS!!!!

I want you to zip up your save file and PM it to me. I have a sneaky suspicion that something is changing some bit of data that gets written to that config file. and that new data has some kind of an issue where the mechanism that writes the file doesn't like. I am going to re write that mechanism so that it will cache all of the data first then open the file and write it as a whole. right now it opens the file (which makes it blank) then it writes each bit as it is processed. By going the other route it will not open the file until it has processed all of the data first. so if there is an error it will not make a blank file.
If you like the work I have been doing then feel free to Image

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

Re: EG Problem at startup

Post by kgschlosser » Sat Aug 19, 2017 4:42 pm

OK i changed up how the config file gets written. I still want a copy of your save file to isolate what is causing it.

But I have attached a file that you will need to save into your eg install folder under eg\classes. it will ask you to overwrite. say yes.
If you like the work I have been doing then feel free to Image

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

Re: EG Problem at startup

Post by kgschlosser » Sat Aug 19, 2017 4:43 pm

The above is not the Config.Py file in appdata. it is located in your installation folder
If you like the work I have been doing then feel free to Image

PooFox
Posts: 38
Joined: Sun Feb 14, 2010 6:18 am

Re: EG Problem at startup

Post by PooFox » Sun Aug 20, 2017 8:49 pm

Ah, nice, Evergreen's great. And yea, I'm avoiding Windows re-installation at all costs... I actually haven't had the problem for a couple days, since loading moving my config into AppData. No idea why that should make a difference, so maybe just a fluke. But today there was this: Image Does that give any more clues?

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

Re: EG Problem at startup

Post by kgschlosser » Sun Aug 20, 2017 10:09 pm

yeah I think you found a very small hole in the task monitor plugin. Give this version a try. I have moved some code around to hopefully take care of this happening again. unreal how this could have happened. there is a window that is nanoseconds wide and that window is only there at the exact moment the plugin starts that a task would have to take place for this error to have happened.


this one you are going to save into you plugins\task folder.
Attachments
__init__.py
(7.66 KiB) Downloaded 162 times
If you like the work I have been doing then feel free to Image

PooFox
Posts: 38
Joined: Sun Feb 14, 2010 6:18 am

Re: EG Problem at startup

Post by PooFox » Mon Aug 21, 2017 1:27 am

Ok, so now EG won't start at all. :)

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

Re: EG Problem at startup

Post by kgschlosser » Mon Aug 21, 2017 3:12 am

OK let me check out the plugin again..
If you like the work I have been doing then feel free to Image

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

Re: EG Problem at startup

Post by kgschlosser » Mon Aug 21, 2017 6:30 am

check your process list and make sure there isn't a stuck eventghost.exe process in there. if you see more then one eventghost.exe this is what caused EG not to run.. kill both of the processes then try and run EG again and see if it goes. if not kill the process if it is running. if EG does not run then perform the following steps

go to %appdata%\eventghost and delete a file called log.txt the open a command prompt and go to you eventghost folder and run eventghost with the -debug switch. if it doesn't load then open your task manager and kill the eventghost.exe process if there is one. attache the file %appdata%\eventghost\log.txt to a forum post. I will take a look and see what is causing the issue.

It is strange because I ran the plugin and have no issues. But hopefully the log file will tell us what is going on.
If you like the work I have been doing then feel free to Image

PooFox
Posts: 38
Joined: Sun Feb 14, 2010 6:18 am

Re: EG Problem at startup

Post by PooFox » Mon Aug 21, 2017 7:15 pm

15:12:03: 0 MainThread: ----------------------------------------
15:12:03: 0 MainThread: EventGhost started
15:12:03: 0 MainThread: ----------------------------------------
15:12:03: 0 MainThread: Version: 0.4.1.r1722
Error in sys.excepthook:
Traceback (most recent call last):
File "C:\Program Files (x86)\EventGhost\eg\Core.py", line 352, in TracebackHook
eg.log.PrintTraceback(excInfo=(tType, tValue, traceback))
AttributeError: 'NoneType' object has no attribute 'log'

Original exception was:
Traceback (most recent call last):
File "EventGhost.pyw", line 51, in <module>
import eg
File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 91, in <module>
import Core
File "C:\Program Files (x86)\EventGhost\eg\Core.py", line 356, in <module>
eg.config = eg.Config()
File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 45, in __getattr__
mod = __import__("eg.Classes." + name, None, None, [name], 0)
File "C:\Program Files (x86)\EventGhost\eg\Classes\Config.py", line 27, in <module>
from eg.Utils import GetClosestLanguage
ImportError: cannot import name GetClosestLanguage

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

Re: EG Problem at startup

Post by kgschlosser » Tue Aug 22, 2017 2:39 am

Oh crap. you are running build 1722. I didn't realize. Sorry about that. I didn't know the task plugin was altered for EG 0.5 Let me modify the one for 1722
If you like the work I have been doing then feel free to Image

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

Re: EG Problem at startup

Post by kgschlosser » Tue Aug 22, 2017 2:43 am

ok this one is from 1722.


EDIT... the problem is in the Config.Py file not in the plugin i altered. I just noticed that. I will leave the plugin there. But I have added the Config.py from 1722
If you like the work I have been doing then feel free to Image

PooFox
Posts: 38
Joined: Sun Feb 14, 2010 6:18 am

Re: EG Problem at startup

Post by PooFox » Wed Aug 23, 2017 7:06 am

Ok, cool thanks, back to working again. Hopefully the problem's gone for good now. Are these fixes specific to my config or will they be included in the next update? I see it's in rc status. I'm happy to update if you want me to test in the newer version.

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

Re: EG Problem at startup

Post by kgschlosser » Wed Aug 23, 2017 7:33 am

if everything is good i will have a variation of the changes added to the next release
If you like the work I have been doing then feel free to Image

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

Re: EG Problem at startup

Post by kgschlosser » Wed Aug 23, 2017 7:37 am

if you are running windows 10 i would highly recommend you update. because 0.5 has a plethora of things in it that are specific to windows 10 to make EG run properly. as well as a lot of fixes for previous versions of windows. it also has quite a few added features to it like events for changes to power settings or events if you have a battery backup and the power goes out (very useful for HTPC's to shutdown software properly). being able to show and hide EG from the command line. the whole plugin installation process has been refined.
If you like the work I have been doing then feel free to Image

Post Reply