Your Digital Media Has Never Looked So Good

 
User avatar
24i
Topic Author
Posts: 37
Joined: Wed Feb 15, 2017 7:22 am

SceneGraph - Bug with BusySpinner and ProgressDialog on FHD setting

Thu Feb 23, 2017 3:08 am

Hello,

We are having an issue with the BusySpinner and Progress Dialog within our applications on certain devices.
The spinners are displaying some strange scaling/translating behaviour. This applies to both the BusySpinner and the default ProgressDialog. 

The problem occurs on the new Roku Express, but not on the Roku 4, Roku 3 or older Roku Streaming Stick (not 2016 version). All running on 7.5 Firmware.

We took this example: https://sdkdocs.roku.com/display/sdkdoc/BusySpinner?preview=/4260877/4261069/SimpleBusySpinner.zip 
and compared the differences. It turns out that this bug is caused by the "ui_resolutions" setting on the manifest when it's set to "fhd". 
On "hd" it works fine.

We have developed several apps on the "fhd" setting and we never had any problems until we tested it on the new Roku Express. 
This appears to be a bug within Roku itself and we would like the Roku Team to take a look at this. 

Below you will find some example gifs. 

Here we are using the BusySpinner
Image

Here we are using the ProgressDialog without a background
Image

Here we are using the ProgressDialog with the default settings
Image
 
Veeta
Posts: 149
Joined: Tue Aug 12, 2014 4:44 am
Location: http://www.veeta.tv
Contact:

Re: SceneGraph - Bug with BusySpinner and ProgressDialog on FHD setting

Thu Feb 23, 2017 5:46 am

I've seen this behavior on the non-OpenGL devices as well. Our workaround was to turn off most animations on non-OpenGL devices.

One of the Roku sample channels show filtering on Roku models by those whose first digit is 3 or less (2310X, 3500X) but I currently have a whitelist of the supported low-spec devices to apply the shortcut to.

More recently there was a flag 'optional' added to Animations which may be used.

I would like to see this bug fixed in the software rendering rotations, though.
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: SceneGraph - Bug with BusySpinner and ProgressDialog on FHD setting

Wed Mar 01, 2017 1:35 am

24i wrote:
We took this example: https://sdkdocs.roku.com/display/sdkdoc/BusySpinner?preview=/4260877/4261069/SimpleBusySpinner.zip 
and compared the differences. It turns out that this bug is caused by the "ui_resolutions" setting on the manifest when it's set to "fhd". 
On "hd" it works fine.

Well this is odd. How can you run example with ui_resolutions=fhd on Express, if FHD UI is only supported on 4k devices?
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: SceneGraph - Bug with BusySpinner and ProgressDialog on FHD setting

Sun Mar 05, 2017 12:06 pm

The issue is not specifically with the BusySpinner, but rather with rotations in general when using the automatic scaling from FHD to HD.  Any use of rotation using the "fhd" UI resolution gets mangled when scaled down to HD.  The only workaround I've found is to either explicitly define an "hd" layout as well, or to use a custom sprite/frame-based animation.

EnTerr wrote:
Well this is odd. How can you run example with ui_resolutions=fhd on Express, if FHD UI is only supported on 4k devices?

fhd layouts automatically get scaled to hd on devices that don't support fhd, so you don't have to define multiple layouts.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: SceneGraph - Bug with BusySpinner and ProgressDialog on FHD setting

Sun Mar 05, 2017 8:59 pm

TheEndless wrote:
The issue is not specifically with the BusySpinner, but rather with rotations in general when using the automatic scaling from FHD to HD.  Any use of rotation using the "fhd" UI resolution gets mangled when scaled down to HD.  The only workaround I've found is to either explicitly define an "hd" layout as well, or to use a custom sprite/frame-based animation.

Where have you been, man? 8) Do i need to say the forum is not the same without your omnipresence?

Seems an exact description of the issue is "Simultaneous rotation and scaling are problematic on DirectFB devices". Just like in the "fire triangle", to extinguish it remove 1 of the 3 elements:
  • avoid rotations
  • avoid auto-scaling (by manifesting `ui_resolutions=sd,hd,fhd` and 3x the work)
  • avoid non-GLES devices (2450/2500, 27xx, 37xx, 5xxx - which is what, 1/4 of the market?)

EnTerr wrote:
Well this is odd. How can you run example with ui_resolutions=fhd on Express, if FHD UI is only supported on 4k devices?

fhd layouts automatically get scaled to hd on devices that don't support fhd, so you don't have to define multiple layouts.

<sigh> this is under-documented. I regularly forget auto-scaling was added last year - moreover TFM makes it sound as if it applies only to RSG apps, where it's true for SDK1 too. Full cartesian product of auto-scaling works, i imagine (3x3: FHD->SD, SD->FHD and so on)?
 
User avatar
24i
Topic Author
Posts: 37
Joined: Wed Feb 15, 2017 7:22 am

Re: SceneGraph - Bug with BusySpinner and ProgressDialog on FHD setting

Mon Mar 06, 2017 7:34 am

Thanks for the replies!

It seems that the rotation issue is fixed with the 7.6 Firmware. At least for the Express it is. We are running the beta firmware on that one.

Who is online

Users browsing this forum: No registered users and 8 guests