Profile your application.

Other than that, sometimes I get the ANR w/o doing anything on the UI
thread (e.g. 99% of all processing occurs on a background thread --
the game thread).
I think it's somehow related to playing audio via the SoundPool (no, I
don't hit the highwatermark on the pool) but I can't prove it.

Cheers

On Sat, Apr 11, 2009 at 12:27 PM, GiladH <pikaboo.de...@gmail.com> wrote:
>
> Hey,
>
> The ANR below, taken from traces.txt is something I receive often when
> I quickly perform multitude of small GUI ops on my app ("monkey
> testing").
>
> And, usually, once I get into that position my app _is stucked_ and
> the only way
> to go on is to restart it.
>
> Other than the obvious 'no lengthy ops on main thread' , is there a
> clue for anyone
> what's going wrong? how can I further investigate the location of the
> problem?
>
> TIA, GiladH
>
>
> DALVIK THREADS:
> "MyAppMainThread" prio=5 tid=3 WAIT
>  | group="main" sCount=1 dsCount=0 s=0 obj=0x400103e8
>  | sysTid=19869 nice=0 sched=0/0 handle=-1096979300
>  at java.lang.Object.wait(Native Method)
>  - waiting on <0x1c4688> (a android.os.MessageQueue)
>  at java.lang.Object.wait(Object.java:170)
>  at android.os.MessageQueue.next(MessageQueue.java:148)
>  at android.os.Looper.loop(Looper.java:110)
>  at android.app.ActivityThread.main(ActivityThread.java:3739)
>  at java.lang.reflect.Method.invokeNative(Native Method)
>  at java.lang.reflect.Method.invoke(Method.java:515)
>  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> (ZygoteInit.java:739)
>  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
>  at dalvik.system.NativeStart.main(Native Method)
>
> ---
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to