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.

Learning Blaster codes (Vista/Win7) causes EG Crash

Questions and comments specific to a particular plugin should go here.
Post Reply
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

Learning Blaster codes (Vista/Win7) causes EG Crash

Post by ijourneaux »

I am migrating my system from WinXP to Win7. Installed the latest version of EventGhost (It was great to see that development was continuing). I replaced the MCE Remote plugin with the one for Vista/Win7.
Unfortunately I haven't been able to get the blaster to work reliably.

When learning IR codes, if I press the remote button too many times, EG will crash. If I carefully learn the three codes I need to learn (Vol up, Vol Down, Mute), when I do use them they only appear at the device I am trying to control unreliably (1 out of every 10 button presses at most).

I also noticed that EG behaves oddly when these remote buttons are pressed. FOr instance, if I press Vol up 3 or 4 times in a row, the first command appears immediately, the next 2 or three button presses only appear after delays of several seconds between each btton press.

Any tips on what I might be doing wrong?

Mos of the time it jsut crashes but sometime I get

Code: Select all

Task.Deactivated.EventGhost
Task.Activated.EventGhost
Task.Deactivated.EventGhost
Task.ClosedWindow.EventGhost
Task.Activated.EventGhost
MceRemote.Mce.Mute
   Mute Volume
      Microsoft MCE Remote - Vista/Win7: Transmit IR: 
         Error in Action: "Microsoft MCE Remote - Vista/Win7: Transmit IR: "
         Traceback (most recent call last) (1534):
           File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
             return self(*args)
           File "C:\Program Files\EventGhost\plugins\MceRemote_Vista\__init__.py", line 74, in __call__
             freq, transmitValues = Pronto2MceTimings(code,repeatCount)
           File "C:\Program Files\EventGhost\plugins\MceRemote_Vista\pronto.py", line 246, in Pronto2MceTimings
             raise Exception("Don't have a decoder for pronto format %s"%vals[0])
         Exception: Don't have a decoder for pronto format
PS I fould the the long thread on the MCE (Vista/Win7). My system is still behaving oddly. WIth the original MCE plugin, everything, but the transmit IR seems to work as expected. I use the transmit IR for 3 macros that control volume. This last go around, with the nwer MCE Vista/Win7 plugin, the remotebutton presses come in but they are coded MCE Unknown (of something to that ilk). WIll look into it further tonight.
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

Re: Learning Blaster codes (Vista/Win7) causes EG Crash

Post by ijourneaux »

Ok. I was finally able to get the MCE plugin to record the codes. Record first code, save file, record second code, crash, startover, etc until I had all 3 codes learned. It seems to be related to multiple remote button presses. Unfortunately the blasted code only seems to work 1 out of every 3-5 times it is executed.
scottbakertemp
Posts: 17
Joined: Sun Nov 28, 2010 7:21 pm

Re: Learning Blaster codes (Vista/Win7) causes EG Crash

Post by scottbakertemp »

ijourneaux wrote:Ok. I was finally able to get the MCE plugin to record the codes. Record first code, save file, record second code, crash, startover, etc until I had all 3 codes learned. It seems to be related to multiple remote button presses. Unfortunately the blasted code only seems to work 1 out of every 3-5 times it is executed.
that's what i ended up doing.
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

Re: Learning Blaster codes (Vista/Win7) causes EG Crash

Post by ijourneaux »

I am experiencing the same problem with a USB-UIRT. It is almost as if the IR learning code causes a buffer overrun.
Tal56
Posts: 20
Joined: Tue Jun 22, 2010 6:47 pm

Re: Learning Blaster codes (Vista/Win7) causes EG Crash

Post by Tal56 »

Same here, I do one code then save asap lol. Can't risk doing a few then having it crash on me haha.
ijourneaux
Experienced User
Posts: 102
Joined: Wed Feb 17, 2010 2:20 am

Re: Learning Blaster codes (Vista/Win7) causes EG Crash

Post by ijourneaux »

I exchanged a couple of emails with the developer of USB-UIRT. Working under the premise that it was a buffer overrun, we tried increasing the size of the buffer that is allocated by EventGhost from 2048 to 4096. With 20 or 30 attempts to learn, I didn't get a single crash.

Not conclusive by any means but it probably worth a try. At line 643 change the 2048 to 4096

Code: Select all

    def LearnThread(self):
        learnBuffer = create_string_buffer('\000' * 4096)
        self.dll.UUIRTLearnIR(
Post Reply