Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17344

CLI: Android: Genymotion emulators detected as running when they are not

    Details

    • Sprint:
      2014 Sprint 14 Tooling

      Description

      The Problem

      It's possible for a Genymotion emulator's IP address property to not be properly removed when the Genymotion emulator is shutdown. The Titanium CLI expects that the IP address will only be listed if the Genymotion emulator is running. When it sees the IP address, it will try to connect to the Genymotion emulator and check if it has Google APIs installed and an error occurs.

      The root problem is the error is not properly handled and causes the build/info command to crash or spin indefinitely.

      The Workaround

      Shutdown all Genymotion emulators. From the command line, run:

      vboxmanage list vms
      

      For each VM, copy the uuid and past it into the following:

      vboxmanage guestproperty enumerate <uuid>
      

      Look for the androvm_ip_management property. If it exists, remove it:

      vboxmanage guestproperty delete <uuid> androvm_ip_management
      

      The Proper Fix

      To fix this issue the right way, the Genymotion library needs to handle error messages when the adb shell command fails while attempting to detect the presence of Google APIs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                cbarber Chris Barber
                Reviewer:
                Tim Poulsen
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18962
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code