Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36174

Emulator timeout with Android OS version android-23

XMLWordPrintable

    • 3.1

      Trying to use an emulator with target android version 23 fails with a timeout:

      $ /var/lib/android-sdk/tools/android list target
      [android] Using Android SDK: /var/lib/android-sdk
      [android] Setting hardware properties:
      	hw.ramSize: 512
      $ /var/lib/android-sdk/platform-tools/adb start-server
      * daemon not running. starting it now on port 5866 *
      * daemon started successfully *
      $ /var/lib/android-sdk/platform-tools/adb start-server
      $ /var/lib/android-sdk/tools/emulator -snapshot-list -no-window -avd hudson_fr-CH_120_QVGA_android-23_AndroidBox
      [android] Starting Android emulator and creating initial snapshot
      [android] Erasing existing emulator data...
      $ /var/lib/android-sdk/tools/emulator -ports 5760,5761 -report-console tcp:5852,max=60 -prop persist.sys.language=fr -prop persist.sys.country=CH -avd hudson_fr-CH_120_QVGA_android-23_AndroidBox -no-snapshot-load -no-snapshot-save -wipe-data -no-window -noaudio
      Failed to Initialize backend EGL display
      [android] Emulator reported that the console is available on port 5,760
      [android] Waiting for emulator to finish booting...
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5760 wait-for-device shell getprop init.svc.bootanim
      ERROR: Timeout after 90000 milliseconds
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5760 wait-for-device shell getprop init.svc.bootanim
      ERROR: Timeout after 90000 milliseconds
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5760 wait-for-device shell getprop init.svc.bootanim
      ERROR: Timeout after 90000 milliseconds
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5760 wait-for-device shell getprop init.svc.bootanim
      ERROR: Timeout after 90000 milliseconds
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5760 wait-for-device shell getprop init.svc.bootanim
      ERROR: Timeout after 90000 milliseconds
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5760 wait-for-device shell getprop init.svc.bootanim
      ERROR: Timeout after 90000 milliseconds
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5760 wait-for-device shell getprop init.svc.bootanim
      ERROR: Timeout after 90000 milliseconds
      [android] Timed-out after waiting 720 seconds for emulator
      [android] Stopping Android emulator
      

      It all works as expected with target version 19 at least:

      [android] Using Android SDK: /var/lib/android-sdk
      [android] Creating Android AVD: /var/lib/jenkins/.android/avd/hudson_fr-CH_120_QVGA_android-19_GPM.avd
      [android] /var/lib/android-sdk/tools/android create avd -f -a -s QVGA -n hudson_fr-CH_120_QVGA_android-19_GPM -t android-19
      [android] Setting hardware properties:
      	hw.ramSize: 512
      $ /var/lib/android-sdk/platform-tools/adb start-server
      * daemon not running. starting it now on port 5821 *
      * daemon started successfully *
      $ /var/lib/android-sdk/platform-tools/adb start-server
      [android] Starting Android emulator
      $ /var/lib/android-sdk/tools/emulator -ports 5744,5745 -report-console tcp:5818,max=60 -prop persist.sys.language=fr -prop persist.sys.country=CH -avd hudson_fr-CH_120_QVGA_android-19_GPM -no-snapshot-load -no-snapshot-save -no-window -noaudio
      Failed to Initialize backend EGL display
      [android] Emulator reported that the console is available on port 5,744
      [android] Waiting for emulator to finish booting...
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'running'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 wait-for-device shell getprop init.svc.bootanim
      [android] Emulator reported that the startup process is 'stopped'
      $ /var/lib/android-sdk/platform-tools/adb -s emulator-5744 logcat -v time
      [android] Emulator is ready for use (took 160 seconds)
      

      Please let me know if there is any other information I can provide, I'll be happy to help.

            nfalco Nikolas Falco
            tiagonunes Tiago Nunes
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: