Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-1554

Exception on LineBackgroundPainter (when using Findbar)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      {html}<div><p>1) Open the attached file in an editor<br>
      2) Open the find bar and perform a search within that file<br>
      3) See exceptions being generated</p>
      <p>!ENTRY org.eclipse.jface 4 2 2011-01-26 11:41:23.838 !MESSAGE
      Problems occurred when invoking code from plug-in:
      "org.eclipse.jface". !STACK 0 java.lang.IllegalArgumentException:
      Argument not valid<br></p>
      <pre>
      <code>at org.eclipse.swt.SWT.error(SWT.java:4064)
      at org.eclipse.swt.SWT.error(SWT.java:3998)
      at org.eclipse.swt.SWT.error(SWT.java:3969)
      at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9683)
      at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:7705)
      at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4803)
      at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4882)
      at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:579)
      at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:568)
      at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:564)
      at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.textChanged(PresentationReconciler.java:225)
      at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2820)
      at org.eclipse.jface.text.TextViewer.invalidateTextPresentation(TextViewer.java:3463)
      at com.aptana.editor.common.extensions.LineBackgroundPainter.drawHighlightLine(LineBackgroundPainter.java:292)
      at com.aptana.editor.common.extensions.LineBackgroundPainter.paint(LineBackgroundPainter.java:159)
      at org.eclipse.jface.text.PaintManager.paint(PaintManager.java:298)
      at org.eclipse.jface.text.PaintManager.selectionChanged(PaintManager.java:337)
      at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
      at org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2728)
      at org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2707)
      at org.eclipse.jface.text.TextViewer.setSelectedRange(TextViewer.java:2392)
      at org.eclipse.jface.text.source.projection.ProjectionViewer.findAndSelect(ProjectionViewer.java:1764)
      at org.eclipse.jface.text.TextViewer$FindReplaceTarget.findAndSelect(TextViewer.java:879)
      at org.eclipse.ui.texteditor.FindReplaceTarget.findAndSelect(FindReplaceTarget.java:88)
      at com.aptana.editor.findbar.impl.FindBarDecorator.find(FindBarDecorator.java:898)
      at com.aptana.editor.findbar.impl.FindBarDecorator.find(FindBarDecorator.java:820)
      at com.aptana.editor.findbar.impl.FindBarDecorator.access$3(FindBarDecorator.java:818)
      at com.aptana.editor.findbar.impl.FindBarDecorator$1.modifyText(FindBarDecorator.java:538)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:173)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at com.aptana.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:369)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1407)</code>
      </pre>
      <p>!ENTRY org.eclipse.ui 4 0 2011-01-26 11:41:24.036 !MESSAGE
      Unhandled event loop exception !STACK 0
      org.eclipse.swt.SWTException: Failed to execute runnable
      (java.lang.IllegalArgumentException: Argument not valid)<br></p>
      <pre>
      <code>at org.eclipse.swt.SWT.error(SWT.java:4083)
      at org.eclipse.swt.SWT.error(SWT.java:3998)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3586)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3279)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at com.aptana.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:369)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1407)</code>
      </pre>
      <p>Caused by: java.lang.IllegalArgumentException: Argument not
      valid<br></p>
      <pre>
      <code>at org.eclipse.swt.SWT.error(SWT.java:4064)
      at org.eclipse.swt.SWT.error(SWT.java:3998)
      at org.eclipse.swt.SWT.error(SWT.java:3969)
      at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9683)
      at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:7705)
      at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4803)
      at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4882)
      at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:579)
      at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:568)
      at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:564)
      at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.textChanged(PresentationReconciler.java:225)
      at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2820)
      at org.eclipse.jface.text.TextViewer.invalidateTextPresentation(TextViewer.java:3463)
      at com.aptana.editor.common.extensions.LineBackgroundPainter.drawHighlightLine(LineBackgroundPainter.java:292)
      at com.aptana.editor.common.extensions.LineBackgroundPainter.paint(LineBackgroundPainter.java:157)
      at org.eclipse.jface.text.PaintManager.paint(PaintManager.java:298)
      at org.eclipse.jface.text.PaintManager.access$1(PaintManager.java:296)
      at org.eclipse.jface.text.PaintManager$1.run(PaintManager.java:353)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
      ... 22 more</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              basil(ataptana) basil (at aptana)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code