I didn't find any topic that seemed to address this specific problem, so here 
goes.

I have a monkeyrunner script that does a series of touch() and drag() calls 
that run in a loop.  The script tests the same sequence many times over for 
stability purposes.

The problem that I see is that the script will stall unexpectedly at different 
places in the sequence.  Sometimes it runs a few times, sometimes dozens, but 
it eventually stops.  It never gives any kind of error output, just stops as if 
the PC-side script is waiting forever for the touch to complete.  It's never 
the same touch coordinates, so it seems to me there's some kind of problem on 
the phone side where the MonkeyStub just never returns to the script.  My phone 
is NexusS4G running Android 4.0.4.

I posted a representative logcat output below with an annotation of where the 
script stalled.  I don't see anything else interesting happening on the phone 
at the time, so the problem seems internal to MonkeyStub to me.  Does anyone 
have any ideas what I can do?  Any more debug info I can/should collect?  Any 
general advice about using monkeyrunner "gently"?  Fr what it's worth, the same 
script on the same phone had no problems when it ran GB before upgrading to ICS.



08-24 03:16:33.985: D/AudioHardware(97): AudioHardware pcm playback is exiting 
standby.
08-24 03:16:33.985: D/AudioHardware(97): openPcmOut_l() mPcmOpenCnt: 0
08-24 03:16:34.956: D/MonkeyStub(22729): translateCommand: tap 520 300
08-24 03:16:35.964: D/MonkeyStub(22729): translateCommand: tap 550 450
08-24 03:16:36.971: D/MonkeyStub(22729): translateCommand: tap 350 350
08-24 03:16:37.119: D/AudioHardware(97): AudioHardware pcm playback is going to 
standby.
08-24 03:16:37.119: D/AudioHardware(97): closePcmOut_l() mPcmOpenCnt: 1
08-24 03:16:37.977: D/MonkeyStub(22729): translateCommand: tap 550 450
08-24 03:16:38.283: D/dalvikvm(236): GC_CONCURRENT freed 1074K, 25% free 
12643K/16839K, paused 3ms+8ms
08-24 03:16:38.983: D/MonkeyStub(22729): translateCommand: tap 350 350

*** last MonkeyStub entry ***

08-24 03:18:45.435: D/dalvikvm(236): GC_CONCURRENT freed 1071K, 25% free 
12647K/16839K, paused 2ms+6ms
08-24 03:19:12.758: D/dalvikvm(166): GC_CONCURRENT freed 1974K, 26% free 
18904K/25287K, paused 4ms+18ms
08-24 03:20:13.544: D/dalvikvm(633): GC_CONCURRENT freed 351K, 12% free 
9901K/11143K, paused 13ms+9ms
08-24 03:20:54.620: D/dalvikvm(236): GC_CONCURRENT freed 1087K, 25% free 
12643K/16839K, paused 2ms+5ms
08-24 03:21:28.627: D/dalvikvm(1062): GC_CONCURRENT freed 417K, 6% free 
9773K/10375K, paused 5ms+12ms
08-24 03:22:18.774: D/dalvikvm(166): GC_CONCURRENT freed 1945K, 26% free 
18884K/25287K, paused 3ms+20ms

-- 
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