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

Bug 327344

Summary: ArrayIndexOutOfBoundsException in FileDiff.outputDiff(...)
Product: [Technology] EGit Reporter: Chris Aniszczyk <caniszczyk>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: angvoz.dev, matthias.sohn, stefan.lay
Version: 0.10.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Chris Aniszczyk CLA 2010-10-08 10:31:37 EDT
I got this while in the history view, going through the history of "ConfigConstants" in JGit.

eclipse.buildId=I20100805-1700
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/chrisaniszczyk/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/chrisaniszczyk/.eclipse_keyring -showlocation


Error
Wed Oct 06 19:15:35 CDT 2010
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 72
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.setSelection(StructuredViewer.java:1700)
at org.eclipse.jface.viewers.TableViewer.setSelection(TableViewer.java:158)
at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:394)
at org.eclipse.egit.ui.internal.history.CommitGraphTable.selectCommit(CommitGraphTable.java:125)
at org.eclipse.egit.ui.internal.history.CommitGraphTable.setInput(CommitGraphTable.java:168)
at org.eclipse.egit.ui.internal.history.GitHistoryPage$19.run(GitHistoryPage.java:1199)
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:3600)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
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(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)
Comment 1 Andrew Gvozdev CLA 2010-10-11 11:31:34 EDT
Any plans to look at this soon? I am working on merging changes from 2 repositories and this exception makes working with the history nearly impossible and really frustrating.
Comment 2 Stefan Lay CLA 2010-10-22 08:48:24 EDT

*** This bug has been marked as a duplicate of bug 327014 ***