Roku Update Breaks Channel on Roku XS

This simple code works on all of our Rokus (both Roku 3 and Roku 1) except the Roku XS:

Sub Main()
dialog = CreateObject(“roOneLineDialog”)
dialog.SetTitle(“Loading please wait…”)
dialog.ShowBusyAnimation()
dialog.show()
dialog.close()

’ display a screen so the home page doesn’t show in the background
screenFacade = CreateObject(“roPosterScreen”)

?“Debug” ’ THIS DOESNT GET RUN OR ANYTHING AFTER IT

screenFacade.show()

’ do more stuff to load main screen of app
end sub

There are no errors output and the documentation doesn’t say anything changed. Our channel is now broken for anybody using this Roku.

Please advise!

As soon as you close your dialog, there are no open screens, so the channel exits. You should open the facade first, before you create and destroy the dialog.

–Mark

Then why does it still work on all other devices?

As far as I have been able to tell, There may have been an issue in 5.0 firmware that allowed people to get away with this , but in 5.1 it is back to normal behavior. Maybe this issue was replicated in the recent update to 3.x firmware as well.

  • Joel