Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321097 - Failure to clone repository with big files
Summary: Failure to clone repository with big files
Status: CLOSED DUPLICATE of bug 312868
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 04:38 EDT by Erwin Tratar CLA
Modified: 2010-12-03 16:34 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erwin Tratar CLA 2010-07-28 04:38:49 EDT
Build Identifier: 

We're trying to use EGit/JGit with a repository imported from CVS that has some large files in it (200MB). At least that's what I suspect is the reason. Cloning fails after some time with this Exception:

java.lang.reflect.InvocationTargetException
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:129)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard$4.run(GitCloneWizard.java:199)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jgit.errors.TransportException: e1d24c38cf3c63976aacafe5a5f1b2c4c29b2096
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:269)
at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:218)
at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:210)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:171)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:850)
at org.eclipse.egit.core.op.CloneOperation.doFetch(CloneOperation.java:201)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:119)
... 2 more
Caused by: org.eclipse.jgit.errors.LargeObjectException: e1d24c38cf3c63976aacafe5a5f1b2c4c29b2096
at org.eclipse.jgit.storage.file.LargePackedWholeObject.getCachedBytes(LargePackedWholeObject.java:98)
at org.eclipse.jgit.transport.IndexPack.verifySafeObject(IndexPack.java:873)
at org.eclipse.jgit.transport.IndexPack.whole(IndexPack.java:855)
at org.eclipse.jgit.transport.IndexPack.indexOneObject(IndexPack.java:806)
at org.eclipse.jgit.transport.IndexPack.index(IndexPack.java:409)
at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:627)
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:259)
... 9 more
Root exception:
org.eclipse.jgit.errors.TransportException: e1d24c38cf3c63976aacafe5a5f1b2c4c29b2096
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:269)
at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:218)
at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:210)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:171)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:850)
at org.eclipse.egit.core.op.CloneOperation.doFetch(CloneOperation.java:201)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:119)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard$4.run(GitCloneWizard.java:199)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jgit.errors.LargeObjectException: e1d24c38cf3c63976aacafe5a5f1b2c4c29b2096
at org.eclipse.jgit.storage.file.LargePackedWholeObject.getCachedBytes(LargePackedWholeObject.java:98)
at org.eclipse.jgit.transport.IndexPack.verifySafeObject(IndexPack.java:873)
at org.eclipse.jgit.transport.IndexPack.whole(IndexPack.java:855)
at org.eclipse.jgit.transport.IndexPack.indexOneObject(IndexPack.java:806)
at org.eclipse.jgit.transport.IndexPack.index(IndexPack.java:409)
at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:627)
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:259)
... 9 more


Reproducible: Always
Comment 1 Erwin Tratar CLA 2010-07-28 04:39:28 EDT
tried with the current nightly (0.9.0.201007271530)
Comment 2 Ionut Prunache CLA 2010-11-05 05:19:20 EDT
This also happens when trying to merge large files (around 10MB).

Build 0.9.3
Stack trace:

org.eclipse.jgit.errors.LargeObjectException: 724a84514e0e3509a754ed8e58ef349a497d3f27 exceeds size limit
at org.eclipse.jgit.storage.file.LargePackedWholeObject.getCachedBytes(LargePackedWholeObject.java:98)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:791)
at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:345)
at org.eclipse.jgit.api.MergeCommand.call(MergeCommand.java:162)
at org.eclipse.egit.core.op.MergeOperation$1.run(MergeOperation.java:102)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
at org.eclipse.egit.core.op.MergeOperation.execute(MergeOperation.java:122)
at org.eclipse.egit.ui.internal.repository.tree.command.MergeCommand$1.run(MergeCommand.java:93)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 3 Chris Aniszczyk CLA 2010-11-05 05:20:31 EDT
Can you retry this with a 0.10 nightly?

This could be a legitimate bug.
Comment 4 Ionut Prunache CLA 2010-11-05 05:25:42 EDT
I'll give it a try when i will have some spare time.

This seems to be a common problem and occurs when trying to call ObjectLoader.getBytes when dealing with large files. I think the same problem was handled on bug on EGit: Bug 322707.
Comment 5 Shawn Pearce CLA 2010-12-03 16:34:33 EST

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