Monket testing results in fatal ANR

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


Sponsored Links
 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)

---


--~--~---------~--~----~------------~-------~--~----~



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.

Cheers




--~--~---------~--~----~------------~-------~--~----~


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
hack...@android.com

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


 Hi,


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

Could you point me the those fixes in the cupcake?

Thanks,
-Shirish





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Track web browsing and web browsing ralated activities on android

Hello Everyone ,

        I am a newbie and just started coding in android. I have got a
task on which I want a little help from you all. This is the
problem :

"Track web browsing and browsing related activities including user's
total time spent online, complete URI's and timestamps, downloads
initiated from the browser. Differentiate between main , embedded and
redirected URI. "

I dont know where to search and how to go about it. Any kind of help
would be really helpful. Please post your expert comments and help as
early as possible.

Thank You

--~--~---------~--~----~------------~-------~--~----~

2. SKD 1.6 no available package for API 1

Hi,

I have installed the new SDK 1.6r1 on Windows and I realise that 1.6
does not included the older APIs so ran the android.bat tool to
download them.

The "available packages" only offer me SDK Platform Android 1.1 API 2;
I was also hoping to download 1.0 API 1 as I am developing an
application that only needs very basic functionality and I would like
to be compatible with as many devices as possible.

-Richard

--~--~---------~--~----~------------~-------~--~----~

3. One issue left before i start to really use my HERO

4. Why do my team makes integration part for developing Android?

5. "singleTask" really always at the root of activity stack?

6. How can I extends InputMethodService and using its feature without setting system keyboard??

7. Issue of selection 3D vertex (gluUnProject)