Community
Participate
Working Groups
JGit 0.9.0.201008122250 EGit 0.9.0.201008122253 I try synchronizing a branch with EGit but I always get an exception coming from JGit. My biggest file is 3.2MB. Call stack: org.eclipse.jgit.errors.LargeObjectException: 19097d955bd44780cf00e04153dd712bf2e84183 at org.eclipse.jgit.storage.file.UnpackedObject$LargeObject.getCachedBytes(UnpackedObject.java:365) at org.eclipse.jgit.lib.ObjectLoader.getBytes(ObjectLoader.java:107) at org.eclipse.egit.core.synchronize.GitBlobResourceVariant.<init>(GitBlobResourceVariant.java:49) at org.eclipse.egit.core.synchronize.GitFolderResourceVariant.getMembers(GitFolderResourceVariant.java:88) at org.eclipse.egit.core.synchronize.GitResourceVariantTree.fetchMembers(GitResourceVariantTree.java:106) at org.eclipse.team.core.variants.AbstractResourceVariantTree.mergedMembers(AbstractResourceVariantTree.java:196) at org.eclipse.team.core.variants.AbstractResourceVariantTree.collectChanges(AbstractResourceVariantTree.java:173) ....
Changing to Egit. It looks like ObjectLoader.getBytes shouldn't be called when dealing with a large object. Files bigger than 1MB are LargeObject which always throws a LargeFileException when getBytes->getCachedBytes is called. UnpackedObject.open: if (size < wc.getStreamFileThreshold() || path == null) { ... return new ObjectLoader.SmallObject(type, data); } return new LargeObject(type, size, path, id, wc.db);
This patch set should fix this issue: http://egit.eclipse.org/r/1317 btw. To have it clear, it isn't part of my GSoC project, my adventure with Summer of Code ends about 20min ago ;). Right now I'm a regular contributor ;)
Fixed with 6ef63719a7e8c53b7627da17248398226f158b77. Marc-Andre, can you try tomorrow's nightly build and let me know if everything is OK for you.
(In reply to comment #3) > Fixed with 6ef63719a7e8c53b7627da17248398226f158b77. > > Marc-Andre, can you try tomorrow's nightly build and let me know if everything > is OK for you. I think it fixed the problem (hudson #429), thank you! (In reply to comment #2) > btw. To have it clear, it isn't part of my GSoC project, my adventure with > Summer of Code ends about 20min ago ;). Right now I'm a regular contributor ;) Thanks for the prompt fix! I hope you continue to contribute, you seem talented :)
(In reply to comment #4) > Thanks for the prompt fix! I hope you continue to contribute, you seem talented > :) Yes, I'll continue my contribution ;)