denio7 / egit

Automatically exported from code.google.com/p/egit
0 stars 0 forks source link

EGit decorator fails with exception from index #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Eclipse 3.4.2
EGit 0.4.0.200904052315
Used together with git 1.6.2

I can't state clearly when it happens. On some of my projects decorations
are disappearing from time to time. Now, it happens to quite a big project
backed by git-svn. I can't even see a specific operation that cause that
problem. Sometimes it happens since Eclipse startup, sometimes after some
(possibly external) action.

What is the expected output? What do you see instead?

EGit decoration stops working. Default branch information for project
disappears, EGit decoration for files are not displayed, only JDT
decorations are displayed.

It seems that this problem is not necessarily related to EGit, but it may
be a JGit DirCache problem as well, as you can see from log stack trace
found in Eclipse' logs:
!ENTRY org.spearce.egit.ui 4 0 2009-04-09 11:30:50.137
!MESSAGE Errors occurred while applying Git decorations to resources.
!STACK 1
org.spearce.egit.core.GitException: DIRC extension '�T>�' not supported by
this version.
    at org.spearce.egit.core.GitException.wrapException(GitException.java:153)
    at
org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLigh
tweightDecorator.java:175)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(Light
weightDecoratorDefinition.java:263)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnab
le.run(LightweightDecoratorManager.java:72)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(Lightwei
ghtDecoratorManager.java:356)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(Li
ghtweightDecoratorManager.java:338)
    at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(Deco
rationScheduler.java:374)
    at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler
.java:334)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.spearce.jgit.errors.CorruptObjectException: DIRC extension
'�T>�' not supported by this version.
    at org.spearce.jgit.dircache.DirCache.readFrom(DirCache.java:395)
    at org.spearce.jgit.dircache.DirCache.read(DirCache.java:320)
    at org.spearce.jgit.dircache.DirCache.read(DirCache.java:144)
    at org.spearce.jgit.dircache.DirCache.read(DirCache.java:167)
    at
org.spearce.egit.ui.internal.decorators.DecoratableResourceAdapter.createThreeWa
yTreeWalk(DecoratableResourceAdapter.java:329)
    at
org.spearce.egit.ui.internal.decorators.DecoratableResourceAdapter.<init>(Decora
tableResourceAdapter.java:94)
    at
org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLigh
tweightDecorator.java:173)
    ... 8 more
!SUBENTRY 1 org.spearce.egit.core 4 -4 2009-04-09 11:30:50.139
!MESSAGE DIRC extension '�T>�' not supported by this version.
!STACK 0
org.spearce.jgit.errors.CorruptObjectException: DIRC extension '�T>�' not
supported by this version.
    at org.spearce.jgit.dircache.DirCache.readFrom(DirCache.java:395)
    at org.spearce.jgit.dircache.DirCache.read(DirCache.java:320)
    at org.spearce.jgit.dircache.DirCache.read(DirCache.java:144)
    at org.spearce.jgit.dircache.DirCache.read(DirCache.java:167)
    at
org.spearce.egit.ui.internal.decorators.DecoratableResourceAdapter.createThreeWa
yTreeWalk(DecoratableResourceAdapter.java:329)
    at
org.spearce.egit.ui.internal.decorators.DecoratableResourceAdapter.<init>(Decora
tableResourceAdapter.java:94)
    at
org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLigh
tweightDecorator.java:173)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(Light
weightDecoratorDefinition.java:263)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnab
le.run(LightweightDecoratorManager.java:72)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(Lightwei
ghtDecoratorManager.java:356)
    at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(Li
ghtweightDecoratorManager.java:338)
    at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(Deco
rationScheduler.java:374)
    at
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler
.java:334)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Original issue reported on code.google.com by Marek.Za...@gmail.com on 9 Apr 2009 at 9:34

GoogleCodeExporter commented 8 years ago
Given that this is a DIRC read failure, its probably fixed by my PATCH 1/2 in 
this
series I just posted:

http://thread.gmane.org/gmane.comp.version-control.git/116090

Original comment by shawn.pe...@gmail.com on 9 Apr 2009 at 3:42

GoogleCodeExporter commented 8 years ago

Original comment by shawn.pe...@gmail.com on 9 Apr 2009 at 3:43