Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327014

Summary: History View fails with OOB.
Product: [Technology] EGit Reporter: Gorkem Ercan <gorkem.ercan>
Component: UIAssignee: Stefan Lay <stefan.lay>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: angvoz.dev, caniszczyk, stefan.lay
Version: 0.10.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gorkem Ercan CLA 2010-10-05 10:34:51 EDT
This is with the 0.10.0.201009270918 from nightlies. 

eclipse.buildId=M20100909-0800
java.version=1.6.0_21
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86


Error
Tue Oct 05 17:27:32 EEST 2010
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 819
	at org.eclipse.jgit.util.IntList.get(IntList.java:82)
	at org.eclipse.jgit.diff.RawText.writeLine(RawText.java:151)
	at org.eclipse.jgit.diff.DiffFormatter.writeLine(DiffFormatter.java:818)
	at org.eclipse.jgit.diff.DiffFormatter.writeContextLine(DiffFormatter.java:713)
	at org.eclipse.jgit.diff.DiffFormatter.format(DiffFormatter.java:679)
	at org.eclipse.jgit.diff.DiffFormatter.format(DiffFormatter.java:649)
	at org.eclipse.jgit.diff.DiffFormatter.format(DiffFormatter.java:589)
	at org.eclipse.egit.ui.internal.history.FileDiff.outputDiff(FileDiff.java:101)
	at org.eclipse.egit.ui.internal.history.CommitMessageViewer.addDiff(CommitMessageViewer.java:371)
	at org.eclipse.egit.ui.internal.history.CommitMessageViewer.format(CommitMessageViewer.java:253)
	at org.eclipse.egit.ui.internal.history.CommitMessageViewer.setInput(CommitMessageViewer.java:165)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage$10.selectionChanged(GitHistoryPage.java:782)
	at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:867)
	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.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:865)
	at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1205)
	at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1230)
	at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:251)
	at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:245)
	at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:419)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
	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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	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(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:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Stefan Lay CLA 2010-10-22 08:48:24 EDT
*** Bug 327344 has been marked as a duplicate of this bug. ***
Comment 2 Stefan Lay CLA 2010-10-22 08:49:49 EDT
I got this while in the history view, going through the history of
"ConfigConstants" in JGit.

(comment from Bug 327344)
Comment 3 Stefan Lay CLA 2010-12-01 05:26:17 EST
I think the problem does not exist anymore. I cannot reproduce it. Please reopen the bug if you still face the issue.