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

"show window" not respected when querying emulator for snapshots

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I've told the emulator plugin to not show a window, yet it doesn't pass -no-window to the emulator when listing snapshots. If I run this from the command line on my Jenkins slave, I get the same error. If I pass -no-window, it lists the single snapshot.

      From the log file:

      [android] Creating Android AVD: /home/ubuntu/.android/avd/hudson_en-US_240_WVGA_android-7.avd
      $ /home/ubuntu/android/tools/emulator -snapshot-list -avd hudson_en-US_240_WVGA_android-7
      SDL init failure, reason is: No available video device
      

        Attachments

          Activity

          Hide
          valdisrigdon Valdis Rigdon added a comment -
          Show
          valdisrigdon Valdis Rigdon added a comment - I'd added a pull request for the fix. https://github.com/jenkinsci/android-emulator-plugin/pull/1
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Valdis Rigdon
          Path:
          src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
          http://jenkins-ci.org/commit/android-emulator-plugin/04c96707a1b3d064b0239c36f5b1a0a72a24c357
          Log:
          Fixes JENKINS-9462 by adding the '-no-window' flag when listing snapshots.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Valdis Rigdon Path: src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java http://jenkins-ci.org/commit/android-emulator-plugin/04c96707a1b3d064b0239c36f5b1a0a72a24c357 Log: Fixes JENKINS-9462 by adding the '-no-window' flag when listing snapshots.
          Hide
          orrc Christopher Orr added a comment -

          Good find, and thanks for the patch.

          I applied an even simpler version: there's never any need to show the window while listing snapshots.

          I also believe this is an Android bug – there's no reason to attempt showing a window when listing snapshots – so I filed a report there: http://b.android.com/16267

          Version 1.13 of the plugin has now been released with the fix.

          Show
          orrc Christopher Orr added a comment - Good find, and thanks for the patch. I applied an even simpler version: there's never any need to show the window while listing snapshots. I also believe this is an Android bug – there's no reason to attempt showing a window when listing snapshots – so I filed a report there: http://b.android.com/16267 Version 1.13 of the plugin has now been released with the fix.
          Hide
          orrc Christopher Orr added a comment -

          Just to be complete, the above Android bug has now been fixed in the emulator..

          http://android.git.kernel.org/?p=platform/external/qemu.git;a=commit;h=d80a7861fe5e21e3dcb80480a77b033e6b307dd5

          Show
          orrc Christopher Orr added a comment - Just to be complete, the above Android bug has now been fixed in the emulator.. http://android.git.kernel.org/?p=platform/external/qemu.git;a=commit;h=d80a7861fe5e21e3dcb80480a77b033e6b307dd5

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              valdisrigdon Valdis Rigdon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: