Copy link to clipboard
Copied
It appears as if the application I am developing on AIR for Android locks up intermittently. There is no crash on the ActionScript side at all. Looking at the output from logcat doesn't show anything either. It basically gets into a state where the game music (played through ActionScript/AIR) continues to play, but all buttons, events, timers, etc. fail to work. It almost seems like the framerate has gone to 0 (or close to it). I did not receive any USER_IDLE / USER_PRESENT / ACTIVATE / DEACTIVATE events from NativeApplication however. I've submitted a bug here.
I'm REALLY stumped on this one.. If anyone has experiences similar hangs/crashes with Adobe AIR for Android, I'd love to hear from you about how you fixed it.
Copy link to clipboard
Copied
So in order to find out a little more information about what is happening I took at look at the threads. The 'main' thread upon which AIR runs does indeed seem to be 'stuck' as the utime and stime reported by DDMS no longer count up, and remain the same once the application stops responding. The AudioTrack thread continues to operate normally, with utime and stime counting up while the audio plays fine in the background.
Copy link to clipboard
Copied
The last 3 times I checked out the 'main' thread during a hang, I noticed that the thread was in the middle of the handleMessage / callTimeoutFunction of the com.adobe.air.customHandler class. Not sure if that helps at all..
Copy link to clipboard
Copied
Not sure if this helps at all..
I/ActivityManager( 608): No longer want com.android.gallery3d (pid 18891): hidden #16
W/ActivityManager( 608): Activity pause timeout for ActivityRecord{4100ca98 air.com.blitzoo.SSMQA/.AppEntry}
W/ActivityManager( 608): Activity stop timeout for ActivityRecord{4100ca98 air.com.blitzoo.SSMQA/.AppEntry}
I/ActivityManager( 608): Activity reported stop, but no longer stopping: ActivityRecord{4100ca98 air.com.blitzoo.SSMQA/.AppEntry}
W/ActivityManager( 608): Activity idle timeout for ActivityRecord{4100ca98 air.com.blitzoo.SSMQA/.AppEntry}
E/ActivityManager( 608): ANR in air.com.blitzoo.SSMQA
E/ActivityManager( 608): Reason: Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 }
E/ActivityManager( 608): Load: 0.82 / 0.67 / 0.76
E/ActivityManager( 608): CPU usage from 10293ms to 832ms ago:
E/ActivityManager( 608): 5.4% 19100/kworker/u:3: 0% user + 5.4% kernel
E/ActivityManager( 608): 5.2% 21186/air.com.blitzoo.SSMQA: 3.9% user + 1.3% kernel / faults: 1 minor
E/ActivityManager( 608): 3.8% 250/mediaserver: 1% user + 2.7% kernel
E/ActivityManager( 608): 2.7% 608/system_server: 1.3% user + 1.3% kernel / faults: 20 minor
E/ActivityManager( 608): 1.9% 23366/dhd_dpc: 0% user + 1.9% kernel
E/ActivityManager( 608): 1.5% 21196/kworker/u:4: 0% user + 1.5% kernel
E/ActivityManager( 608): 1.3% 1387/mpdecision: 0% user + 1.3% kernel
E/ActivityManager( 608): 0.5% 21180/kworker/0:1: 0% user + 0.5% kernel
E/ActivityManager( 608): 0.2% 881/com.android.systemui: 0.2% user + 0% kernel / faults: 1 minor
E/ActivityManager( 608): 0% 1019/com.android.nfc: 0% user + 0% kernel / faults: 7 minor
E/ActivityManager( 608): 0.2% 16253/adbd: 0% user + 0.2% kernel / faults: 16 minor
E/ActivityManager( 608): 0.2% 19519/com.doubleTwist.androidPlayer: 0.2% user + 0% kernel / faults: 31 minor
E/ActivityManager( 608): 0.2% 23365/dhd_watchdog: 0% user + 0.2% kernel
E/ActivityManager( 608): 0% 53/irq/675-esd_det: 0% user + 0% kernel
E/ActivityManager( 608): 0.1% 98/mmcqd/0: 0% user + 0.1% kernel
E/ActivityManager( 608): 0% 246/rild: 0% user + 0% kernel / faults: 2 minor
E/ActivityManager( 608): 0.1% 247/surfaceflinger: 0% user + 0.1% kernel / faults: 2 minor
E/ActivityManager( 608): 0% 992/com.android.inputmethod.latin: 0% user + 0% kernel / faults: 5 minor
E/ActivityManager( 608): 0% 1145/com.google.process.gapps: 0% user + 0% kernel
E/ActivityManager( 608): 0% 3427/com.latedroid.juicedefender: 0% user + 0% kernel / faults: 3 minor
E/ActivityManager( 608): 0% 20810/com.google.android.apps.maps:GoogleLocationService: 0% user + 0% kernel / faults: 8 minor
E/ActivityManager( 608): 0.1% 21195/kworker/u:1: 0% user + 0.1% kernel
E/ActivityManager( 608): +0% 21731/flush-0:16: 0% user + 0% kernel
E/ActivityManager( 608): +0% 21732/flush-179:96: 0% user + 0% kernel
E/ActivityManager( 608): 17% TOTAL: 4.6% user + 12% kernel + 0% softirq
E/ActivityManager( 608): CPU usage from 1819ms to 2348ms later with 99% awake:
E/ActivityManager( 608): 13% 608/system_server: 3.7% user + 9.4% kernel / faults: 94 minor
E/ActivityManager( 608): 3.7% 615/Compiler: 0% user + 3.7% kernel
E/ActivityManager( 608): 3.7% 660/ActivityManager: 0% user + 3.7% kernel
E/ActivityManager( 608): 1.8% 617/FinalizerDaemon: 1.8% user + 0% kernel
E/ActivityManager( 608): 5.4% 19519/com.doubleTwist.androidPlayer: 5.4% user + 0% kernel / faults: 32 minor
E/ActivityManager( 608): 4.1% 14888/8-16-166: 4.1% user + 0% kernel
E/ActivityManager( 608): 2.2% 250/mediaserver: 2.2% user + 0% kernel
E/ActivityManager( 608): 1.1% 603/FastMixer: 0% user + 1.1% kernel
E/ActivityManager( 608): 1.1% 674/AudioOut_2: 1.1% user + 0% kernel
E/ActivityManager( 608): 2.8% 21186/air.com.blitzoo.SSMQA: 1.4% user + 1.4% kernel
E/ActivityManager( 608): 2.8% 21223/FP_AudioCallbac: 2.8% user + 0% kernel
E/ActivityManager( 608): 1.4% 21222/AudioTrack: 0% user + 1.4% kernel
E/ActivityManager( 608): 1.2% 881/com.android.systemui: 0% user + 1.2% kernel
E/ActivityManager( 608): 1.2% 881/ndroid.systemui: 1.2% user + 0% kernel
E/ActivityManager( 608): 1.8% 1387/mpdecision: 0% user + 1.8% kernel
E/ActivityManager( 608): 1.8% 1395/mpdecision: 0% user + 1.8% kernel
E/ActivityManager( 608): 1.4% 21180/kworker/0:1: 0% user + 1.4% kernel
E/ActivityManager( 608): 1.8% 23366/dhd_dpc: 0% user + 1.8% kernel
E/ActivityManager( 608): 17% TOTAL: 8.3% user + 9.3% kernel
Copy link to clipboard
Copied
I am having the same issue with an Andoid app. This is critical and it's driving me crazy because the app crashes also when in idle. I have tested this on a large range of device with Honeycomb and Ics. The bug is related to AIR runtime 3.4. The only way I had to avoid the crash uninstall air 3.4 and install the 3.1 runtime on the tablet/phone.
Please fellow coders show some solidarity and vote for my bug:
https://bugbase.adobe.com/index.cfm?event=bug&id=3348496
Thanks
Message was edited by: Arthur_Flower
Copy link to clipboard
Copied
I've asked our team to take a look at this bug (3348496). I'd like to recommend anyone else encountering this issue to take a minute and leave a comment/vote in the bug report.
Copy link to clipboard
Copied
Has there been any movement on this? I just grabbed the stable AIR SDK 3.5 release, overlaid that onto Flex 4.6 and built an APK against that. Unfortunately, I'm still getting the idle crash..
Copy link to clipboard
Copied
As of this afternoon, this bug is still marked "To Fix" for our upcoming 3.6 release. Please keep the bug comments/votes coming and feel free to ping me for updates.
Copy link to clipboard
Copied
Did a fix for this make it into the 3.6 Beta? News would be good on this issue as it's the #1 stability issue we have by a mile....
Copy link to clipboard
Copied
I suspect that this is fixed with the beta we released yesterday. The last internal note in the bug database was dated 12/3 and stated that the issue was no longer reproducible. I'd recommend giving it a try and letting us know if you are still able to reproduce the bug.
Copy link to clipboard
Copied
Hello,
We are having the same issue with our AIR app for android. If the device is left idle for some time usually ~10 minutes, the application becomes completely unresponsonsive. Have extensivley profiled the app for memory leaks in profiler and adobe scout and there are none.
This has become a serious issue for us and our entire application. We have 5 enterprise level applications based on this code base that are having this issue. Really running out of ideas here as to what to do. Any help is greatly appreciated.
The ANR crash reports primarily report:
ANR KeyDispatchingTImedOut
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x418beb38 self=0x418ad3b0
| sysTid=18901 nice=0 sched=0/0 cgrp=apps handle=1074296284
| state=S schedstat=( 0 0 0 ) utm=583 stm=100 core=0
#00 pc 0001829c /system/lib/libc.so (__futex_syscall3+8)
#01 pc 0000d7dc /system/lib/libc.so
#02 pc 0014f009 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#03 pc 0015817f /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#04 pc 0015a51d /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#05 pc 0059574b /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#06 pc 00596229 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#07 pc 004e0a7b /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#08 pc 000017fc <unknown>
at com.adobe.air.customHandler.callTimeoutFunction(Native Method)
at com.adobe.air.customHandler.handleMessage(customHandler.java:22)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
"UploadHandler" prio=5 tid=23 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42ba9fe0 self=0x7a8b8448
| sysTid=18952 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=2055964824
| state=S schedstat=( 0 0 0 ) utm=4 stm=3 core=1
#00 pc 00018044 /system/lib/libc.so (epoll_wait+12)
#01 pc 00014d21 /system/lib/libutils.so (android::Looper::pollInner(int)+96)
#02 pc 00014f89 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+104)
#03 pc 00068d27 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#04 pc 00020210 /system/lib/libdvm.so (dvmPlatformInvoke+112)
#05 pc 0004f875 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+396)
#06 pc 000296a0 /system/lib/libdvm.so
#07 pc 0002d7ec /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#08 pc 00062261 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
#09 pc 0006228b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#10 pc 00056e0b /system/lib/libdvm.so
#11 pc 0000e538 /system/lib/libc.so (__thread_entry+72)
#12 pc 0000dc24 /system/lib/libc.so (pthread_create+160)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:125)
at android.os.Looper.loop(Looper.java:124)
at android.os.HandlerThread.run(HandlerThread.java:60)
"SessionHandler" prio=5 tid=22 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42ba9ad0 self=0x7a8b7d28
| sysTid=18951 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=2055963000
| state=S schedstat=( 0 0 0 ) utm=5 stm=1 core=0
#00 pc 00018044 /system/lib/libc.so (epoll_wait+12)
#01 pc 00014d21 /system/lib/libutils.so (android::Looper::pollInner(int)+96)
#02 pc 00014f89 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+104)
#03 pc 00068d27 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#04 pc 00020210 /system/lib/libdvm.so (dvmPlatformInvoke+112)
#05 pc 0004f875 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+396)
#06 pc 000296a0 /system/lib/libdvm.so
#07 pc 0002d7ec /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#08 pc 00062261 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
#09 pc 0006228b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#10 pc 00056e0b /system/lib/libdvm.so
#11 pc 0000e538 /system/lib/libc.so (__thread_entry+72)
#12 pc 0000dc24 /system/lib/libc.so (pthread_create+160)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:125)
at android.os.Looper.loop(Looper.java:124)
at android.os.HandlerThread.run(HandlerThread.java:60)
"Thread-11149" prio=5 tid=20 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42b30f90 self=0x7199f648
| sysTid=18930 nice=0 sched=0/0 cgrp=apps handle=1891085816
| state=S schedstat=( 0 0 0 ) utm=0 stm=29 core=0
#00 pc 000182a0 /system/lib/libc.so (__futex_syscall3+12)
#01 pc 0000e57c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000e5d8 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0014e9cd /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#04 pc 003c046b /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#05 pc 003c0187 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#06 pc 0014eb71 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
at dalvik.system.NativeStart.run(Native Method)
"Thread-11148" prio=5 tid=19 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42a993e8 self=0x7197cf58
| sysTid=18928 nice=0 sched=0/0 cgrp=apps handle=1904058448
| state=S schedstat=( 0 0 0 ) utm=1 stm=0 core=0
#00 pc 000182a0 /system/lib/libc.so (__futex_syscall3+12)
#01 pc 0000e57c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000e5d8 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0014e9cd /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#04 pc 00530d57 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
at dalvik.system.NativeStart.run(Native Method)
"Thread-11145" prio=5 tid=17 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42a3fde0 self=0x70b78f58
| sysTid=18922 nice=0 sched=0/0 cgrp=apps handle=1905829840
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=3
#00 pc 0001829c /system/lib/libc.so (__futex_syscall3+8)
#01 pc 0000e57c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000e5d8 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0014e9f7 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#04 pc 00251d7d /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#05 pc 0014eb71 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
at dalvik.system.NativeStart.run(Native Method)
"Thread-11144" prio=5 tid=16 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42a3fd70 self=0x70ba77b8
| sysTid=18921 nice=0 sched=0/0 cgrp=apps handle=1904101448
| state=S schedstat=( 0 0 0 ) utm=11 stm=0 core=1
#00 pc 0001829c /system/lib/libc.so (__futex_syscall3+8)
#01 pc 0000e57c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000e5d8 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0014e9f7 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#04 pc 00251d7d /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#05 pc 0014eb71 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
at dalvik.system.NativeStart.run(Native Method)
"Thread-11143" prio=5 tid=14 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42a3f928 self=0x719915c0
| sysTid=18919 nice=0 sched=0/0 cgrp=apps handle=1904103880
| state=S schedstat=( 0 0 0 ) utm=14 stm=0 core=1
#00 pc 0001829c /system/lib/libc.so (__futex_syscall3+8)
#01 pc 0000e57c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000e5d8 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0014e9f7 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#04 pc 00251d7d /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#05 pc 0014eb71 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
at dalvik.system.NativeStart.run(Native Method)
"Thread-11142" prio=5 tid=15 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42a3f8d0 self=0x717e7390
| sysTid=18920 nice=0 sched=0/0 cgrp=apps handle=1904101848
| state=S schedstat=( 0 0 0 ) utm=11 stm=1 core=1
#00 pc 0001829c /system/lib/libc.so (__futex_syscall3+8)
#01 pc 0000e57c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000e5d8 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0014e9f7 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#04 pc 00251d7d /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
#05 pc 0014eb71 /data/app-lib/air.com.OneUpGames.MLBConnect-1/libCore.so
at dalvik.system.NativeStart.run(Native Method)
"Binder_4" prio=5 tid=13 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42a3f1f0 self=0x70dbc250
| sysTid=18918 nice=0 sched=0/0 cgrp=apps handle=1904134328
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0
#00 pc 00017144 /system/lib/libc.so (__ioctl+8)
#01 pc 0002ab35 /system/lib/libc.so (ioctl+16)
#02 pc 00016ba1 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+132)
#03 pc 00017363 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 0001b15d /system/lib/libbinder.so
#05 pc 0001147f /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
#06 pc 0004f40b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#07 pc 00010fe5 /system/lib/libutils.so
#08 pc 0000e538 /system/lib/libc.so (__thread_entry+72)
#09 pc 0000dc24 /system/lib/libc.so (pthread_create+160)
at dalvik.system.NativeStart.run(Native Method)
"java.lang.ProcessManager" daemon prio=5 tid=12 WAIT
| group="main" sCount=1 dsCount=0 obj=0x42a3ef78 self=0x7198f570
| sysTid=18916 nice=0 sched=0/0 cgrp=apps handle=1904061312
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x42a3ede0> (a java.util.HashMap)
at java.lang.Object.wait(Object.java:364)
at java.lang.ProcessManager.waitFo...
Copy link to clipboard
Copied
@AIRDeveloper - This is older thread but I'd like to make sure we follow up here. Could you please open a new bug report on this over at https://bugbase.adobe.com? When adding the bug, please include some sample code or a sample application so we can quickly test this out internally. If you'd like to keep this private, feel free to email the attachment to me directly (ccampbel@adobe.com).
Once added, please post back with the URL so I can ask the team to triage the issue.
Thanks,
Chris
Copy link to clipboard
Copied
Hello,
We are facing the same issue with one of our applications. Is this issue fixed ?
Regards,
Kanthi.
Copy link to clipboard
Copied
@skanthi
Make sure your AIR SDK is updated to the latest version. It significantly reduced the problem for us when we updated.
Copy link to clipboard
Copied
Hi AIRdeveloper,
We are using Adobe air 4.0 overlayed on Flex 4.6. But the issue is repeating. Appreciate on any help regarding this.
Regards,
Kanthi.
Copy link to clipboard
Copied
I'm getting the same behavior, more than 50 crashes per day. I'm using Adobe AIR 15...
Massive problem as app just freezes during game...
Copy link to clipboard
Copied
Same problems here, loads of crashes with libhoudini.so