What might cause app to not respond?

  ... in the unlikely case you discovered a bug, post it here.

What might cause app to not respond?

Postby Obg1 » Thu Oct 07, 2010 10:02 am

What might cause app to not respond?

Attached log report from the Market:

DALVIK THREADS:
"main" prio=5 tid=1 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x40025ad8 self=0xcd58
| sysTid=6058 nice=0 sched=0/0 cgrp=default handle=-1345017808
| schedstat=( 1579376205 2193786608 6434 )
at java.lang.Object.wait(Native Method)
- waiting on <0x4607ab18> (a java.lang.VMThread)
at java.lang.Object.wait(Object.java:288)
at java.lang.Thread.join(Thread.java:989)
at org.anddev.andengine.opengl.view.GLSurfaceView$GLThread.requestExitAndWait(GLSurfaceView.java:715)
at org.anddev.andengine.opengl.view.GLSurfaceView.onPause(GLSurfaceView.java:463)
at org.anddev.andengine.ui.activity.BaseGameActivity.doPause(BaseGameActivity.java:173)
at org.anddev.andengine.ui.activity.BaseGameActivity.onPause(BaseGameActivity.java:94)
at android.app.Activity.performPause(Activity.java:3883)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1332)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3554)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3524)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3507)
at android.app.ActivityThread.access$2500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2147)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)

"GLThread" prio=5 tid=18 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x4607a958 self=0x2c2e80
| sysTid=6116 nice=0 sched=0/0 cgrp=default handle=3684080
| schedstat=( 244141 11352539 3 )
at java.lang.Object.wait(Native Method)
- waiting on <0x4607ab18> (a java.lang.VMThread)
at java.lang.Thread.parkFor(Thread.java:1547)
at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48)
at sun.misc.Unsafe.park(Unsafe.java:317)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:131)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:790)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:950)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1256)
at java.util.concurrent.Semaphore.acquire(Semaphore.java:285)
at org.anddev.andengine.opengl.view.GLSurfaceView$GLThread.run(GLSurfaceView.java:542)

"SoundPool" prio=5 tid=16 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x46035f48 self=0x2da7f0
| sysTid=6112 nice=0 sched=0/0 cgrp=default handle=2893952
| schedstat=( 152588 4608154 1 )
at dalvik.system.NativeStart.run(Native Method)

"SoundPoolThread" prio=5 tid=15 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x46037c80 self=0x291e90
| sysTid=6113 nice=0 sched=0/0 cgrp=default handle=3106296
| schedstat=( 183105 3631592 1 )
at dalvik.system.NativeStart.run(Native Method)

"UpdateThread" prio=5 tid=12 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x4603aae8 self=0x2dabe0
| sysTid=6114 nice=0 sched=0/0 cgrp=default handle=3115616
| schedstat=( 152588 2929688 3 )
at java.lang.Object.wait(Native Method)
- waiting on <0x460112e8> (a org.anddev.andengine.engine.Engine$State)
at java.lang.Object.wait(Object.java:288)
at org.anddev.andengine.engine.Engine$State.waitUntilCanUpdate(Engine.java:605)
at org.anddev.andengine.engine.Engine.yieldDraw(Engine.java:425)
at org.anddev.andengine.engine.Engine.onTickUpdate(Engine.java:416)
at org.anddev.andengine.engine.Engine$UpdateThread.run(Engine.java:568)

"Binder Thread #4" prio=5 tid=14 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x46080720 self=0x2a0540
| sysTid=6095 nice=0 sched=0/0 cgrp=default handle=3140760
| schedstat=( 12390142 36865225 119 )
at dalvik.system.NativeStart.run(Native Method)

"GLThread" prio=5 tid=11 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x46084a90 self=0x299218
| sysTid=6093 nice=0 sched=0/0 cgrp=default handle=2632800
| schedstat=( 82000730 128997805 31 )
at java.lang.Object.wait(Native Method)
- waiting on <0x46084a90> (a org.anddev.andengine.opengl.view.GLSurfaceView$GLThread)
at java.lang.Object.wait(Object.java:288)
at org.anddev.andengine.opengl.view.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:584)
at org.anddev.andengine.opengl.view.GLSurfaceView$GLThread.run(GLSurfaceView.java:546)

"Binder Thread #3" prio=5 tid=13 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x4608aa00 self=0x2adbf0
| sysTid=6080 nice=0 sched=0/0 cgrp=default handle=2693056
| schedstat=( 29663090 85418693 360 )
at dalvik.system.NativeStart.run(Native Method)

"SoundPool" prio=5 tid=10 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x46022be0 self=0x13fe60
| sysTid=6065 nice=0 sched=0/0 cgrp=default handle=2536704
| schedstat=( 152588 6256104 1 )
at dalvik.system.NativeStart.run(Native Method)

"SoundPoolThread" prio=5 tid=9 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x46022740 self=0x14b548
| sysTid=6066 nice=0 sched=0/0 cgrp=default handle=2451272
| schedstat=( 183106 5462646 2 )
at dalvik.system.NativeStart.run(Native Method)

"UpdateThread" prio=5 tid=8 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x4601bd18 self=0x145ce0
| sysTid=6067 nice=0 sched=0/0 cgrp=default handle=2451336
| schedstat=( 347076368 306365979 5381 )
at java.lang.Object.wait(Native Method)
- waiting on <0x4601b9f8> (a org.anddev.andengine.engine.Engine$State)
at java.lang.Object.wait(Object.java:288)
at org.anddev.andengine.engine.Engine$State.waitUntilCanUpdate(Engine.java:605)
at org.anddev.andengine.engine.Engine.yieldDraw(Engine.java:425)
at org.anddev.andengine.engine.Engine.onTickUpdate(Engine.java:414)
at org.anddev.andengine.engine.Engine$UpdateThread.run(Engine.java:568)

"Binder Thread #2" prio=5 tid=7 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x460103b8 self=0x1687d8
| sysTid=6064 nice=0 sched=0/0 cgrp=default handle=1338336
| schedstat=( 60577394 257659914 824 )
at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #1" prio=5 tid=6 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x4600f3a0 self=0x145850
| sysTid=6063 nice=0 sched=0/0 cgrp=default handle=1337992
| schedstat=( 67504891 296417221 829 )
at dalvik.system.NativeStart.run(Native Method)

"Compiler" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x46008358 self=0x1453c0
| sysTid=6062 nice=0 sched=0/0 cgrp=default handle=1371824
| schedstat=( 727569574 521118139 4862 )
at dalvik.system.NativeStart.run(Native Method)

"JDWP" daemon prio=5 tid=4 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x460082a8 self=0x14db80
| sysTid=6061 nice=0 sched=0/0 cgrp=default handle=1311952
| schedstat=( 10131837 26275634 99 )
at dalvik.system.NativeStart.run(Native Method)

"Signal Catcher" daemon prio=5 tid=3 RUNNABLE
| group="system" sCount=0 dsCount=0 s=N obj=0x460081e8 self=0x1402e0
| sysTid=6060 nice=0 sched=0/0 cgrp=default handle=1410560
| schedstat=( 1617433 12878417 8 )
at dalvik.system.NativeStart.run(Native Method)

"HeapWorker" daemon prio=5 tid=2 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x448ee5e8 self=0x144f30
| sysTid=6059 nice=0 sched=0/0 cgrp=default handle=1410288
| schedstat=( 92254638 88409427 71 )
at dalvik.system.NativeStart.run(Native Method)
Obg1
 
Posts: 67
Joined: Tue Oct 05, 2010 10:43 am

Re: What might cause app to not respond?

Postby Obg1 » Thu Oct 07, 2010 11:16 pm

I see this remark in the code:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.   public void requestExitAndWait() {
  2.                         // don't call this from GLThread thread or it is a guaranteed
  3.                         // deadlock!
  4.                         synchronized (this) {
  5.                                 this.mDone = true;
  6.                                 this.notify();
  7.                         }
  8.                         try {
  9.                                 this.join();
  10.                         } catch (final InterruptedException ex) {
  11.                                 Thread.currentThread().interrupt();
  12.                         }
  13.                 }
  14.  
Parsed in 0.012 seconds, using GeSHi 1.0.8.4


Is this a bug at:

at org.anddev.andengine.ui.activity.BaseGameActivity.doPause(BaseGameActivity.java:173)
at org.anddev.andengine.ui.activity.BaseGameActivity.onPause(BaseGameActivity.java:94)

???
Obg1
 
Posts: 67
Joined: Tue Oct 05, 2010 10:43 am

Re: What might cause app to not respond?

Postby Nicolas Gramlich » Fri Oct 08, 2010 6:31 pm

I remember having sth like that during development.
When does this happen :?: During startup or when ending the app :?: (I see onPause, but still might be during startup!).

Are you doing sth "special" that might cause this:?:

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: What might cause app to not respond?

Postby Obg1 » Sat Oct 09, 2010 12:28 am

Don't think so, but the AndEngine code I was using is from about a month ago,
but didn't do anything special...
I grabbed the latest code and hopefully it will disappear. It never happened on my device.
It is a stack trace from the android market.
Obg1
 
Posts: 67
Joined: Tue Oct 05, 2010 10:43 am

Re: What might cause app to not respond?

Postby Genzo76 » Mon Mar 07, 2011 6:06 pm

Today I had the same error, using the latest libraries.

It was not yet found a solution?
Genzo76
 
Posts: 8
Joined: Mon Mar 07, 2011 6:02 pm

Re: What might cause app to not respond?

Postby pep_dj » Wed Mar 09, 2011 11:40 am

My app is showing sometimes this error too: ANR keyDispatchingTimedOut

Debug:

DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
"main" prio=5 tid=1 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4001f1a0 self=0xce68
| sysTid=7830 nice=0 sched=0/0 cgrp=default handle=-1345006528
| schedstat=( 671478255 1298095731 1899 )
at java.lang.Object.wait(Native Method)
- waiting on <0x405903b0> (a java.lang.VMThread)
at java.lang.Object.wait(Object.java:358)
at java.lang.Thread.join(Thread.java:914)
at org.anddev.andengine.opengl.view.GLSurfaceView$GLThread.requestExitAndWait(GLSurfaceView.java:715)
at org.anddev.andengine.opengl.view.GLSurfaceView.onPause(GLSurfaceView.java:463)
at org.anddev.andengine.ui.activity.BaseGameActivity.doPause(BaseGameActivity.java:180)
at org.anddev.andengine.ui.activity.BaseGameActivity.onPause(BaseGameActivity.java:99)
at android.app.Activity.performPause(Activity.java:3853)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1190)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2446)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2396)
at android.app.ActivityThread.access$1700(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3812)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Image
pep_dj
 
Posts: 170
Joined: Fri Nov 12, 2010 9:05 pm

Re: What might cause app to not respond?

Postby mdat » Wed Apr 18, 2012 10:46 am

Was there any solution to this? I am also having the same problem. It happens to me under these circumstances:
1. Open App play around
2. Press off button to put on sleep mode and lock screen comes up
3. Unlock screen immediately and then press anything in the app
4. Force close/wait dialog pops up and the above described error is printed to the traces.txt file

Any suggestions on how to get around this?
For info, I am using HTC Nexus One for testing this out, my app has one activity and a bunch of scenes, the resources are loaded/reloaded everytime the app is resumed.
mdat
 
Posts: 5
Joined: Mon Mar 12, 2012 5:32 am

Re: What might cause app to not respond?

Postby lintfordpickle » Sat May 19, 2012 9:53 pm

Hi,

Was there a solution to this, I am having the same problem with my game.

I can see a comment from within the requestExitAndWait() function in the gameActivity that says something about not calling the code from the GLThread or its a guaranteed deadlock - maybe this is the reason?
lintfordpickle
 
Posts: 54
Joined: Thu Dec 15, 2011 5:43 pm
Location: Krefeld, Germany


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest