Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364060 - Cannot set start points for repository ... caused by MissingObjectException
Summary: Cannot set start points for repository ... caused by MissingObjectException
Status: CLOSED DUPLICATE of bug 371911
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows 7
: P3 critical with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 381892 389277 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-17 11:23 EST by Stephane Begaudeau CLA
Modified: 2014-11-17 03:42 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Begaudeau CLA 2011-11-17 11:23:44 EST
I pushed a commit from one of my branch, I switched to another eclipse containing another clone of my repository focused on my master branch, I fetched the latest changes on my repository (to get my commit from the other branch in order to cherry pick it) and then I use the "show in history" action on one of my projects to see the latest commit on my repository and it exploded. Now I don't have access to the history view (it stays empty) and there are other features of EGit/JGit that crash with the same cause (MissingObjectException).


java.lang.IllegalStateException: Cannot set start points for repository org.eclipse.acceleo
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setWalkStartPoints(GitHistoryPage.java:1569)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.initAndStartRevWalk(GitHistoryPage.java:1390)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.inputSet(GitHistoryPage.java:1085)
	at org.eclipse.team.ui.history.HistoryPage.setInput(HistoryPage.java:59)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setInput(GitHistoryPage.java:968)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryPageFor(GenericHistoryView.java:738)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryFor(GenericHistoryView.java:691)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryFor(GenericHistoryView.java:925)
	at org.eclipse.egit.ui.internal.actions.ShowHistoryActionHandler.execute(ShowHistoryActionHandler.java:34)
	at org.eclipse.egit.ui.internal.actions.RepositoryAction.run(RepositoryAction.java:86)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	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:344)
	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:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown d0defb4e38c85dfcd1fce1cbc1dc965e3d0dd543
	at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:125)
	at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:228)
	at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:811)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.markStartRef(GitHistoryPage.java:1685)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.markStartAllRefs(GitHistoryPage.java:1672)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setWalkStartPoints(GitHistoryPage.java:1556)
	... 37 more
Comment 1 Ed Willink CLA 2012-06-06 17:47:55 EDT
I have a very similar problem losing history and dependent functionality.

The problem ariose becuase I accidentally click Cancel while a Push was in progress.

How do I get my repo back?
Comment 2 Matthias Sohn CLA 2012-06-14 07:46:54 EDT
Please retry using the final build for JGit/EGit 2.0 which has been staged here
http://download.eclipse.org/egit/updates-2.0
and is going to be released with Juno on June 27
Comment 3 elatllat CLA 2012-06-21 12:27:56 EDT
(In reply to comment #2)
the link is 404
:(


I got this problem trying to look at history. I think it's a regression.

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

Error
Thu Jun 21 12:22:56 EDT 2012
Cannot set start points for repository intranet

java.lang.IllegalStateException: Cannot set start points for repository intranet
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setWalkStartPoints(GitHistoryPage.java:1704)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.initAndStartRevWalk(GitHistoryPage.java:1509)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.inputSet(GitHistoryPage.java:1201)
	at org.eclipse.team.ui.history.HistoryPage.setInput(HistoryPage.java:59)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setInput(GitHistoryPage.java:1088)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.doCreatePage(GenericHistoryView.java:698)
	at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:411)
	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:754)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryPageFor(GenericHistoryView.java:559)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryFor(GenericHistoryView.java:525)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryFor(GenericHistoryView.java:778)
	at org.eclipse.egit.ui.internal.actions.ShowHistoryActionHandler.execute(ShowHistoryActionHandler.java:34)
	at org.eclipse.egit.ui.internal.actions.RepositoryAction.run(RepositoryAction.java:78)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown e5ed33f19190c81b830523e7dd1b19ae5d8a3c71
	at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:125)
	at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:228)
	at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:812)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.markStartRef(GitHistoryPage.java:1873)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.markStartAdditionalRefs(GitHistoryPage.java:1868)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setWalkStartPoints(GitHistoryPage.java:1695)
	... 45 more
Comment 4 elatllat CLA 2012-06-21 12:48:05 EDT
Upgraded from 
http://download.eclipse.org/egit/updates
(Egit 1.3)
to
http://download.eclipse.org/egit/updates-nightly
(Egit 2.1)
and am having the same problem.




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

Error
Thu Jun 21 12:46:37 EDT 2012
Unhandled event loop exception

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalStateException: Cannot set start points for repository intranet)
	at org.eclipse.swt.SWT.error(SWT.java:4361)
	at org.eclipse.swt.SWT.error(SWT.java:4276)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3944)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: java.lang.IllegalStateException: Cannot set start points for repository intranet
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setWalkStartPoints(GitHistoryPage.java:1704)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.initAndStartRevWalk(GitHistoryPage.java:1509)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage$8.run(GitHistoryPage.java:1066)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 23 more
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown e5ed33f19190c81b830523e7dd1b19ae5d8a3c71
	at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:125)
	at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:228)
	at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:812)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.markStartRef(GitHistoryPage.java:1873)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.markStartAdditionalRefs(GitHistoryPage.java:1868)
	at org.eclipse.egit.ui.internal.history.GitHistoryPage.setWalkStartPoints(GitHistoryPage.java:1695)
	... 27 more
Comment 5 elatllat CLA 2012-06-21 12:59:39 EDT
pushing somehow fixed this.
Comment 6 Matthias Sohn CLA 2014-10-08 06:45:22 EDT
*** Bug 389277 has been marked as a duplicate of this bug. ***
Comment 7 Matthias Sohn CLA 2014-11-17 03:37:08 EST
*** Bug 381892 has been marked as a duplicate of this bug. ***
Comment 8 Matthias Sohn CLA 2014-11-17 03:42:47 EST

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