Bug 402072 - [rulers] InvalidArgumentError when painting CommonLineNumberRulerColumn
Summary: [rulers] InvalidArgumentError when painting CommonLineNumberRulerColumn
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2013-02-28 19:23 EST by Fabio Zadrozny CLA
Modified: 2013-03-11 07:31 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Zadrozny CLA 2013-02-28 19:23:06 EST
I can't reproduce this reliably, but it happened a few times for me already.

I'm posting the stack trace below:

(Build 0.0.0.qualifier) [ERROR]  Error painting line number: LineMap <Document: 58, widget: 58, visual: 58>
java.lang.IllegalArgumentException: Index out of bounds
	at org.eclipse.swt.SWT.error(SWT.java:4354)
	at org.eclipse.swt.SWT.error(SWT.java:4288)
	at org.eclipse.swt.SWT.error(SWT.java:4259)
	at org.eclipse.swt.custom.StyledText.getOffsetAtLine(StyledText.java:4366)
	at org.eclipse.jface.text.source.CommonLineNumberRulerColumn.getBaselineBias(CommonLineNumberRulerColumn.java:882)
	at org.eclipse.jface.text.source.CommonLineNumberRulerColumn.paintLine(CommonLineNumberRulerColumn.java:907)
	at org.eclipse.jface.text.source.CommonLineNumberRulerColumn.doPaint(CommonLineNumberRulerColumn.java:779)
	at org.eclipse.jface.text.source.CommonLineNumberChangeRulerColumn.doPaint(CommonLineNumberChangeRulerColumn.java:199)
	at org.eclipse.jface.text.source.CommonLineNumberRulerColumn.doubleBufferPaint(CommonLineNumberRulerColumn.java:730)
	at org.eclipse.jface.text.source.CommonLineNumberRulerColumn.redraw(CommonLineNumberRulerColumn.java:946)
	at org.eclipse.jface.internal.text.source.DiffPainter.redraw(DiffPainter.java:382)
	at org.eclipse.jface.internal.text.source.DiffPainter.access$2(DiffPainter.java:381)
	at org.eclipse.jface.internal.text.source.DiffPainter$2.run(DiffPainter.java:371)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1057)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:941)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:79)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
Comment 1 Dani Megert CLA 2013-03-01 07:43:53 EST
In which editor does it happen?
Comment 2 Fabio Zadrozny CLA 2013-03-01 07:52:41 EST
It happened in the PyDev editor (I'm its author and I'm testing it against the latest Eclipse 4.3).

From the stack trace I couldn't find anything really related to the editor (that's why I'm reporting it against Eclipse itself) -- also, I didn't experience this issue in the latest 3.8 version (so, it appears something introduced in the 4.x branch).
Comment 3 Dani Megert CLA 2013-03-11 07:31:12 EDT
I cannot reproduce this in any of "our" editors. If you still see this, then please provide a test case/plug-in that allows to reproduce and investigate the issue.