IntelliJ IDEA is confused by GIT history

Answered

IntelliJ IDEA Ultimate 2019.2.3 on Mac connecting to a git server

Since I upgraded to 2019.2.3 earlier this week, git history (VCS | Git | Show History) in IntelliJ has been unstable and often fails to display.  I'm getting a bunch of these messages and deleting that directory doesn't seem to make a difference.  Is this a known issue?  Should I downgrade?

1:12 PM VCS Log was recreated 60 times due to data corruption
Delete /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log directory and restart IntelliJ IDEA if this happens often.
java.lang.AssertionError: -1161946761 in /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log/index/8fb80479.32d520bd.renames-map.20.0.keystream

1:13 PM VCS Log was recreated 65 times due to data corruption
Delete /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log directory and restart IntelliJ IDEA if this happens often.
java.lang.AssertionError: -1161946761 in /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log/index/8fb80479.32d520bd.renames-map.20.0.keystream

1:13 PM VCS Log was recreated 70 times due to data corruption
Delete /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log directory and restart IntelliJ IDEA if this happens often.
java.lang.AssertionError: -1161946761 in /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log/index/8fb80479.32d520bd.renames-map.20.0.keystream

1:14 PM VCS Log was recreated 75 times due to data corruption
Delete /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log directory and restart IntelliJ IDEA if this happens often.
java.lang.AssertionError: -1161946761 in /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log/index/8fb80479.32d520bd.renames-map.20.0.keystream

1:14 PM VCS Log was recreated 80 times due to data corruption
Delete /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log directory and restart IntelliJ IDEA if this happens often.
java.lang.AssertionError: -1161946761 in /Users/username/Library/Caches/IntelliJIdea2019.2/vcs-log/index/8fb80479.32d520bd.renames-map.20.0.keystream
8 comments
Comment actions Permalink

> deleting that directory doesn't seem to make a difference

Do you delete it while the IDE is running? Try closing the IDE, delete the directory, and start IDE again.

Looks like there are no similar knonw issues.

0
Comment actions Permalink

Thanks for reply - I'm not sure if it was running or not, so I've closed it & deleted the directory and will post back if anything interesting happens.

0
Comment actions Permalink

I am seeing the same problem on Windows 10 with IntelliJ IDEA 2019.2.4 (Ultimate Edition), Build #IU-192.7142.36.  I closed the IDE, deleted the directory, started the IDE again but the issue continues to occur

VCS Log was recreated 5 times due to data corruption
Delete C:\Users\username\.IntelliJIdea2019.2\system\vcs-log directory and restart IntelliJ IDEA if this happens often.
java.lang.AssertionError: -1161946761 in C:\Users\username\.IntelliJIdea2019.2\system\vcs-log\index\55ce1f59.cdca5c95.renames-map.20.0.keystream

Here is the stack trace from the log:

2019-11-07 22:26:48,827 [ 158909] ERROR - lij.vcs.log.impl.VcsProjectLog - VCS Log was recreated 5 times due to data corruption
Delete C:\Users\mgosnell\.IntelliJIdea2019.2\system\vcs-log directory and restart IntelliJ IDEA if this happens often.
java.lang.AssertionError: -1161946761 in C:\Users\mgosnell\.IntelliJIdea2019.2\system\vcs-log\index\55ce1f59.cdca5c95.renames-map.20.0.keystream
java.io.IOException: java.lang.AssertionError: -1161946761 in C:\Users\mgosnell\.IntelliJIdea2019.2\system\vcs-log\index\55ce1f59.cdca5c95.renames-map.20.0.keystream
at com.intellij.util.io.PersistentEnumeratorBase.doEnumerate(PersistentEnumeratorBase.java:300)
at com.intellij.util.io.PersistentEnumeratorBase.tryEnumerate(PersistentEnumeratorBase.java:277)
at com.intellij.util.io.PersistentEnumeratorDelegate.tryEnumerate(PersistentEnumeratorDelegate.java:102)
at com.intellij.util.io.PersistentHashMap.doGet(PersistentHashMap.java:569)
at com.intellij.util.io.PersistentHashMap.get(PersistentHashMap.java:537)
at com.intellij.vcs.log.data.index.VcsLogPathsIndex.findRename(VcsLogPathsIndex.java:117)
at com.intellij.vcs.log.data.index.IndexDataGetter$FileHistoryDataImpl.lambda$findRename$0(IndexDataGetter.java:348)
at com.intellij.vcs.log.data.index.IndexDataGetter.executeAndCatch(IndexDataGetter.java:439)
at com.intellij.vcs.log.data.index.IndexDataGetter.executeAndCatch(IndexDataGetter.java:431)
at com.intellij.vcs.log.data.index.IndexDataGetter.access$200(IndexDataGetter.java:39)
at com.intellij.vcs.log.data.index.IndexDataGetter$FileHistoryDataImpl.findRename(IndexDataGetter.java:348)
at com.intellij.vcs.log.history.FileHistoryData.findRename(FileHistory.kt:315)
at com.intellij.vcs.log.history.FileHistoryData.access$findRename(FileHistory.kt:276)
at com.intellij.vcs.log.history.FileHistoryData$build$2.invoke(FileHistory.kt:301)
at com.intellij.vcs.log.history.FileHistoryData$build$2.invoke(FileHistory.kt:276)
at com.intellij.vcs.log.history.FileHistoryData$iterateUnmatchedAdditionsDeletions$1$1.execute(FileHistory.kt:329)
at com.intellij.vcs.log.history.FileHistoryData$iterateUnmatchedAdditionsDeletions$1$1.execute(FileHistory.kt:276)
at gnu.trove.TIntObjectHashMap.forEachEntry(TIntObjectHashMap.java:586)
at com.intellij.vcs.log.history.FileHistoryData$iterateUnmatchedAdditionsDeletions$1.invoke(FileHistory.kt:325)
at com.intellij.vcs.log.history.FileHistoryData$iterateUnmatchedAdditionsDeletions$1.invoke(FileHistory.kt:276)
at com.intellij.vcs.log.history.FileHistoryKt$forEach$$inlined$forEach$lambda$1.execute(FileHistory.kt:530)
at com.intellij.vcs.log.history.FileHistoryKt$forEach$$inlined$forEach$lambda$1.execute(FileHistory.kt)
at gnu.trove.TIntObjectHashMap.forEachEntry(TIntObjectHashMap.java:586)
at com.intellij.vcs.log.history.FileHistoryKt.forEach(FileHistory.kt:529)
at com.intellij.vcs.log.history.FileHistoryData.iterateUnmatchedAdditionsDeletions(FileHistory.kt:324)
at com.intellij.vcs.log.history.FileHistoryData.build$intellij_platform_vcs_log_impl(FileHistory.kt:300)
at com.intellij.vcs.log.history.FileHistoryFilterer$MyWorker.filterWithIndex(FileHistoryFilterer.kt:180)
at com.intellij.vcs.log.history.FileHistoryFilterer$MyWorker.filterWithIndex(FileHistoryFilterer.kt:167)
at com.intellij.vcs.log.history.FileHistoryFilterer$MyWorker.filter(FileHistoryFilterer.kt:72)
at com.intellij.vcs.log.history.FileHistoryFilterer.filter(FileHistoryFilterer.kt:53)
at com.intellij.vcs.log.visible.VisiblePackRefresherImpl$MyTask.refresh(VisiblePackRefresherImpl.java:268)
at com.intellij.vcs.log.visible.VisiblePackRefresherImpl$MyTask.computeState(VisiblePackRefresherImpl.java:238)
at com.intellij.vcs.log.visible.VisiblePackRefresherImpl$MyTask.run(VisiblePackRefresherImpl.java:154)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:894)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:408)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.AssertionError: -1161946761 in C:\Users\mgosnell\.IntelliJIdea2019.2\system\vcs-log\index\55ce1f59.cdca5c95.renames-map.20.0.keystream
at com.intellij.util.io.PagedFileStorage.getByteBuffer(PagedFileStorage.java:179)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile$4.<init>(AppendableStorageBackedByResizableMappedFile.java:258)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile.buildOldComparerStream(AppendableStorageBackedByResizableMappedFile.java:254)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile.checkBytesAreTheSame(AppendableStorageBackedByResizableMappedFile.java:212)
at com.intellij.util.io.PersistentEnumeratorBase.isKeyAtIndex(PersistentEnumeratorBase.java:404)
at com.intellij.util.io.PersistentBTreeEnumerator.enumerateImpl(PersistentBTreeEnumerator.java:413)
at com.intellij.util.io.PersistentEnumeratorBase.doEnumerate(PersistentEnumeratorBase.java:290)
... 45 more

0
Comment actions Permalink

Marsh Gosnell

Please report a bug at https://youtrack.jetbrains.com/issues/IDEA and attach idea.log file, your environment details and steps were done to reproduce the issue. 

0
Comment actions Permalink

In my case, following the advice from Dmitriy Smirnov worked - after deleting the directory with IntelliJ closed, I've had no problems

0
Comment actions Permalink

Today I had the same problem in 2019.3.2. I tried to delete vcs-log and IDEA restart several times. But the problem doesn't disappear.

> Please report a bug at https://youtrack.jetbrains.com/issues/IDEA and attach idea.log file

Can you tell if there has been a bug reported? Search for the error message "vcs log was recreated ..." only found this closed issue from 2017. https://youtrack.jetbrains.com/issue/IDEA-176234

0
Comment actions Permalink

@Ms We recommend to create a new bug with log attached and steps done, because this is clearly a new issue. 

0

Please sign in to leave a comment.