Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
adamkaz
Channel Surfer

What happens when "home" button is pressed?

I am debugging an issue that causes a crash of the device when the "home" button is pressed, similar, but not the same to this bug (i think): viewtopic.php?f=34&t=86219&hilit=rotexturerequestevent+crash

Is there a writeup somewhere of what actually happens in the code / messages when the "home" button is pressed?

Thanks!
0 Kudos
5 REPLIES 5
EnTerr
Roku Guru

Re: What happens when "home" button is pressed?

Nope.
When "Home" is pressed, a BrightScript channel exits - end of story. If device crash&burns at this point, it's a firmware issue. Can you create some minimal example (the least code to reproduce the crash) and post it here?
0 Kudos
adamkaz
Channel Surfer

Re: What happens when "home" button is pressed?

Yeah, I'm working on creating a minimal example.....

I can see my app is responding to the button press and starting to close screens, etc. Not the bug, but even in the sample "videoplayer app", you can see that the app does not simply terminate:

1) sideload "videoplayer" example from the SDK
2) select and start a video
3) open the debug telnet
4) press "home"
5) you'll see the app responding to the home button:
showHomeScreen | msg = Playback interrupted by user. | index = 0
Unexpected event type: 15
showHomeScreen | msg = | index = 0
Screen closed
Button pressed: 2 0
Screen closed
list item updated | new show = 0
showPosterScreen | msg = | index = 0
showHomeScreen | msg = | index = 0
Note: GC - Found 50 orphaned objects (objects in a circular ref loop).
0 Kudos
Komag
Roku Guru

Re: What happens when "home" button is pressed?

Are you pressing the same Home that I'm pressing? Are you using a physical remote or a phone/tablet app?
0 Kudos
adamkaz
Channel Surfer

Re: What happens when "home" button is pressed?

Physical remote. Roku 3.
0 Kudos
kalejapb
Visitor

Re: What happens when "home" button is pressed?

"adamkaz" wrote:
Physical remote. Roku 3.

Hi Adam, I'm having the same issue, how could you solve it?
0 Kudos