peterjtracey
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2016
10:24 AM
Mysterious error in roSpringboardScreen
I set up a content associative array and pass it to the springboardscreen object doing:
screen.SetContent(show)
on this line I get an error (warning? doesn't pull up the debugger...) "BRIGHTSCRIPT: ERROR: roSpringboardScreen.SetContent: Failed to box a bsTVAL.: pkg:/source/appChannel.brs(166)"
The screen comes up with no image, title, etc. I googled the error message but get no results of any use. Doesn't seem like anyone else is getting this error so I have no idea what's going on with my code.
Can anybody help me?
screen.SetContent(show)
on this line I get an error (warning? doesn't pull up the debugger...) "BRIGHTSCRIPT: ERROR: roSpringboardScreen.SetContent: Failed to box a bsTVAL.: pkg:/source/appChannel.brs(166)"
The screen comes up with no image, title, etc. I googled the error message but get no results of any use. Doesn't seem like anyone else is getting this error so I have no idea what's going on with my code.
Can anybody help me?
5 REPLIES 5

squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2016
10:56 AM
Re: Mysterious error in roSpringboardScreen
Posting the actual code might help.
Kinetics Screensavers


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2016
11:15 AM
Re: Mysterious error in roSpringboardScreen
"peterjtracey" wrote:
I set up a content associative array and pass it to the springboardscreen object doing:
screen.SetContent(show)
on this line I get an error (warning? doesn't pull up the debugger...) "BRIGHTSCRIPT: ERROR: roSpringboardScreen.SetContent: Failed to box a bsTVAL.: pkg:/source/appChannel.brs(166)"
I suggest you inspect all of the value types in the 'show' associative array values carefully.
It seems like there is something that is not an expected value type (string, integer, etc.) ... perhaps a component object value got included unintentionally?
peterjtracey
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2016
11:16 AM
Re: Mysterious error in roSpringboardScreen
...I commented everything but title out and title showed, so I started uncommenting things and the error starts occuring when I uncomment the lines:
bitrates = [0]
qualities = ["SD"]
urls = [streamUrl]
streamformat = "hls"
show.StreamBitrates = bitrates
show.StreamUrls = urls
show.StreamQualities = qualities
show.StreamFormat = streamformat
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2016
11:50 AM
Re: Mysterious error in roSpringboardScreen
Ha, this is odd. Why would it fail boxing any of these values?!
Try "print formatJSON(show)" just before doing setContent() while with the problematic values. Anything fun?
Try "print formatJSON(show)" just before doing setContent() while with the problematic values. Anything fun?
peterjtracey
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2016
12:02 PM
Re: Mysterious error in roSpringboardScreen
Thanks everyone I figured it out. I had an error in my code that caused an uninitialized variable to get put in the array.