Monket testing results in fatal ANR

by GiladH » Mon, 13 Apr 2009 12:08:24 GMT

Sponsored Links

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

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

TIA, GiladH

"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(
  at android.os.Looper.loop(
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(
  at dalvik.system.NativeStart.main(Native Method)



Monket testing results in fatal ANR

by Stoyan Damov » Tue, 14 Apr 2009 03:58:37 GMT

 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.



Sponsored Links

Monket testing results in fatal ANR

by Dianne Hackborn » Tue, 14 Apr 2009 06:34:44 GMT

 It looks like there may be nothing wrong with your app.  Fwiw, Cupcake
includes a few fixes to event dispatching that were causing ANRs when the
monkey command was spamming the system with events.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Monket testing results in fatal ANR

by Shirish » Tue, 09 Jun 2009 00:01:04 GMT


I am also getting the same issue with browser application in cupcake.

Could you point me the those fixes in the cupcake?



Other Threads

1. PhoneStateListener in widget


PhoneStateListener works well in an activity but how can I use it in
an appwidget?
I would like to display signal strength information, but there is no
way to get this value (if I'm right),
only with using PhoneStateListener. But I don't know how to use it in
a widget.

Thank you, T.


2. need the meta data of the music library

I just use the mediastore to get the meta information of the music.
Now I can get the total number of songs, albums, genres.
How can I get the genre with the most songs. There are only two fields
(Genre_id and Genre_name) in the table of generes.

Besides, is there a possible way to get the top played music


3. regarding facebook and twitter api integration

4. Relace Style.xml or Strings.xml

5. Leveraging google account credentials to send emails in the background

6. PreferenceActivity interface question

7. Mirink Jogja Chapter EndYear 2010