Project: aptanastudio
Issue APSTUD-4762: java.lang.IllegalArgumentException: Index out of bounds in LineBackgroundPainter.paint()
Found in a log file: {code} !ENTRY com.aptana.editor.common 4 0 2012-04-21 11:39:45.488 !MESSAGE (Build 3.0.3.1333576469) [ERROR] Index out of bounds !STACK 0 java.lang.IllegalArgumentException: Index out of bounds org.eclipse.swt.SWT.error(SWT.java:4263) org.eclipse.swt.SWT.error(SWT.java:4197) org.eclipse.swt.SWT.error(SWT.java:4168) org.eclipse.swt.custom.StyledText.getOffsetAtLine(StyledText.java:4346) org.eclipse.jface.text.JFaceTextUtil.getPartialTopIndex(JFaceTextUtil.java:103) org.eclipse.jface.text.source.OverviewRuler$WidgetInfos.(OverviewRuler.java:356) org.eclipse.jface.text.source.OverviewRuler.doPaint(OverviewRuler.java:753) org.eclipse.jface.text.source.OverviewRuler.doubleBufferPaint(OverviewRuler.java:669) org.eclipse.jface.text.source.OverviewRuler.redraw(OverviewRuler.java:890) org.eclipse.jface.text.source.OverviewRuler.access$2(OverviewRuler.java:880) org.eclipse.jface.text.source.OverviewRuler$InternalListener.textChanged(OverviewRuler.java:81) org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2824) org.eclipse.jface.text.TextViewer.invalidateTextPresentation(TextViewer.java:3467) com.aptana.editor.common.extensions.LineBackgroundPainter.paint(LineBackgroundPainter.java:137) org.eclipse.jface.text.PaintManager.paint(PaintManager.java:298) org.eclipse.jface.text.PaintManager.selectionChanged(PaintManager.java:337) org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162) org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2732) org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2711) org.eclipse.jface.text.TextViewer$4.widgetSelected(TextViewer.java:1830) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061) org.eclipse.swt.custom.StyledText.sendSelectionEvent(StyledText.java:8035) org.eclipse.swt.custom.StyledText.clearSelection(StyledText.java:1710) org.eclipse.swt.custom.StyledText.setSelection(StyledText.java:9478) org.eclipse.swt.custom.StyledText.updateSelection(StyledText.java:10186) org.eclipse.swt.custom.StyledText.handleTextChanged(StyledText.java:6206) org.eclipse.swt.custom.StyledText$6.textChanged(StyledText.java:5615) org.eclipse.jface.text.DefaultDocumentAdapter.fireTextChanged(DefaultDocumentAdapter.java:347) org.eclipse.jface.text.DefaultDocumentAdapter.documentChanged(DefaultDocumentAdapter.java:291) org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:760) org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:736) org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:721) org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:796) org.eclipse.jface.text.projection.ProjectionDocument.fireDocumentChanged(ProjectionDocument.java:777) org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1191) org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210) org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:629) org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248) org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7180) org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7994) org.eclipse.swt.custom.StyledText.doDelete(StyledText.java:2519) org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:6991) org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1498) org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:128) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:126) org.eclipse.jface.action.Action.runWithEvent(Action.java:498) org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109) org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468) org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786) org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885) org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:76) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267) org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294) org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730) org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3019) org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734) org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743) org.eclipse.swt.widgets.Control.windowProc(Control.java:5016) org.eclipse.swt.widgets.Display.windowProc(Display.java:4408) org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8422) org.eclipse.swt.widgets.Display.eventProc(Display.java:1245) org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.aptana.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) org.eclipse.equinox.launcher.Main.main(Main.java:1386) {code}
Story points: 5