Copy link to clipboard
Copied
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.
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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:
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thank you.
Have you tried it on android 6?
This bug is happening only on android 6.
Copy link to clipboard
Copied
this bug is happening only on android 6.
the ane is paid milkman ane.
but this bug is happening on all the anes's that i have tried.
i have tried supersonic which have their own sdk and extension and the bug is happening over there as well.
i have also downloaded all the apps in starling showcase and tried them on 3 different nexus 5 with android 6. all of the games that try to show ad, after the app was in the background are crashing.
Copy link to clipboard
Copied
We tried to reproduce this issue with Android 6.0 on Nexus 5, but it is working fine for us.
Could you provide us some other sample application with sources, ane, swf's so that we can look more into it.
Copy link to clipboard
Copied
hi,
thank you.
i have build a new sample with supersonic ane which is free, and the bug is still happening on android 6.
i have attached the source,ane,apk,swf.
Copy link to clipboard
Copied
Hi,
We have reproduced the issue at our end and have logged an internal bug to investigate on the same.
We will post the updates on the bug here.
Thanks,
Krati
Copy link to clipboard
Copied
hi,
any news?
thanks
Copy link to clipboard
Copied
Also got many users with Android 6 complaining that the app crashes on startup.
Is this already fixed in a beta air release?
Copy link to clipboard
Copied
Hi Dominik,
Yes. We have fixed an Android 6 crash issue in our AIR 20 beta release.
Thanks,
Krati
Copy link to clipboard
Copied
The apk works when setting target api to 22 instead of 23...
Thanks for the investigation.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
thank you very much!
Rony
Copy link to clipboard
Copied
Hi,
We are still investigating on this issue. I will post on this thread once we have some updates.
Thanks,
Krati