View Full Version : Insane error!, Test command works, event does NOT...freakish
AlCapone
March 25th, 2004, 01:30 PM
I currently redesigned a major GML file....
and ended up with several CRAZY bugs...
imagine this:
-simple "sendkey" command that sends X (pause) to foobar..
-this command have one event assigned.
-clicking "test command" works - every time !
-the EVENT is correct, Girder - when in focus - jumps to that command - but does nothing... (!!)
this also goes for some more freakish commands...
I also have a few multicommands where NO events seem to work - even if they are copied from other multicommands that work !!
is there any sanity check for GML files ?
Promixis
March 25th, 2004, 03:27 PM
Do you have enable input devices checked?
Make sure you attach the event to the multigroup and not the command.
AlCapone
March 26th, 2004, 07:14 AM
thank you for helpming me.
the problem with events under commands rather than multigroups was actually ONE of mte errors I had.
This one (most strange) remains:
----------------GML FILE-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<Girder><Group Name="USB Volume Knob" Identifier="8672" Enabled="TRUE"><Command Name="Volume Up" Identifier="8673" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>TRUE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><UseVar>FALSE</UseVar><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>2</ActionType><ActionSubType>1</ActionSubType><sValue2>2621</sValue2><iValue1>100</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><EventString Name="EventString" Identifier="8674" Enabled="TRUE" Invert="FALSE" Device="124" IrStr="420AC00"></EventString></Command><Command Name="Volume Dn" Identifier="8675" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>TRUE</OSD><Submatch>FALSE</Submatch><Topmost>TRUE</Topmost><OneMatch>FALSE</OneMatch><UseVar>FALSE</UseVar><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>2</ActionType><ActionSubType>1</ActionSubType><sValue2>-2621</sValue2><iValue1>100</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><EventString Name="EventString" Identifier="8676" Enabled="TRUE" Invert="FALSE" Device="124" IrStr="410AC00"></EventString></Command><Group Name="Buttons" Identifier="8715" Enabled="TRUE"><Group Name="Music Buttons" Identifier="8702" Enabled="TRUE"><Command Name="+10sec" Identifier="8703" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Target_name>Trine Rein - Old Soul </Target_name><Target_class>{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}</Target_class><Target_exe>foobar2000.exe</Target_exe><Submatch>FALSE</Submatch><Topmost>FALSE</Topmost><MatchBy>4</MatchBy><OneMatch>FALSE</OneMatch><UseVar>FALSE</UseVar><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>6</ActionType><ActionSubType>1</ActionSubType><sValue2>FALSE</sValue2><iValue1>102</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><EventString Name="Event_FastForward" Identifier="8710" Enabled="TRUE" Invert="FALSE" Device="124" IrStr="BC0AC00" AntiRepeat="250"><Comments>ff</Comments></EventString></Command><Command Name="-10sec" Identifier="8704" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Target_name>Trine Rein - Old Soul </Target_name><Target_class>{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}</Target_class><Target_exe>foobar2000.exe</Target_exe><Submatch>FALSE</Submatch><Topmost>FALSE</Topmost><MatchBy>4</MatchBy><OneMatch>FALSE</OneMatch><UseVar>FALSE</UseVar><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>6</ActionType><ActionSubType>1</ActionSubType><sValue2>FALSE</sValue2><iValue1>100</iValue1><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><EventString Name="Event_Prev" Identifier="8711" Enabled="TRUE" Invert="FALSE" Device="124" IrStr="BE0AC00" AntiRepeat="250"><Comments>prev</Comments></EventString></Command><Command Name="Pause (music)" Identifier="8705" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Target_name>Trine Rein - Old Soul </Target_name><Target_class>{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}</Target_class><Target_exe>foobar2000.exe</Target_exe><Submatch>FALSE</Submatch><Topmost>FALSE</Topmost><MatchBy>4</MatchBy><OneMatch>TRUE</OneMatch><UseVar>FALSE</UseVar><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>6</ActionType><ActionSubType>2</ActionSubType><sValue1>X</sValue1><sValue2>FALSE</sValue2><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><EventString Name="EventString" Identifier="8706" Enabled="TRUE" Invert="FALSE" Device="124" IrStr="430AC00" AntiRepeat="300"></EventString></Command><Command Name="NextTrack" Identifier="8708" Enabled="TRUE"><StateCount>1</StateCount><StateBegin>1</StateBegin><StateCurrent>1</StateCurrent><StateInvert>FALSE</StateInvert><OSD>FALSE</OSD><Target_name>Trine Rein - Old Soul </Target_name><Target_class>{DA7CD0DE-1602-45e6-89A1-C2CA151E008E}</Target_class><Target_exe>foobar2000.exe</Target_exe><Submatch>FALSE</Submatch><Topmost>FALSE</Topmost><MatchBy>4</MatchBy><OneMatch>FALSE</OneMatch><UseVar>FALSE</UseVar><MatchHidden>FALSE</MatchHidden><MatchNum>1</MatchNum><ActionType>6</ActionType><ActionSubType>1</ActionSubType><sValue1>R</sValue1><sValue2>FALSE</sValue2><bValue1>FALSE</bValue1><bValue2>FALSE</bValue2><bValue3>FALSE</bValue3><EventString Name="Event_Next" Identifier="8709" Enabled="TRUE" Invert="FALSE" Device="124" IrStr="BD0AC00" AntiRepeat="250"><Comments>next</Comments></EventString></Command></Group></Group></Group></Girder>
--------------------------------------------
girder jumps correctly to all commands under "Music Buttons" group
- but it does NOT really execute them.
"testing" each and every command works just fine...
Ron
March 26th, 2004, 07:48 AM
Did you edit the GML by hand? Maybe you have corupted the Identifier section.
AlCapone
March 26th, 2004, 08:08 AM
nope - this was never edited this file manually.
however I did edit another GML manually (looong before this problem) .
I remember that one of my GML's were huge, I think way over 1MB I opened it and found several "binary" tags with base64 encoded stuff - never fugured out what that was, I removed it, and everything still worked fine.
I also remember that my conclusion was that it must have been some non-girder data i pasted into girder while editing (by error)...
-- anyway - even the current probem file file just proved to contain some of that... (I did not remove it - yet)
- I still see the need for a "sanity check" of Girder XML :)
(BTW: "Notify me when a reply is posted" feature of this board does not send me emails ? - why (email address is OK) )
AlCapone
March 26th, 2004, 09:42 AM
ONE STEP CLOSER TO SOLUTION
were troubleshooting the "pause" function.
I found that the problem is there because of button bounce, and that ANTIREPEAT does not work in whole that group (at least !)
the same command, (created another place in girder file) works perfectly, and the 300ms antirepeat works !
the non-working "pause" command actually sends 6 buttonpresses, cancelling out it's intention... while "test" works - because there is no switch boucing there....
It's important to say that the same event, triggered by the same button works flawlessly in "menu" group - where any repeating would be VERY easy to spot.
Ron
March 26th, 2004, 09:59 AM
Thats weird indeed. The sanity check is built into Girder, I'll add it to the menu so you can do it manually.
AlCapone
March 26th, 2004, 10:04 AM
... deleted one whole group ... now the problem is gone..
(still have some trouble controlling foobar - but the repeat problem is gone.)
I can "test" any command (for example send "x" to "foobar.exe" , but it does NOT work in real life - but Girder even jumps to that command and "does" execute it... )
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.