Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353369 - "GC overhead limit exceeded"
Summary: "GC overhead limit exceeded"
Status: RESOLVED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-28 16:53 EDT by Oleg Besedin CLA
Modified: 2013-05-27 15:37 EDT (History)
5 users (show)

See Also:


Attachments
Screenshot of the error dialog (16.75 KB, image/png)
2011-07-28 16:53 EDT, Oleg Besedin CLA
no flags Details
Error 1 (183.36 KB, image/jpeg)
2012-12-17 14:19 EST, Francisco Miguel CLA
no flags Details
Error 2 (249.61 KB, image/jpeg)
2012-12-17 14:19 EST, Francisco Miguel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Besedin CLA 2011-07-28 16:53:11 EDT
Created attachment 200558 [details]
Screenshot of the error dialog

When selected "Pull" operation I go the following error:

An internal error occurred during: "Building Commit Info".
GC overhead limit exceeded

An internal error occurred during: "GitDecoratorJob[C:/git/repo42/git/eclipse.platform.ui/.git]".
GC overhead limit exceeded

See screenshot attached. 

I had a Git history view open and was doing Java development. 

After the error message Eclipse instance became unresponsive and had to be closed.
Comment 1 Andrei Costescu CLA 2012-09-03 07:53:25 EDT
I have the same error after waiting a looooong time for a Synchronize. The plugin is unuseable because of this.

Eclipse Version: 
Eclipse for RCP and RAP Developers
Version: Juno Release
Build id: 20120614-1722
Egit version: 2.1.0.201208301123 (nightly build)

Exceptions in log:

!SESSION 2012-09-03 12:30:55.792 -----------------------------------------------
eclipse.buildId=I20120608-1400
java.version=1.6.0_30
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ro_RO
Framework arguments:  -product org.eclipse.epp.package.rcp.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.rcp.product -data [.../HEAD]

!ENTRY org.eclipse.egit.core 4 0 2012-09-03 14:11:39.182
!MESSAGE 85662
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 85662
	at org.eclipse.jgit.util.NB.decodeInt32(NB.java:96)
	at org.eclipse.jgit.lib.MutableObjectId.fromRaw(MutableObjectId.java:175)
	at org.eclipse.jgit.treewalk.AbstractTreeIterator.getEntryObjectId(AbstractTreeIterator.java:410)
	at org.eclipse.jgit.treewalk.TreeWalk.getObjectId(TreeWalk.java:676)
	at org.eclipse.egit.core.synchronize.ThreeWayDiffEntry.scan(ThreeWayDiffEntry.java:93)
	at org.eclipse.egit.core.synchronize.GitSyncCache.loadDataFromGit(GitSyncCache.java:146)
	at org.eclipse.egit.core.synchronize.GitSyncCache.getAllData(GitSyncCache.java:83)
	at org.eclipse.egit.core.synchronize.GitSyncCache.getAllData(GitSyncCache.java:63)
	at org.eclipse.egit.core.synchronize.GitSyncCache.getAllData(GitSyncCache.java:52)
	at org.eclipse.egit.core.synchronize.GitResourceVariantTreeSubscriber.init(GitResourceVariantTreeSubscriber.java:84)
	at org.eclipse.egit.ui.internal.synchronize.GitModelSynchronize$2.run(GitModelSynchronize.java:159)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.jobs 4 2 2012-09-03 14:43:46.973
!MESSAGE An internal error occurred during: "Synchronizing Git".
!STACK 0
java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.core.runtime.Path.append(Path.java:248)
	at org.eclipse.core.internal.localstore.FileStoreRoot.localLocation(FileStoreRoot.java:112)
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.locationFor(FileSystemResourceManager.java:754)
	at org.eclipse.core.internal.resources.Resource.getLocation(Resource.java:1149)
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.resourceForLocation(FileSystemResourceManager.java:285)
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.fileForLocation(FileSystemResourceManager.java:472)
	at org.eclipse.core.internal.resources.WorkspaceRoot.getFileForLocation(WorkspaceRoot.java:137)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForFile(GitContainerMapping.java:69)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:62)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.createTraversalForContainer(GitContainerMapping.java:60)
	at org.eclipse.egit.ui.internal.synchronize.mapping.GitContainerMapping.getTraversals(GitContainerMapping.java:47)
	at org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.addMappingsToScope(SynchronizationScopeManager.java:389)
	at org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.addResourcesToScope(SynchronizationScopeManager.java:308)
	at org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.performExpandScope(SynchronizationScopeManager.java:279)
	at org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.internalRefreshScope(SynchronizationScopeManager.java:239)
	at org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.access$1(SynchronizationScopeManager.java:221)
	at org.eclipse.team.core.mapping.provider.SynchronizationScopeManager$2.run(SynchronizationScopeManager.java:181)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.refresh(SynchronizationScopeManager.java:179)
	at org.eclipse.team.core.subscribers.SubscriberScopeManager.access$1(SubscriberScopeManager.java:1)
	at org.eclipse.team.core.subscribers.SubscriberScopeManager$2.run(SubscriberScopeManager.java:95)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.team.core.subscribers.SubscriberScopeManager.refresh(SubscriberScopeManager.java:93)
	at org.eclipse.team.core.mapping.provider.SynchronizationContext.refresh(SynchronizationContext.java:107)
	at org.eclipse.team.internal.ui.synchronize.RefreshModelParticipantJob.doRefresh(RefreshModelParticipantJob.java:69)
Comment 2 Francisco Miguel CLA 2012-12-17 14:19:15 EST
Created attachment 224814 [details]
Error 1

Error 1 synchronization.
Comment 3 Francisco Miguel CLA 2012-12-17 14:19:43 EST
Created attachment 224815 [details]
Error 2

Error 2 synchronization.
Comment 4 Francisco Miguel CLA 2012-12-17 14:31:22 EST
I'm having the same error at the method decodeInt32, but the problem occurs when i try to  synchronize the project (through the puglin)

After synchronizing the project, it appears that the files are different.

But the strange is that  it only occurs with a specific project.

I am attaching some screen shots  with this errors.
Comment 5 Matthias Sohn CLA 2012-12-21 04:49:27 EST
What's your maximum heap size ? Looking at the stack trace this was caused by an OutOfMemoryError.
Comment 6 Andrei Costescu CLA 2012-12-21 18:24:55 EST
1 GB is the max heap size, although I can't double check right now - writing from another comp...
Comment 7 Francisco Miguel CLA 2013-01-04 07:12:38 EST
After updating the git plugin to version 2.2.0.201212191850r the synchronization problem has been resolved.
Comment 8 Robin Rosenberg CLA 2013-05-27 15:37:08 EDT
possibly fixed