egrivel
7 years agoVisitor
Debugging Help - Screensaver Crashes
Hi,
I'm looking for some help debugging. I have written a very simple screensaver, based on examples I found on-line. Basically, it looks like this:
The corresponding screen file is:
This "screensaver" runs in preview and when the Roku is on the Home screen, but it crashes when it gets started from inside the Roku Media Player. If I comment out the line screen.show(), it doesn't crash but display a blank screen as expected.
This screensaver actually used to work well, the crash started happening after a firmware update a couple of weeks ago. I finally managed to reduce the issue to the minimum example code above (the actual code does a little bit more, although not all that much), but I'm lost at how I can continue fixing this.
Any suggestions would be appreciated. I am very new at Roku development.
I'm looking for some help debugging. I have written a very simple screensaver, based on examples I found on-line. Basically, it looks like this:
sub RunScreenSaver()
screen = CreateObject("roSGScreen")
port = CreateObject("roMessagePort")
screen.setMessagePort(port)
m.global = screen.getGlobalNode()
scene = screen.CreateScene("ScreensaverFade")
screen.show()
while(true)
msg = wait(30000, port)
if (msg <> invalid)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then return
end if
end if
end while
end sub
The corresponding screen file is:
<?xml version="1.0" encoding="UTF-8"?>
<component name="ScreensaverFade" extends="Scene" >
<children>
<Poster
id = "Cache"
height = "720"
width = "1280"
uri = "pkg:/images/splash-screen_hd.jpg"
/>
</children>
</component>
This "screensaver" runs in preview and when the Roku is on the Home screen, but it crashes when it gets started from inside the Roku Media Player. If I comment out the line screen.show(), it doesn't crash but display a blank screen as expected.
This screensaver actually used to work well, the crash started happening after a firmware update a couple of weeks ago. I finally managed to reduce the issue to the minimum example code above (the actual code does a little bit more, although not all that much), but I'm lost at how I can continue fixing this.
Any suggestions would be appreciated. I am very new at Roku development.