[JIRA] [android-emulator-plugin] (JENKINS-11952) Emulator occasionally hangs indefinitely on startup, unable to connect adb

2015-02-13 Thread petero...@gmail.com (JIRA)














































P Oh
 commented on  JENKINS-11952


Emulator occasionally hangs indefinitely on startup, unable to connect adb















forgot to add, plugin version: 2.13-SNAPSHOT (private-5bdae99c-jenkins)



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [android-emulator-plugin] (JENKINS-11952) Emulator occasionally hangs indefinitely on startup, unable to connect adb

2015-02-13 Thread petero...@gmail.com (JIRA)














































P Oh
 commented on  JENKINS-11952


Emulator occasionally hangs indefinitely on startup, unable to connect adb















Master server:
ubuntu 14.04
jenkins version 1.596


slave:
ubuntu 14.04
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
android sdk tools 24.0.2
android platform tools 21
android sdk build-tools 21.1.2

It seems to connect at some point but does not validate the connection correctly.  Heres my semi-sanitized build log.  Let me know where I can locate any other logs which may be of help.

Started by upstream project "ad-pipeline" build number 36
originally caused by:
 Started by an SCM change
EnvInject - Loading node environment variables.
Building remotely on android-slave (android) in workspace *
Cloning the remote Git repository
Cloning repository *
  /usr/bin/git init * # timeout=10
Fetching upstream changes from *
  /usr/bin/git --version # timeout=10
using GIT_SSH to set credentials *
  /usr/bin/git -c core.askpass=true fetch --tags --progress * +refs/heads/:refs/remotes/origin/
  /usr/bin/git config remote.origin.url * # timeout=10
  /usr/bin/git config remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
  /usr/bin/git config remote.origin.url * # timeout=10
Fetching upstream changes from *
using GIT_SSH to set credentials *
  /usr/bin/git -c core.askpass=true fetch --tags --progress * +refs/heads/:refs/remotes/origin/
  /usr/bin/git rev-parse refs/remotes/origin/develop^{commit} # timeout=10
  /usr/bin/git rev-parse refs/remotes/origin/origin/develop^{commit} # timeout=10
Checking out Revision * (refs/remotes/origin/develop)
  /usr/bin/git config core.sparsecheckout # timeout=10
  /usr/bin/git checkout -f *
  /usr/bin/git rev-list * # timeout=10
Allocating TCP port AD_PIPELINE_INSTRUMENTATION_PORT
  - Assigned 48374
TCP port allocation complete
$ /opt/android-sdk-linux/tools/android list target
android Using Android SDK: /opt/android-sdk-linux
android Creating Android AVD: */ad-pipeline-instrumentation/19/.android/avd/hudson_en-US_320_1080x1920_Google_Inc._Google_APIs_18_armeabi-v7a_jenkins.avd
android /opt/android-sdk-linux/tools/android create avd -f -a -c 200M -s 1080x1920 -n hudson_en-US_320_1080x1920_Google_Inc._Google_APIs_18_armeabi-v7a_jenkins -t "Google Inc.:Google APIs:18" --abi armeabi-v7a
android Waiting 10 seconds before starting emulator...
$ /opt/android-sdk-linux/platform-tools/adb start-server

	daemon not running. starting it now on port 7700 *
	daemon started successfully *
$ /opt/android-sdk-linux/platform-tools/adb start-server
android Starting Android emulator
$ /opt/android-sdk-linux/tools/emulator64-arm -no-boot-anim -ports 7698,7699 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_320_1080x1920_Google_Inc._Google_APIs_18_armeabi-v7a_jenkins -no-snapshot-load -no-snapshot-save -no-window -no-audio -gpu off
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
connected to localhost:7699
android Waiting for emulator to finish booting...
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:7699 shell getprop init.svc.bootanim
error: device offline
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:7699 shell getprop init.svc.bootanim
error: device offline
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:7699 shell getprop init.svc.bootanim
error: device offline
$ /opt/android-sdk-linux/platform-tools/adb disconnect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:7699 shell getprop init.svc.bootanim
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:7699 shell getprop init.svc.bootanim
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:7699 shell getprop init.svc.bootanim
$ /opt/android-sdk-linux/platform-tools/adb disconnect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
$ /opt/android-sdk-linux/platform-tools/adb -s localhost:7699 shell getprop init.svc.bootanim
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:7699
$