Results 1 to 7 of 7

Thread: CLICKHOLD bug, crash

  1. #1
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842

    CLICKHOLD bug, crash

    this is very odd, but i can reproduce it every time.

    i have a button setup with clickhold and if you click and hold, but dont let go of the button in time, RR will for some reason issue a CANCEL command and then exit RR. I see the cancel command being sent in the debug log.

    also sometimes on the same button, RR will execute both the normal click command and the clickhold command at the same time.

    this only happens with this one button, im not sure whats wrong with it. I deleted it and remade it and no matter where i place it or what screen, RR will do the same thing.
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/rr-faq/
    mp3car live search

    i have joost invites, just hit me up for one.

  2. #2
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,619
    what's the button command, what screen is it and what skin are you using.


    Try to give more information in your posts.

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Please duble check you don't have buttons over the same area...
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  4. #4
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    that was one of the first things i checked, well ok, not the first but its only one button in that area. I even created a new blank .skin with only that button to make sure nothing else was going on.

    I do believe this is an isolated issue though, i have many other click hold buttons and they all work fine. I think in this case i must be doing something thats breaking it where it shouldnt break.
    This is my button command
    B,0,0,304,39,"MOUSEWHEELINPUT",@QUICKMENU@
    ExecTBL.ini
    "MOUSEWHEELINPUT","MENU;POPUP.skin"
    "QUICKMENU","RUN;PATH\MENU.exe"
    (path is an actual full path in the ini, just not in this post)

    now this is where things get a little sticky
    popup.skin is basicly standard menu screen, only has 6 buttons on it nothing too special at all.
    MENU.exe on the other hand is an autoit script that does a few different things one of which is send a command to RR with exec.exe
    The command it sends is "MESSAGE1" which translates to this
    "MESSAGE1","MENU;MESSAGE1.skin"
    another pretty standard menu screen.
    When menu.exe is run, it checks to see if iGuidanceUMPC.exe is running, if it is running then it sends a key to IG and then exits. If IG is not running, then it sends "MESSAGE1" to RR.

    This is where i think things start to confuse RR.
    If i click and hold on this button and let go exactly at 2 sec, everything works perfectly. But if i click and hold and wait longer than 2 sec, RR exits and not just a normal exit or crash. It actually fades away as if i were going to another screen (transitions are on) but fades away then exits and closes all running embeded apps and winamp. Which tells me that its not crashing persay, when RR crashes normally winamp will keep running as well as any other apps if the problem wasnt with them.

    Some where inbetween the click and hold there is a cancel command being sent to RR. Im not sure where from or why, its only found in 5 .skin files none of which are related to any of these screens.

    Is it possible that RR is freaking out because its being sent a command from exec.exe and i also still have my hand (mouse down) on a button. This happens very quickly. Second thought, it dosent seem to matter if the command is being sent from exec.exe or from it self.
    Also, i have both of the commands set up (for testing) as 2 seperate buttons on a seperate screen with no click hold and they both work perfectly. Its only when combine them into one button with click hold things get nasty.
    also of note, in one case i changed the 2 commands from
    B,0,0,304,39,"MOUSEWHEELINPUT",@QUICKMENU@
    TO:
    B,0,0,304,39,"MOUSEWHEELINPUT",@MINIMIZE@
    but had to remove the minimize because sort of the same thing would happen. When using the minimize command, when i click and hold RR would minimize then imediately maximize and continue to function normally.
    In this case there are no external apps sending commands to RR, just a menu loading and minimize if you hold. I relocated the minimize to another non clickhold button because of this. Which works out better at least for the minimize button.

    hope thats enough info, if its a little too confuseing to read and visualize all that an easier way is to just see it in action. Ill PM you (guino) a link where you can download the skin in a bit.

    now i wonder , what skin could that be

    in the mean time, im gonna try to trace all my steps backwards, removeing one element at a time to try to narrow down whats hanging it up.
    im gonna swap out the MENU; commands for a LOAD to see if that does anything. all my other click holds use a load, this is the only one with a menu so there may be something there.
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

  5. #5
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    I think i have this fixed
    i narrowed it down to exec.exe and autoit
    with the bug being in autoit, or bad scripting take ur pick.

    i noticed an exit command in the script, which is a command you use to exit the script when its done or if a certain condition exist.
    Do this, then do that, if this happens then exit is basicly how the script is structured.
    I have it set to run exec.exe send "MESSAGE1" command and then exit itself.
    But instead, its running exec.exe, sending the "MESSAGE1" command and also sending the exit command to RR when it should be sending it to itself.
    They both (RR & autoit) use the exit command to exit itself.
    But since when all this is happening, i have RR focused and the RR window is active with my mouse down(clickhold), it sends the command to RR instead of itself. Its not supposed to send anything unless you use the send command, so this is a bug in autoit.
    which explains why this only happens if i use the clickhold button in RR.
    And why the cancel command is in the debug. Cancel is same as exit in RR.

    so to fix it, instead of using exit in autoit to exit itself, i created a variable that points to exit.
    $myvar =exit and use that instead of the actual word exit so autoit dosent get confused as to where the command should be sent.

    case closed.
    glad thats done, been banging my head for 2 days trying to figure that out.
    I guess sometimes it takes writing out your entire process step by step to get your mind thinking right.

    so to recap,
    no bug in RR
    bug in autoit or script layout issue.
    fixed.
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

  6. #6
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    welcome to the world of programming (even if it´s autoit) haha
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  7. #7
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    yeah,
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

Similar Threads

  1. Bug Tracking List
    By d_sellers1 in forum MMC Bug Tracking
    Replies: 47
    Last Post: 04-01-2007, 11:02 PM
  2. Smart Crash Reports
    By MacUsers in forum MacCar
    Replies: 1
    Last Post: 04-20-2006, 12:56 AM
  3. V710 working then crash
    By jjfta in forum PhoneControl
    Replies: 3
    Last Post: 10-04-2005, 11:05 AM
  4. Bug Tracking (sorry long but please read)
    By liquid_smoke in forum Software & Software Development
    Replies: 23
    Last Post: 04-22-2005, 04:12 PM
  5. RR 2-20-05 ... Bug Fixes ...
    By guino in forum Road Runner
    Replies: 123
    Last Post: 03-01-2005, 02:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •