ANR in com.android.systemui

  ... discussions about development with the GLES1 branch of AndEngine.

ANR in com.android.systemui

Postby PurpleNurple » Mon Aug 22, 2011 3:27 am

Hey folks,

Quick info about the game first.

Using a limited FPS engine with fixed step physics. Levels are loaded from XML via LevelLoader.

Resources preloaded once at the start and then new scenes created as a level is requested.
Whenever a level is selected mEngine.setScene(createLevelScene()) is called which loads the level from XML.

I've been getting this ANR every now and then. Only happens when setting up the scene for a level and once on the menu scene too but never during game play.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. 08-22 02:10:22.031: ERROR/ActivityManager(129): ANR in com.android.systemui
  2. 08-22 02:10:22.031: ERROR/ActivityManager(129): Reason: Broadcast of Intent { act=android.intent.action.TIME_TICK flg=0x40000004 (has extras) }
  3. 08-22 02:10:22.031: ERROR/ActivityManager(129): Load: 1.47 / 1.25 / 0.84
  4. 08-22 02:10:22.031: ERROR/ActivityManager(129): CPU usage from 9490ms to 0ms ago:
  5. 08-22 02:10:22.031: ERROR/ActivityManager(129):   10% 129/system_server: 0.2% user + 10% kernel / faults: 485 minor 315 major
  6. 08-22 02:10:22.031: ERROR/ActivityManager(129):   2.6% 12/kblockd/0: 0% user + 2.6% kernel
  7. 08-22 02:10:22.031: ERROR/ActivityManager(129):   1.8% 5/events/0: 0% user + 1.8% kernel
  8. 08-22 02:10:22.031: ERROR/ActivityManager(129):   1.3% 27799/org.rubygames.puzzlegolf.lite: 0.9% user + 0.4% kernel
  9. 08-22 02:10:22.031: ERROR/ActivityManager(129):   1% 242/com.android.phone: 0% user + 1% kernel / faults: 242 minor 27 major
  10. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.7% 80/rild: 0.1% user + 0.6% kernel / faults: 64 minor 22 major
  11. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.6% 89/orientationd: 0% user + 0.6% kernel / faults: 16 minor 22 major
  12. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.4% 15/kondemand/0: 0% user + 0.4% kernel
  13. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.3% 219/wpa_supplicant: 0% user + 0.3% kernel / faults: 28 minor 9 major
  14. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.3% 299/com.google.process.gapps: 0% user + 0.3% kernel / faults: 167 minor 12 major
  15. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.2% 39/vsync_workqueue: 0% user + 0.2% kernel
  16. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0% 51/file-storage: 0% user + 0% kernel
  17. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.1% 53/gp2a_wq: 0% user + 0.1% kernel
  18. 08-22 02:10:22.031: ERROR/ActivityManager(129):   0.1% 82/drexe: 0% user + 0.1% kernel / faults: 15 minor 3 major
  19. 08-22 02:10:22.031: ERROR/ActivityManager(129): 100% TOTAL: 0.6% user + 15% kernel + 84% iowait + 0.1% softirq
  20. 08-22 02:10:22.031: ERROR/ActivityManager(129): CPU usage from 922ms to 1457ms later:
  21. 08-22 02:10:22.031: ERROR/ActivityManager(129):   16% 129/system_server: 0% user + 16% kernel / faults: 25 minor 16 major
  22. 08-22 02:10:22.031: ERROR/ActivityManager(129):     8.9% 142/ActivityManager: 0% user + 8.9% kernel
  23. 08-22 02:10:22.031: ERROR/ActivityManager(129):     5.3% 130/HeapWorker: 0% user + 5.3% kernel
  24. 08-22 02:10:22.031: ERROR/ActivityManager(129):   4% 27799/org.rubygames.puzzlegolf.lite: 2.7% user + 1.3% kernel / faults: 31 minor
  25. 08-22 02:10:22.031: ERROR/ActivityManager(129):     4% 27814/GLThread: 2.7% user + 1.3% kernel
  26. 08-22 02:10:22.031: ERROR/ActivityManager(129):   2.2% 5/events/0: 0% user + 2.2% kernel
  27. 08-22 02:10:22.031: ERROR/ActivityManager(129):   1.1% 12/kblockd/0: 0% user + 1.1% kernel
  28. 08-22 02:10:22.031: ERROR/ActivityManager(129):   1.1% 15/kondemand/0: 0% user + 1.1% kernel
  29. 08-22 02:10:22.031: ERROR/ActivityManager(129): 100% TOTAL: 0% user + 14% kernel + 85% iowait
  30.  
  31.  
Parsed in 0.050 seconds, using GeSHi 1.0.8.4


Some times it recovers quickly but usually it just stays frozen. Usually there is no ANR dialog that pops up, so no option to force close. Sometimes pressing the home key returns me to the home screen and i can close the activity from task manager but usually it hangs indefinitely.

While hanging I'm seeing many duplicate ANRs in the log :

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. 08-22 02:15:21.847: WARN/ActivityManager(129): Timeout of broadcast BroadcastRecord{40891d28 android.intent.action.TIME_TICK} - receiver=android.os.BinderProxy@40a64d48, started 20001ms ago
  2. 08-22 02:15:21.847: WARN/ActivityManager(129): Receiver during timeout: BroadcastFilter{40a149f0 ReceiverList{40a1cb80 27388 com.android.systemui/1000 remote:40a64d48}}
  3. 08-22 02:15:21.898: INFO/ActivityManager(129): Skipping duplicate ANR: ProcessRecord{405301d8 23928:com.android.systemui/1000} Broadcast of Intent { act=android.intent.action.TIME_TICK flg=0x40000004 (has extras) }
  4.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


Sorry I can't really give much more info about it. I have no idea what the cause could be.
Help is greatly appreciated as this is a serious issue in my project.

Thanks :)
PurpleNurple
 
Posts: 66
Joined: Wed Jan 26, 2011 1:02 am
Location: Dublin, Ireland

Return to GLES1

Who is online

Users browsing this forum: No registered users and 13 guests