Skip to main content
Enigmato
Participant
October 16, 2015
Answered

Android 6 : Stage3D AIR application fails to return from background

  • October 16, 2015
  • 3 replies
  • 2783 views

Problem description:

AIR for android application with <application android:hardwareAccelerated="true"> will stuck and be unresponsive if brought to foreground from background in Android 6.0 (Marshmallow).

We did some test with in Nexus(Android 6.0) device, and were able to reproduce the issue with Starling sample project.

App failed to continue when attempted to switch between apps second time, though our app failed at first attempt.

Reproduction:

Application was packaged with latest AIR SDK (19.0.0.213), in Nexus 5 / 7 (both Android 6)

App expected to continue running, but actually stucks (black screen) and OS prompts to terminate unreponsive app at second attempt to bring it foreground.

Turning off hardware acceleration seems to circumvent the issue, at performance cost. (<application android:hardwareAccelerated="false">)

We'd like to hear from other developers who tested their app (especially Stage3D apps) in Android 6 Marshmallow.

Currently we have no choice but to tell customers to refrain from upgrading their OS version.

This topic has been closed for replies.
Correct answer krgupta

hi,

i have updated the air sdk to 20.

but, the bug is still here.

if itake the app to the background and then to foreground then try to show interstitial the app is still crashing.

did you mean that this bug suppose to be fixed?

thank you!

Rony


Hi Rony,

The Android 6 crash issue when targetSDK is set to 23 has been fixed in AIR 20 beta.

We are still working on the crash issue after application returns from background.

Thanks,

Krati

3 replies

Community Manager
October 30, 2015

Hi,

We tried to reproduce this issue with Starling sample application and AIRSDK 19.0.0.213 but it is working fine.

Could you please share a sample application, source code, assets and swf's at krguptaATadobeDOTcom so that we can check it at our end.

Thanks,

Krati

Participating Frequently
October 30, 2015

thank you,

It seems to have to do with Adobe AIR SDK handling the context change when there's a hardware accelerated layer on top of the stage (interstitial ad for example) in Android 6,


Repro steps:

1. open the app.

2. minimize the app. (app -> background, click on home button).

3. foreground the app.

4. click on the flower to show interstitial. -> the app will crash.

the sample project

TEST_ANDROID6

Community Manager
October 30, 2015

Hi,

Thank you for sharing the sample application. I tried this application with hardware-acceleration:true and it is working fine.

I could see the Interstitial ad and click the flower multiple times after bringing the application back to foreground without any crash.


Please share the ane's that are being used in this application so that we can re-build the application and then try further.

Thanks,

Krati

Participant
October 27, 2015

We have a similar problem building a Adobe AIR app for Android, with targetsdk set to 23.  When tested on a Android 6.0 device, the game starts up with a black, blank screen and never continues from there.

Participating Frequently
October 16, 2015

hi,

we are experiencing the same problem!

we have reported a bug to adobe bugbase-

Bug#4075177 - Android 6 : Stage3D AIR application fails to return from background

and wrote about the bug in starlin forum-

Android 6 : Stage3D AIR application fails to return from background « Starling Forum