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

[android] Emulator did not appear to start; giving up on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Windows 7 Enterprise (X64 bit)
      Jenkins 2.7.2
      Android Emulator Plugin 2.15
      Note: I'm running Jenkins as a Real User on Windows
    • Similar Issues:

      Description

      Hi Guys. I'm new to CI, CD of Android App. But I have seen/watch a lot of guides online. I needed the emulator so I can run my Calabash test.

      I have tried the ff on android emulator plugin:

      Here is a complete log of Emulator Job.
      ======================================
      Started by user Louie Mandigal
      [EnvInject] - Loading node environment variables.
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\Run Android Emulator
      $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/android.bat list target
      [android] Using Android SDK: C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk
      [android] Waiting 30 seconds before starting emulator...
      $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server

      • daemon not running. starting it now on port 5863 *
      • daemon started successfully *
        $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server
        [android] Starting Android emulator
        $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/emulator.exe -engine classic -ports 5780,5781 -report-console tcp:5851,max=60 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_240_WVGA_android-16_armeabi-v7a_marker -no-snapshot-load -no-snapshot-save -no-window -noaudio
        [android] Emulator did not appear to start; giving up
        [android] Stopping Android emulator
        $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe kill-server
        Finished: NOT_BUILT

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          Under the Advanced options, where you added -noaudio, could you try instead adding -verbose there, and attach the full log, please?

          Show
          orrc Christopher Orr added a comment - Under the Advanced options, where you added -noaudio , could you try instead adding -verbose there, and attach the full log, please?
          Hide
          louiemandi Louie Mandi added a comment -

          This is the logs after I put -verbose. Looks the same.

          Started by user Louie Mandigal
          [EnvInject] - Loading node environment variables.
          Building in workspace C:\Program Files (x86)\Jenkins\workspace\Run Android Emulator
          $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/android.bat list target
          [android] Using Android SDK: C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk
          [android] Waiting 30 seconds before starting emulator...
          $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server

          • daemon not running. starting it now on port 5815 *
          • daemon started successfully *
            $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server
            [android] Starting Android emulator
            $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/emulator.exe -engine classic -ports 5794,5795 -report-console tcp:5851,max=60 -prop persist.sys.language=de -prop persist.sys.country=DE -avd hudson_de-DE_160_HVGA_android-18_armeabi-v7a -no-snapshot-load -no-snapshot-save -no-window -verbose
            [android] Emulator did not appear to start; giving up
            [android] Stopping Android emulator
            $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe kill-server
            ERROR: Step ‘Publish Cucumber test result report’ failed: No test reports that matches found. Configuration error?
            Finished: NOT_BUILT
          Show
          louiemandi Louie Mandi added a comment - This is the logs after I put -verbose. Looks the same. Started by user Louie Mandigal [EnvInject] - Loading node environment variables. Building in workspace C:\Program Files (x86)\Jenkins\workspace\Run Android Emulator $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/android.bat list target [android] Using Android SDK: C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk [android] Waiting 30 seconds before starting emulator... $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server daemon not running. starting it now on port 5815 * daemon started successfully * $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server [android] Starting Android emulator $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/emulator.exe -engine classic -ports 5794,5795 -report-console tcp:5851,max=60 -prop persist.sys.language=de -prop persist.sys.country=DE -avd hudson_de-DE_160_HVGA_android-18_armeabi-v7a -no-snapshot-load -no-snapshot-save -no-window -verbose [android] Emulator did not appear to start; giving up [android] Stopping Android emulator $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe kill-server ERROR: Step ‘Publish Cucumber test result report’ failed: No test reports that matches found. Configuration error? Finished: NOT_BUILT
          Hide
          orrc Christopher Orr added a comment -

          Ok, so probably the emulator didn't get created properly, and the plugin is hiding some sort of error message.

          Can you run the command shown in the log (without the `-report-console` stuff) on your machine, and see what it says?
          emulator.exe -engine classic -prop persist.sys.language=de -prop persist.sys.country=DE -avd hudson_de-DE_160_HVGA_android-18_armeabi-v7a -no-snapshot-load -no-snapshot-save -no-window -verbose

          Do you see any errors in the job where the emulator was first created (with android.bat create avd ...)?

          Show
          orrc Christopher Orr added a comment - Ok, so probably the emulator didn't get created properly, and the plugin is hiding some sort of error message. Can you run the command shown in the log (without the `-report-console` stuff) on your machine, and see what it says? emulator.exe -engine classic -prop persist.sys.language=de -prop persist.sys.country=DE -avd hudson_de-DE_160_HVGA_android-18_armeabi-v7a -no-snapshot-load -no-snapshot-save -no-window -verbose Do you see any errors in the job where the emulator was first created (with android.bat create avd ... )?
          Hide
          louiemandi Louie Mandi added a comment -

          When I try command you posted above on command line. I got this error "Qt5Core.dll is missing." Please see the attached snapshot.

          Show
          louiemandi Louie Mandi added a comment - When I try command you posted above on command line. I got this error "Qt5Core.dll is missing." Please see the attached snapshot.
          Hide
          louiemandi Louie Mandi added a comment - - edited

          When I open AVD MAnager on IDE. I notice that AVD that came from hudson needs repair. I tried to repair one device Android4.3.1. Then tried to start emulator via AVD Mgr. It now throws the attached error.

          On the other hand I tried also the Jenkins Emulator Job with -verbose.
          ===============================================================================================
          Started by user Louie Mandigal
          [EnvInject] - Loading node environment variables.
          Building in workspace C:\Program Files (x86)\Jenkins\workspace\Run Android Emulator
          $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/android.bat list target
          [android] Using Android SDK: C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk
          [android] Setting hardware properties:
          : null
          [android] Waiting 30 seconds before starting emulator...
          $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server

          • daemon not running. starting it now on port 5835 *
          • daemon started successfully *
            $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server
            [android] Starting Android emulator
            $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/emulator.exe -engine classic -ports 5766,5767 -report-console tcp:5812,max=60 -prop persist.sys.language=de -prop persist.sys.country=DE -avd hudson_de-DE_160_HVGA_android-18_armeabi-v7a -no-snapshot-load -no-snapshot-save -no-window -verbose
            UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line.
            UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line.
            UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line.
            UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line.

          This application has requested the Runtime to terminate it in an unusual way.
          Please contact the application's support team for more information.
          [android] Emulator did not appear to start; giving up
          [android] Stopping Android emulator
          $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe kill-server
          ERROR: Step ‘Publish Cucumber test result report’ failed: No test reports that matches found. Configuration error?
          Finished: NOT_BUILT

          Show
          louiemandi Louie Mandi added a comment - - edited When I open AVD MAnager on IDE. I notice that AVD that came from hudson needs repair. I tried to repair one device Android4.3.1. Then tried to start emulator via AVD Mgr. It now throws the attached error. On the other hand I tried also the Jenkins Emulator Job with -verbose. =============================================================================================== Started by user Louie Mandigal [EnvInject] - Loading node environment variables. Building in workspace C:\Program Files (x86)\Jenkins\workspace\Run Android Emulator $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/android.bat list target [android] Using Android SDK: C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk [android] Setting hardware properties: : null [android] Waiting 30 seconds before starting emulator... $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server daemon not running. starting it now on port 5835 * daemon started successfully * $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe start-server [android] Starting Android emulator $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/tools/emulator.exe -engine classic -ports 5766,5767 -report-console tcp:5812,max=60 -prop persist.sys.language=de -prop persist.sys.country=DE -avd hudson_de-DE_160_HVGA_android-18_armeabi-v7a -no-snapshot-load -no-snapshot-save -no-window -verbose UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line. UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line. UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line. UNKNOWN:./android/base/files/IniFile.cpp:96:Line 2: Key does not start with a valid character. Skipped line. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. [android] Emulator did not appear to start; giving up [android] Stopping Android emulator $ C:\Users\louie.d.p.mandigal\AppData\Local\Android\sdk/platform-tools/adb.exe kill-server ERROR: Step ‘Publish Cucumber test result report’ failed: No test reports that matches found. Configuration error? Finished: NOT_BUILT
          Hide
          orrc Christopher Orr added a comment -

          Looks like an issue, for which a fix was proposed here: https://github.com/jenkinsci/android-emulator-plugin/pull/66

          That particular problem should be resolved now in version 3.0 of the plugin.

          Show
          orrc Christopher Orr added a comment - Looks like an issue, for which a fix was proposed here: https://github.com/jenkinsci/android-emulator-plugin/pull/66 That particular problem should be resolved now in version 3.0 of the plugin.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              louiemandi Louie Mandi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: