Error on Startup *SOLVED*

If you have a question or need help, this is the place to be.

Error on Startup *SOLVED*

Postby st1x » Wed Apr 04, 2012 11:59 am

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.
st1x
 
Posts: 5
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Postby Pako » Thu Apr 05, 2012 7:48 am

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

Pako
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Error on Startup

Postby st1x » Thu Apr 05, 2012 11:13 am

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.
st1x
 
Posts: 5
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Postby Pako » Thu Apr 05, 2012 12:49 pm

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
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Error on Startup

Postby st1x » Thu Apr 05, 2012 2:23 pm

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
st1x
 
Posts: 5
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Postby Pako » Thu Apr 05, 2012 2:51 pm

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
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Error on Startup

Postby st1x » Thu Apr 05, 2012 3:03 pm

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
st1x
 
Posts: 5
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup

Postby Pako » Thu Apr 05, 2012 4:10 pm

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
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Error on Startup

Postby st1x » Sat Apr 07, 2012 1:22 pm

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!
st1x
 
Posts: 5
Joined: Tue Apr 03, 2012 12:08 pm

Re: Error on Startup *SOLVED*

Postby eatmeimadanish » Thu Jun 21, 2012 6:14 pm

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.
eatmeimadanish
Experienced User
 
Posts: 96
Joined: Thu Oct 01, 2009 5:11 pm


Return to General Support

Who is online

Users browsing this forum: Bing [Bot] and 3 guests