Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gboudreau
Channel Surfer

Roku crash when adding content to roSlideShow

In my main.brs, I create a roSlideShow, and as soon as I try adding content to it, my Roku crashes and reboots by itself:


screen = CreateObject("roSlideShow")
port = CreateObject("roMessagePort")
screen.SetMessagePort(port)
screen.SetLoop(true)
screen.SetDisplayMode("scale-to-fit")
screen.SetPeriod(8)
photos = ...
? " DBG10"
'screen.SetContentList(photos) ' this also crashes my Roku
photo = photos[0]
print photo
screen.AddContent(photo)
? " DBG11"
screen.Show()
? " DBG12"

Both SetContentList and AddContent results in the same crash.

Output on telnet port 8085:
  DBG10
<Component: roSGNode> =
{
metadata: <Component: roContentMetadata>
change: <Component: roAssociativeArray>
focusable: false
focusedChild: <Component: roInvalid>
id: 6238283290189590194
CATEGORIES: <Component: roArray>
HDPOSTERURL: https://lh3.googleusercontent.com/.../IMG_9178.JPG
SHORTDESCRIPTIONLINE1: IMG_9178.JPG
SHORTDESCRIPTIONLINE2: 2016/1/10 12:5
TITLE: IMG_9178.JPG
URL: https://lh3.googleusercontent.com/.../IMG_9178.JPG
}
Connection closed by foreign host.


Any idea..?
Tags (1)
0 Kudos
2 REPLIES 2
gboudreau
Channel Surfer

Re: Roku crash when adding content to roSlideShow

I tried replacing roSlideShow with roPosterScreen (and commenting out the following lines, and the same issue occurs.
'screen.SetLoop(true)
'screen.SetDisplayMode("scale-to-fit")
'screen.SetPeriod(8)
Tags (1)
0 Kudos
gboudreau
Channel Surfer

Re: Roku crash when adding content to roSlideShow

Of note: that might be related to the fact I'm trying to use those screens from a SG... I'm observing a field of my scene in main.brs, using the port, and when the field changes, I receive a roSGNodeEvent message in my event loop, I try to start a slideshow then.
Now that I know I should not use a roSlideShow in a SG app, I'll just stop trying to!
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!