monkeyrunner fails to run on fastmodels

Bug #979578 reported by vishal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
High
vishal

Bug Description

Monkeyrunner fails on https://android-build.linaro.org/builds/~linaro-android/vexpress-rtsm-ics-gcc46-armlt-stable-open/#build=57 .

Here is the log :

vishal@ubuntu:/mnt/work/FASTMODEL/test/system$ ~/Desktop/android-sdk-linux_x86/tools/monkeyrunner music/music.py
120412 11:18:10.954:S [main] [com.android.chimpchat.adb.AdbChimpDevice] Timeout while trying to create chimp mananger
120412 11:18:10.957:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Script terminated due to an exception
120412 11:18:10.957:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]Traceback (most recent call last):
  File "/mnt/work/FASTMODEL/test/system/music/music.py", line 3, in <module>
    device = MonkeyRunner.waitForConnection()
 at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
 at com.android.chimpchat.adb.AdbChimpDevice.<init>(AdbChimpDevice.java:74)
 at com.android.chimpchat.adb.AdbBackend.waitForConnection(AdbBackend.java:107)
 at com.android.chimpchat.ChimpChat.waitForConnection(ChimpChat.java:92)
 at com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:75)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)

vishal (vishalbhoj)
Changed in linaro-android:
assignee: nobody → vishal (vishalbhoj)
importance: Undecided → High
milestone: none → 12.04
Revision history for this message
vishal (vishalbhoj) wrote :

The error seems to be happening on the target while port forwarding by monkey:

Here is the test which fails on the target:

#monkey --port 12345
Error binding to network socket.

Zach Pfeffer (pfefferz)
Changed in linaro-android:
milestone: 12.04 → 12.05
Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Will be verified once android-build's are working again.

Revision history for this message
vishal (vishalbhoj) wrote :

Here is a patch which increases the default timeout value while using ddms helper libraries. This patch is needed since the Fastmodels are really slow and monkeyrunner timesout in the ddms library while waiting for every execution of command on the target (fastmodel in this case).

Revision history for this message
vishal (vishalbhoj) wrote :

monkeyrunner works with the tests from http://android.git.linaro.org/gitweb?p=test/linaro/android/system.git;a=summary with the attached ddms library.

Copy the attached ddms library (which is compiled with the above attached patch) and one should be able to run the tests on fastmodels.

Changed in linaro-android:
status: New → Fix Committed
Fathi Boudra (fboudra)
Changed in linaro-android:
status: Fix Committed → Fix Released
Revision history for this message
Andy Doan (doanac) wrote :

i've deployed this jar file to our validation server.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.