feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
914 stars 386 forks source link

Object not removed from Stage on Android - Starling maybe? #1817

Closed raresn closed 2 years ago

raresn commented 2 years ago

Hello, we recently found a bug in our app that we can't figure out. When we first start the app:

add a "splash screen"
load the data from the device (load files)
launch starling
remove the "splash screen"
Now, we encountered some scenarios where the removal of the "splash screen" doesn't work.

I am attaching the sample code to reproduce this.

SCENARIO 1 - WORKING -by setting skipUnchangedFrames to false, it will run the app, -it will show the splash -it will fake load for 5 seconds (just a while loop to simulate loading of files) -start starling -it will try to remove the splash after 3 seconds -it will work

SCENARIO 2 - NOT WORKING this is the case we encounter in our app, and why we built this simple test after nearly going insane ;))

-by setting skipUnchangedFrames to false, it will run the app, -it will show the splash -it will "fake load" for 5 seconds (just a while loop to simulate loading of files) -- we put the app in background when this "load" starts (so, not close, just put it background) -- we open it up again within these 5 seconds -start starling -it will try to remove the splash after 3 seconds -it will NOT WORK ANYMORE, nor show the blue background of Starling!

SCENARIO 3 - NOT WORKING -if you set skipUnchangedFrames to true, -it will show the splash -it will fake load for 5 seconds -start starling, -it will show the blue background of starling -it will try to remove the splash after 3 seconds, but will fail to do so.

Known fix - rotate the screen, or put the app in background and put it in forground again. Source files here: splashTest.zip

raresn commented 2 years ago

Just realised this is the feathers git, and this isn't a feather bug, sry.