Hi,
Recently, we updated our Roku device to OS 12 and after the update, we are facing some issue with many of our game applications.
The background images on homescreen and some other png images are not visible in the application for devices having OS 12, but the same is correctly visible for Roku devices having OS 11.5.
Is anyone else facing this issue?
Is there any solution for this or anything that we need to update to make it work correctly for OS 12?
Thanks.
I haven't seen this myself, but can grasp at a few straws:
what filesize are your images?
Are you generating the fields dynamically with brs code or are the heights and widths hardcoded in XML?
You may need to specify the loadSync field to be true for posters that you set to files that are downloaded to /tmp and then deleted. The timing of when the image is loaded changed with 12.0, and if you do the download, set, delete dance without sync set, the poster may not try to decode the image until after the file is gone.
https://developer.roku.com/docs/references/scenegraph/renderable-nodes/poster.md#fields
Hi @RokuBen, @joetesta
Thanks for the response.
We are not downloading and storing images in /tmp.
Images are in our images folder.
We have several apps that got affected by it. These all are gaming applications.
Also, the background images that are not visible on OS 12 are set in "m.top.backgroundUri".
We are creating roScreen and roSGScreen. roScreen is created to keep the app open once Ads play and exit in mid of game.
If roScreen is not used, app kills once the Ads play because roSGScreen closes.
Therefore, we use roScreen to prevent such situation.
Here is the sample code for it:
m.facade = CreateObject("roScreen")
m.screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
m.screen.setMessagePort(m.port)
There were no such issues with any of the earlier Roku OS since last 5 years.
Please let us know if there is anything we are missing that changed in this OS 12 update.
Thanks
Yes, i faced same problem. But its nature seems random. We load images from package.
What is funny most time Poster works (9/10) and sometimes (1/10) image is not shown. There is no difference in fields of the Poster (no errors, etc).
RALE show also correct URI and other fields of Poster.
Also, when screen saver enters screen, and i close it - bug fixes by itself. Looks like BUG in ROKU OS.
Are the images you're using fairly large? I could see there being an issue with the texture memory allocation for the decoded picture causing random problems, which also would vary by device and the device's current set of loaded images.
No, it was rather small (61x61) and use a 9patch image (resizable button background).
I'm seeing the same issue across all of my channels. Has anyone narrowed down what is causing this?
In my case, it is also in the package and I have tried all sort of variations with the image (png, jpg, super small file consisting of a single color, different sizer, etc...).
If it's published, can you post the name of your channel so we can look from the Roku side?
It is even sometimes visible on Roku HOME screen, where you choose application: