0

HD1010 Crash with rapid button presses



My interactive autorun.brs script works fine:
Attract video
Press one of 4 buttons to choose one of 4 videos
Play that Video
Back to the attract video

If a single button is pressed twice rapidly (twice per second) or
if a second button is pressed immediately after the first,
The system crashes (Black screen. Shell prompt "Roku>" at terminal)

I do not want to do hardware debounce.
Do I need to add a timer after detecting button presses?
What's the best syntax for a delay after detecting a button?

Thanks,
Bob

4 comments

  • 0
    Avatar
    RokuLyndon


    What firmware are you using? I recall a rapid button issue that was fixed in a firmware release.
  • 0
    Avatar
    Bob


    Thanks for asking. I should have said so out front.

    With my HD1010 I updated to 3.1.46 beta, then 3.1.46 release, now 3.1.71 beta.

    All act the same. Rapid button presses make black screen and Roku> system prompt.



    Bob
  • 0
    Avatar
    RokuLyndon


    The script you sent had an unnecessary section that didn't really do anything. With that section removed, your script plays fine on my unit, and I don't get any lockups or exits from the script.
  • 0
    Avatar
    Bob


    Thanks, Lyndon.  That's what I get for borrowing a script without understanding.
Please sign in to leave a comment.