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!

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?

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).

Are you pressing the same Home that I’m pressing? Are you using a physical remote or a phone/tablet app?

Physical remote. Roku 3.

“adamkaz” wrote:
Physical remote. Roku 3.
Hi Adam, I’m having the same issue, how could you solve it?