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

Android: Emulator fails with IndexError: list index out of range

    Details

      Description

      Description:

      While trying to validate a related bug, we were unable to run the emulator. We saw a variety of strange behavior related to this, but the end result is no emulator run. At best we were able to launch the emulator, but no app was installed or launched. We see some of the following:

      Failure one:

      Emulator launches, no console output in Studio. No app launch in emulator. Clicking terminate in studio gets you a single error line in the console.

      Failure two:

      Emulator launch from studio fails with:

      Titanium Command-Line Interface, CLI version 3.1.0-cr, Titanium SDK version 3.1.0.v20130410180128
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
      Please report bugs to http://jira.appcelerator.org/
      [INFO] logfile = /Users/emerriman/Documents/Appcelerator_Studio_Workspace/testMeChrisBarber/build.log
      [INFO] Building testMeChrisBarber for Android ... one moment
      [INFO] Titanium SDK version: 3.1.0 (04/10/13 18:01 d0bbb8b)
      [INFO] Fastdev server running, deploying in Fastdev mode
      [ERROR] Exception occured while building Android project:
      [ERROR] Traceback (most recent call last):
      [ERROR]   File "/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130410180128/android/builder.py", line 2524, in <module>
      [ERROR]     builder.build_and_run(False, avd_id, debugger_host=debugger_host, profiler_host=profiler_host)
      [ERROR]   File "/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.v20130410180128/android/builder.py", line 2176, in build_and_run
      [ERROR]     self.debugger_port = int(hostport[1])
      [ERROR] IndexError: list index out of range
      [ERROR] :  Project failed to build after 830ms
      
      

      If you run the simulator over and over with this failure, the processes just sit there so you must kill all previous run attempts.

      Running with an SDK build back (3.1.0.v20130305095817) gets you:

      Titanium Command-Line Interface, CLI version 3.1.0-cr, Titanium SDK version 3.1.0.v20130409124549
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
      Please report bugs to http://jira.appcelerator.org/
      [INFO] logfile = /Users/emerriman/Documents/Appcelerator_Studio_Workspace/testMeChrisBarber/build.log
      [ERROR] :  Project failed to build after 531ms
      
      [INFO] Building testMeChrisBarber for Android ... one moment
      [INFO] Titanium SDK version: 3.1.0 (04/09/13 12:45 485b313)
      [INFO] Fastdev server running, deploying in Fastdev mode
      [INFO] Copying CommonJS modules...
      [INFO] Copying project resources..
      [INFO] Detected change in tiapp.xml, or assets deleted. Forcing full re-build...
      [INFO] Force including all modules...
      [INFO] Force including all modules...
      [INFO] Compiling Javascript Resources ...
      [INFO] Compiling Android Resources... This could take some time
      [INFO] Installing application on emulator
      

      And the emulator launches.

      Steps to reproduce:

      1) Create a project in studio (Using SDK 3.1.0.v20130410180128
      2) Try to launch in the emulator

      Result:

      Launch failure either with emulator launch but no app, or with console errors.
      Previous launch attempts stay active

      Expected Result:

      The emulator launches and the app is shown

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                emerriman Eric Merriman
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code