Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Error on Startup *SOLVED*

If you have a question or need help, this is the place to be.
Post Reply
st1x
Posts: 7
Joined: Tue Apr 03, 2012 12:08 pm

Error on Startup *SOLVED*

Post by st1x »

Hi Guys,

I get the below error on start up, it's a brand new Win 7 64bit enterprise install on a VM with a freshly downloaded verison of EventGhost, any ideas why this is happening?:

Unhandled exception in WorkerThread <EventThread>:
Callers stack:
File "wx\_core.pyc", line 8010, in MainLoop
File "wx\_core.pyc", line 7306, in MainLoop
File "wx\_core.pyc", line 14660, in <lambda>
Traceback (most recent call last) (1544):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 43, in StartSession
set(eg.WinUsb.ListDevices().iterkeys())
File "C:\Program Files (x86)\EventGhost\eg\Classes\WinUsb.py", line 618, in ListDevices
raise WinError(err)
WindowsError: [Error 6] The handle is invalid.
Last edited by st1x on Sat Apr 07, 2012 1:22 pm, edited 1 time in total.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Error on Startup

Post by Pako »

It seems that in the second machine, you do not have the same USB receiver, as in the first machine.

Pako
st1x
Posts: 7
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Post by st1x »

Hi Pako,

I'm not sure what you mean. I've got one esxi host running a Win 2008 R2 box with eventghost and it runs perfectly then i installed a fresh Win 7 64bit on it and installed eventghost and get the above errors, can i run eventghost on 2 vm's on the same esxi host? I don't use anything related to USB in eventghost by the way.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Error on Startup

Post by Pako »

st1x wrote:I'm not sure what you mean. I've got one esxi host running a Win 2008 R2 box with eventghost and it runs perfectly then i installed a fresh Win 7 64bit on it and installed eventghost and get the above errors, can i run eventghost on 2 vm's on the same esxi host? I don't use anything related to USB in eventghost by the way.
Perhaps I misunderstood.
According to this, it seemed that you are using a USB driver:
st1x wrote: File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 43, in StartSession
set(eg.WinUsb.ListDevices().iterkeys())
File "C:\Program Files (x86)\EventGhost\eg\Classes\WinUsb.py", line 618, in ListDevices
raise WinError(err)
WindowsError: [Error 6] The handle is invalid.
You can then work with EventGhost?
You can save and reopen the empty configuration?

Pako
st1x
Posts: 7
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Post by st1x »

Hi Pako,

I was puzzled as well by the usb error, i don't use eventghost at all for usb. Eventghost is used for automating file transfers around my network.

The issue i have is that EG is currently setup on a win 2008 R2 VM hosted on esxi this works fine. Then i created a new win 7 vm on the same esxi host, but when i install EG and start it up i get the above error straight away, it doesn't not make a difference if it is a brand new configuration file or one i have loaded, the error appears immediately at startup. Can i install EG on 2 vm's on the same host? It is a brand new installation of Win 7 and EG.
Attachments
eg.png
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Error on Startup

Post by Pako »

Why you do not answer the questions that I ask you?
BTW, the empty configuration is as follows:
EmptyConfig.png
Why do you have in your configuration the X10 plugin?
Delete it! It needs a USB driver.

Pako
st1x
Posts: 7
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Post by st1x »

Sorry pako, i didn't understand your question.

I've deleted everything from my configuration file and restarted and still get the same error.

Do you know the answer to my VM question?
Attachments
eg.png
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Error on Startup

Post by Pako »

st1x wrote:I've deleted everything from my configuration file and restarted and still get the same error.
It is a pity, but certainly it was worth a try.
However, I unfortunately do not know what to do next.
st1x wrote:Do you know the answer to my VM question?
I have no experience with esxi ( I've never even heard of it ).
Probably it is a problem with 64-bit environment. With that I also have no experience.
Maybe someone else can help.

Pako
st1x
Posts: 7
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Post by st1x »

I've found the answer in case anyone has this in the future, you just have to make sure you install the USB controller on the VM.

Nice one!
eatmeimadanish
Experienced User
Posts: 118
Joined: Thu Oct 01, 2009 5:11 pm

Re: Error on Startup *SOLVED*

Post by eatmeimadanish »

Also just for record, you can replace missinHardwareID function inside ActionThread.py with just

missingHardwareID ()

This will skip the winusb.py check and eliminate the error.
Bennyhill
Posts: 1
Joined: Thu Aug 06, 2015 9:09 pm

Re: Error on Startup *SOLVED*

Post by Bennyhill »

eatmeimadanish wrote:Also just for record, you can replace missinHardwareID function inside ActionThread.py with just

missingHardwareID ()

This will skip the winusb.py check and eliminate the error.
Sorry to bring up an old thread, but I would like to do this and have no idea how to go about taking this action.

Any help is appreciated.

Thanks.
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Error on Startup *SOLVED*

Post by kkl »

ActionThread.py is located in C:\Program Files (x86)\EventGhost\eg\Classes (assuming default installation location). About 1/3 of the way down the file, change

Code: Select all

        missingHardwareIds = (
            set(eg.WinUsb.ListDevices().iterkeys())
            - set(pluginInfo.info.hardwareId for pluginInfo in eg.pluginList)
to

Code: Select all

missingHardwareIds = ()
I have not tried this myself. Just following what the other poster wrote. Restart eg after making change. Keep a copy of the original file in case this doesn't work.
Post Reply