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: 
rkeene
Visitor

What to do when your application crashes the Roku ?

All,

I am writing a small application for the Roku. Currently many actions in the application cause the Roku to crash and immediately reboot. Is there any way to get more information on what is causing this so I can work around it ?

Here's what I get over the Debugging Console:

Backtrace:
Function doSlideShow(images$ As , sort$ As ) As
file/line: /tmp/plugin/MCAAAA6RXisT/pkg:/source/main.brs(253)
Function main() As
file/line: /tmp/plugin/MCAAAA6RXisT/pkg:/source/main.brs(317)

Local Variables:
images$ &h0100 String (VT_STR_CONST) val:all
sort$ &h0100 String (VT_STR_CONST) val:top
global &h0020 rotINTERFACE:ifGlobal
m &h0010 bsc:roAssociativeArray, refcnt=3
reddit &h0010 bsc:roAssociativeArray, refcnt=2
images &h0010 bsc:roArray, refcnt=1
idx &h0002 Integer val:0
entry &h4010 bsc:roAssociativeArray, refcnt=1
num_images_loaded &h0002 Integer val:30
port &h0010 bsc:roMessagePort, refcnt=3
ui &h0010 bsc:roSlideShow, refcnt=1
overlay_visible &h0008 Boolean val:false
overlay_display_time &h0002 Integer val:30000
last_idx &h0002 Integer val:0
msg &h0010 ERROR: NULL tv.value.bsc
BrightScript Debugger> PRINT msg
Connection closed by foreign host.
<<Roku reboots>>


Thanks,
Roy Keene
0 Kudos
2 REPLIES 2
destruk
Streaming Star

Re: What to do when your application crashes the Roku ?

sure, don't try to print the msg.
0 Kudos
rkeene
Visitor

Re: What to do when your application crashes the Roku ?

destruk,

That was just an example. It also happens if I try to exit the application.

Thanks,
Roy Keene
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.