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

Android emulator timeout during launch for 4.4 emulators

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Android emulator plugin 2.10

      I have two set of nearly identical jobs. One of them runs 4.1.2 emulators and the other one runs 4.4 emulators. I found that the jobs run 4.4 emulators has significantly higher chance of timeout during emulator launch. In fact, the 4.1.2 emulators almost never fail to launch.

      I've also upgraded to 2.11.1 and things got significantly worse. The launch time was a lot longer, and launch timeout happened a lot more frequently. There is a similar thread in StackOverFlow: http://stackoverflow.com/questions/23699433/android-emulator-jenkins-plugin-not-working

          [JENKINS-24817] Android emulator timeout during launch for 4.4 emulators

          Without any console log files, it's hard to tell what the problem is.

          But I assume this is a duplicate of JENKINS-11952?

          Christopher Orr added a comment - Without any console log files, it's hard to tell what the problem is. But I assume this is a duplicate of JENKINS-11952 ?

          JY Hsu added a comment -

          That doesn't seems to be the same problem, because I am not using snapshot.

          The console log:
          $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/tools/android list target
          [android] Using Android SDK: /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk
          [android] Waiting 30 seconds before starting emulator...
          $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb start-server
          [android] Starting Android emulator
          $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/tools/emulator -no-boot-anim -ports 46998,43229 -avd Acceptance_LatestOS -no-snapshot-load -no-snapshot-save -qemu -m 512 -enable-kvm
          emulator: emulator window was out of view and was recentered

          • daemon not running. starting it now on port 45736 *
          • daemon started successfully *
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            [android] Waiting for emulator to finish booting...
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete
            error: device offline
            error: device offline
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229
            [android] Timed-out after waiting 180 seconds for emulator
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229
            [android] Stopping Android emulator
            $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb kill-server
            Recording test results
            No test report files were found. Configuration error?
            Recording fingerprints

          Deleting project workspace...
          done

          JY Hsu added a comment - That doesn't seems to be the same problem, because I am not using snapshot. The console log: $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/tools/android list target [android] Using Android SDK: /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk [android] Waiting 30 seconds before starting emulator... $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb start-server [android] Starting Android emulator $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/tools/emulator -no-boot-anim -ports 46998,43229 -avd Acceptance_LatestOS -no-snapshot-load -no-snapshot-save -qemu -m 512 -enable-kvm emulator: emulator window was out of view and was recentered daemon not running. starting it now on port 45736 * daemon started successfully * $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 [android] Waiting for emulator to finish booting... $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb -s localhost:43229 shell getprop dev.bootcomplete error: device offline error: device offline $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb connect localhost:43229 [android] Timed-out after waiting 180 seconds for emulator $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb disconnect localhost:43229 [android] Stopping Android emulator $ /root/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb kill-server Recording test results No test report files were found. Configuration error? Recording fingerprints Deleting project workspace... done

          Duplicates JENKINS-11952.

          Christopher Orr added a comment - Duplicates JENKINS-11952 .

          Three minutes is just not enough to start the emulator.

          Martin Krischik added a comment - Three minutes is just not enough to start the emulator.

          This is a closed issue, please create a new issue with some details and log output if you have an issue.
          The emulator timeout has was changed from three minutes to six minutes in the 2.11 release, in May 2014.

          If anybody has a setup which requires three or more minutes for an emulator to start, they should try the x86 system images, which start within a few seconds, or they could investigate emulator snapshots, or upgrade their build infrastructure, as a CI system is of diminishing value when it fails to provide speedy feedback to code changes.

          Christopher Orr added a comment - This is a closed issue, please create a new issue with some details and log output if you have an issue. The emulator timeout has was changed from three minutes to six minutes in the 2.11 release, in May 2014. If anybody has a setup which requires three or more minutes for an emulator to start, they should try the x86 system images, which start within a few seconds, or they could investigate emulator snapshots, or upgrade their build infrastructure, as a CI system is of diminishing value when it fails to provide speedy feedback to code changes.

            orrc Christopher Orr
            k76154 JY Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: