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

Failed to execute runnable (java.lang.IllegalArgumentException: Index out of bounds)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Titanium Studio 3.0.0
    • Component/s: Editor
    • Labels:
    • Environment:

      Windows 8
      Titanium Studio, build: 3.0.0.201211081122

    • Story Points:
      8

      Description

      Found while testing TISTUD-2679:

      !ENTRY org.eclipse.ui 4 0 2012-11-08 12:48:37.161
      !MESSAGE Unhandled event loop exception
      !STACK 0
      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Index out of bounds)
          at org.eclipse.swt.SWT.error(SWT.java:4282)
          at org.eclipse.swt.SWT.error(SWT.java:4197)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
          at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
          at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      Caused by: java.lang.IllegalArgumentException: Index out of bounds
          at org.eclipse.swt.SWT.error(SWT.java:4263)
          at org.eclipse.swt.SWT.error(SWT.java:4197)
          at org.eclipse.swt.SWT.error(SWT.java:4168)
          at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9661)
          at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:7713)
          at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4811)
          at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4890)
          at com.aptana.editor.common.text.reconciler.CommonPresentationReconciler$1.run(CommonPresentationReconciler.java:227)
          at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)
          at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
          ... 22 more
       
      !ENTRY com.aptana.editor.common 2 0 2012-11-08 12:48:37.163
      !MESSAGE (Build 3.0.0.201211071923) [WARNING]  Was unable to add folding position. Start: 1,545,140, end: 0
      

      Steps to Reproduce:

      1. Edit large attached file in studio.
      2. Scroll top to bottom
      3. Cut the contents
      4. Paste them back
      5. Save the file
      6. Repeat steps 3 thru 5.

      Actual Result:

      The above output

      Expected Result:

      Studio should not throw an error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                cheadley Clayton Headley
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: