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

Bug 346445

Summary: StagingView: stack overflow in UI update
Product: [Technology] EGit Reporter: Jens Baumgart <jens.baumgart>
Component: UIAssignee: Bernard Leach <leachbj>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: caniszczyk, leachbj
Version: 0.12   
Target Milestone: 1.0.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jens Baumgart CLA 2011-05-19 09:46:25 EDT
A stack overflow occured in the UI update of the staging view.
The issue could be resolved by processing the RefsChanged event asynchronously. Same would apply for the indexChanged event.

	at org.eclipse.egit.ui.internal.staging.StagingView$1.onRefsChanged(StagingView.java:106)
	at org.eclipse.jgit.events.RefsChangedEvent.dispatch(RefsChangedEvent.java:55)
	at org.eclipse.jgit.events.RefsChangedEvent.dispatch(RefsChangedEvent.java:47)
	at org.eclipse.jgit.events.ListenerList.dispatch(ListenerList.java:120)
	at org.eclipse.jgit.lib.Repository.fireEvent(Repository.java:149)
	at org.eclipse.jgit.storage.file.RefDirectory.fireRefsChanged(RefDirectory.java:913)
	at org.eclipse.jgit.storage.file.RefDirectory.getRef(RefDirectory.java:277)
	at org.eclipse.jgit.lib.Repository.resolveSimple(Repository.java:592)
	at org.eclipse.jgit.lib.Repository.resolve(Repository.java:566)
	at org.eclipse.jgit.lib.Repository.resolve(Repository.java:376)
	at org.eclipse.jgit.lib.IndexDiff.<init>(IndexDiff.java:178)
	at org.eclipse.egit.ui.internal.staging.StagingView.reload(StagingView.java:399)
	at org.eclipse.egit.ui.internal.staging.StagingView.access$0(StagingView.java:391)
	at org.eclipse.egit.ui.internal.staging.StagingView$1.onRefsChanged(StagingView.java:106)
Comment 1 Bernard Leach CLA 2011-05-21 00:29:31 EDT
Is there a simple way to reproduce that error?
Comment 2 Jens Baumgart CLA 2011-05-23 04:44:53 EDT
I got the error when I selected 10 branches in Repositories View and executed the delete branch action.
Comment 3 Chris Aniszczyk CLA 2011-06-01 09:48:24 EDT
Merged into stable 1.0