Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346445 - StagingView: stack overflow in UI update
Summary: StagingView: stack overflow in UI update
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.12   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 1.0.0   Edit
Assignee: Bernard Leach CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 09:46 EDT by Jens Baumgart CLA
Modified: 2011-06-01 09:48 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 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