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

Emulator timeout with Android OS version android-23

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          daudrain_netsense Daudrain Audrain added a comment -

          Hi,

          I am observing the same behavior on my side with an API23 x86 Google AVD Image. Note that the master and slave are differents. Running the emulator command line without the ports and reportconsole options works perfect.

          TCP port allocation complete
          $ /opt/android-sdk/tools/android list target
          [android] Using Android SDK: /opt/android-sdk
          $ /opt/android-sdk/platform-tools/adb start-server

          • daemon not running. starting it now on port 5817 *
          • daemon started successfully *
            $ /opt/android-sdk/platform-tools/adb start-server
            [android] Starting Android emulator
            $ /opt/android-sdk/tools/emulator -engine classic -ports 5692,5693 -report-console tcp:5819,max=60 -avd Nexus5_API23_Google -no-snapshot-load -no-snapshot-save -no-window
            sh: 1: glxinfo: not found
            sh: 1: glxinfo: not found
            emulator: WARNING: VM heap size set below hardware specified minimum of 256MB
            emulator: WARNING: Setting VM heap size to 384MB
            emulator: ERROR: GPU emulation is disabled.
            Only screen size of 768 X 1280 or smaller is supported when GPU emulation is disabled.
            [android] Emulator did not appear to start; giving up
          Show
          daudrain_netsense Daudrain Audrain added a comment - Hi, I am observing the same behavior on my side with an API23 x86 Google AVD Image. Note that the master and slave are differents. Running the emulator command line without the ports and reportconsole options works perfect. TCP port allocation complete $ /opt/android-sdk/tools/android list target [android] Using Android SDK: /opt/android-sdk $ /opt/android-sdk/platform-tools/adb start-server daemon not running. starting it now on port 5817 * daemon started successfully * $ /opt/android-sdk/platform-tools/adb start-server [android] Starting Android emulator $ /opt/android-sdk/tools/emulator -engine classic -ports 5692,5693 -report-console tcp:5819,max=60 -avd Nexus5_API23_Google -no-snapshot-load -no-snapshot-save -no-window sh: 1: glxinfo: not found sh: 1: glxinfo: not found emulator: WARNING: VM heap size set below hardware specified minimum of 256MB emulator: WARNING: Setting VM heap size to 384MB emulator: ERROR: GPU emulation is disabled. Only screen size of 768 X 1280 or smaller is supported when GPU emulation is disabled. [android] Emulator did not appear to start; giving up
          Hide
          rubyboy Ruby Boyarski added a comment -

          We're having the same issue with any version above 19 (Which works fine). Our logs are almost identical to the ones shown in this issue.

          Any tips on how to resolve this issue or what might be wrong? Jenkins is running on Ubuntu, if that makes a difference.

          Thanks.

          Show
          rubyboy Ruby Boyarski added a comment - We're having the same issue with any version above 19 (Which works fine). Our logs are almost identical to the ones shown in this issue. Any tips on how to resolve this issue or what might be wrong? Jenkins is running on Ubuntu, if that makes a difference. Thanks.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              tiagonunes Tiago Nunes
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: