Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-5777

Profiling fails on android device with StringIndexOutOfBoundsException error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.0
    • Fix Version/s: 2013 Sprint 24, Release 3.2.0
    • Component/s: Android, Profiling
    • Labels:
    • Environment:

      Environment:
      Appcel Studio : 3.2.0.201311200357
      Ti SDK : 3.2.0.v20131119142443
      Mac OSX : 10.8.5
      Alloy : 1.3.0
      CLI - 3.2.0-alpha
      Device: Samsung Galaxy S4 running android 4.2.2

    • Story Points:
      3

      Description

      Description:

      1.Profile any app in studio for android device.
      2.Monitor the build & launch process.

      Actual Result:

      1. We get error & the build process fails:

      !ENTRY com.appcelerator.titanium.android.core 2 0 2013-11-20 13:33:30.265
      !MESSAGE (Build 3.2.0.201311200357) [WARNING]  Aborting app launch. Installation process returned exit code 143
       
      !ENTRY org.eclipse.core.jobs 4 2 2013-11-20 13:33:30.351
      !MESSAGE An internal error occurred during: "Launching Appcelerator Android Application Installer - commonapp".
      !STACK 0
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1937)
      	at com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.launch(AndroidInstallerLaunchConfigurationDelegate.java:214)
      	at com.appcelerator.titanium.android.ui.launching.device.AndroidDebugOnDeviceLaunchConfigurationDelegate.launch(AndroidDebugOnDeviceLaunchConfigurationDelegate.java:139)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1222)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      

      Expected Result:

      1.The profiling process should be successful & not fail because of StringIndexOutOfBoundsException error.

        Attachments

          Activity

            People

            • Assignee:
              mxia Michael Xia
              Reporter:
              lokeshchdhry Lokesh Choudhary (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: