Page 1 of 1

EventGhost crashes learning remote code from MCE receiver

Posted: Thu Dec 01, 2011 12:05 am
by Meat_PoPsiclez
Using EventGhost 0.4.1.r1544, and the MCE Remote - Vista/Win7 plugin, I experience a crash every time I try to learn a remote code. It appears to be receiving the code (the window gets filled with data), however it crashes immediately.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Fri Jan 13, 2012 8:48 am
by shmulik
almost the same here. it crashes most times. after such crash I have to re-run EG, uninstall the service from the plugin configuration, reinstall it and try again. doing sufficient trials I managed to learn the three codes needed to operate the device to be controlled. even after learning, a successful transmission happens by chance. the device has volume-up/down/mute. with the remote it happens on every click. with EG+plugin you have to be really persistent if you want your volume to change.
I'm using Lenovo MCE remote. looks like an OEM branded device.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Mon Jan 23, 2012 9:49 am
by Jaymax
I too was getting crashes when learning codes, but using USB-UIRT, a few days ago.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Sun Jun 10, 2012 5:31 pm
by acowan
Same issue here. It doesn't happen all the time, but at least 1/5 tries will cause the program to hang. I am using the HP MCE receiver and a LG remote. The pronto code I am trying to send is 0000 006C 0000 0026 0159 00A7 0017 0013 0017 0013 0017 003F 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 003F 0015 0041 0015 0015 0015 003F 0017 003F 0015 003F 0017 003F 0015 0041 0015 003F 0017 003F 0015 0015 0015 003F 0017 0013 0017 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 003F 0017 0013 0017 003F 0015 0041 0015 003F 0017 003F 0015 0626 0156 0056 0015 0E76 0158 0054 0017 0F3C.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Mon Jul 23, 2012 6:34 am
by Jbravo2
Same problem here, Win 7 x64 Pro, EventGhost 0.4.1.r1572.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Mon Jul 23, 2012 6:39 am
by Jbravo2
Same problem here, using Win 7 x64 Pro and EventGhost 0.4.1.r1572.

EventGhost crashes when the ir code is received, and the learn dialog is dismissed.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Sun Nov 11, 2012 9:57 pm
by palms13
Any fix for this yet? I have the same problem.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Mon Nov 19, 2012 5:08 pm
by TritonT
Getting this problem as well. Running EventGhost 0.4.1.r1582 on Windows 7 Pro 64bit. Does anyone have a working MCE blaster at the moment? Or a workaround.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Mon Nov 26, 2012 8:17 pm
by r33s2
I am using Win7 64bit and EG 0.4.1.r1582 and I have the same problem learning all remotes. I have success on the first learn and then crash there after. I can sometimes learn a second code if I wait 10 minutes or so (in the same session) and if I wait the same time and reopen EG, but not always. I suspect it is a windows code looping until it fixes itself but I don't know how to monitor such activity, any suggestions Admin?

Re: EventGhost crashes learning remote code from MCE receive

Posted: Wed Mar 20, 2013 8:56 am
by BDHtP
I got the same Problem here.
Specs: Win7 64bit + EventGhost 0.4.1.r1610 + Microsoft MCE V2
It gets the Code, then after a second it crashes.

I made a dirty workaround for now, since i haven't found a solution.
It simply saves the Code in an external file named Code.txt in a Path of your choice (user must have write privileges in said path).

WORKAROUND:
1.go to ..\EventGhost\plugins\MceRemote_Vista
2.edit __init__.py
3.search for "return code"
4.paste above "return code" the following code:
2 Options A) Code gets attached if there is something in Code.txt followed by a line feed.
#BDHtP
pfad = "C:\Users\USERX\Downloads/" # CHANGE PATH!!
dateiname="Code.txt"
datei = pfad+dateiname
out_file = open(datei,"a")
out_file.write(code + '\n')
out_file.close()
#BDHtP

B) Old Code in Code.txt gets overwritten with new Code (faster since you open Code.txt, Ctrl+A,Ctrl+C,Alt+F4, Paste to Eventghost):
#BDHtP
pfad = "C:\Users\USERX\Downloads/" # CHANGE PATH!!
dateiname="Code.txt"
datei = pfad+dateiname
out_file = open(datei,"w")
out_file.write(code)
out_file.close()
#BDHtP

5.it should look like this:
...
self.learnDialog = None
self.freqs = [0]
self.result = []
#BDHtP
pfad = "C:\Users\USERX\Downloads/" # CHANGE PATH!!
dateiname="Code.txt"
datei = pfad+dateiname
out_file = open(datei,"a")
out_file.write(code + '\n')
out_file.close()
#BDHtP
return code
...

6.Save the file and overwrite __init__.py (make backup for safety)

Now the
1.Start Eventghost
2.Learn ir in Eventghost, eventghost crashes.
3.go to the folder you defined, there should be a Code.txt
4.open, copy your Code.
5.open eventghost, make a transmit job, paste Code, OK, Save.
Done! Repeat after 2.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Fri Mar 22, 2013 5:02 am
by BDHtP
Ok, I've experimented a little bit and got a new workaround, which is working like a charm.
My HTPC: Win7x64, EventGhost 0.4.1.r1610 + winlirc-0.9.0e

I can now learn every command from every remote i have + Transmit every learnt Command.
I simply use Winlirc to communicate with my MCE Receiver+Blaster.
The Winlirc page has many remotes already scanned and its pretty easy to make own remote profiles.
I start winlirc at login via Taskstartup as an administrator with full priviliges and use the lirc plugin in eventghost.
Works perfect.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Mon May 20, 2013 6:33 pm
by Sem;colon
Hi everyone,

I found out a different workaround:
WORKAROUND:
1.go to ..\EventGhost\plugins\MceRemote_Vista
2.edit __init__.py
3.comment out line 176 - 178 (make "#" in front of the lines)
4.save the file.

works perfect for me!

I attached a file in which I already changed it.

Re: EventGhost crashes learning remote code from MCE receive

Posted: Fri Aug 16, 2013 8:10 am
by Pako
I looked at your fix and I think it could be done better:
Please - try to use

Code: Select all

        wx.CallAfter(
            self.carrierFreqCtrl.SetLabel,
            "%d.%03d kHz" % (median_freq / 1000, median_freq % 1000)
        )
instead of the original:

Code: Select all

        self.carrierFreqCtrl.SetLabel(
            "%d.%03d kHz" % (median_freq / 1000, median_freq % 1000)
        )
If it works, I incorporate it into the next build.

Thanks, Pako

Re: EventGhost crashes learning remote code from MCE receive

Posted: Fri Aug 16, 2013 6:15 pm
by Sem;colon
Hi Pako,
No, it works better, but still kills EG from time to time...
(I still don't know what the intention for this function was, I think there's no problem in leaving it out)