Skip to content

com.intellij.psi.stubs.UpToDateStubIndexMismatch: PSI and index do not match.

I am seeing some exception reports in the Rider bugtracker without any further details, just the following.

Summary: Error during processing of: phantom_camera_host.gd

Description: JetBrains Rider 2024.3.4 Build RD-243.23654.126 Date 2025-01-20T03:33:00.000+0000

--- JAVA_EXCEPTION --- com.intellij.psi.stubs.UpToDateStubIndexMismatch: PSI and index do not match. Please report the problem to JetBrains with the files attached INDEXED VERSION IS THE CURRENT ONE file=GdScript File, file.class=class gdscript.psi.GdFile, file.lang=Language: GdScript, modStamp=1 tree consistent stub debugInfo=created in getStubTree(), with AST = false; with backReference viewProvider=com.intellij.psi.SingleRootFileViewProvider{vFile=file://FILE_PATH, vFileId=2863, content=VirtualFileContent{size=41540}, eventSystemEnabled=true} viewProvider stamp: 0; file stamp: 0; file modCount: 1737919544020; file length: 41540 doc saved: true; doc stamp: 0; doc size: 41540; committed: true indexing info: indexing timestamp = 1737919544020, binary = false, byte size = 41540, char size = 41540 ref: 50cf572587cf latestIndexedStub=StubTree{myDebugInfo='created from index; with backReference', myRoot=PsiFileStubImpl}734073144 same size=true debugInfo=created from index; with backReference at com.intellij.psi.stubs.StubTreeLoader.handleUpToDateMismatch(StubTreeLoader.java:226) at com.intellij.psi.stubs.StubTreeLoader.access100(StubTreeLoader.java:29) at com.intellij.psi.stubs.StubTreeLoaderStubTreeAndIndexUnmatchCoarseException.doCreateCompleteException(StubTreeLoader.java:218) at com.intellij.psi.stubs.StubTreeLoaderStubTreeAndIndexUnmatchCoarseException.lambdacreateCompleteException0(StubTreeLoader.java:194) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:749) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:705) at com.intellij.openapi.progress.impl.CoreProgressManager.lambdacomputeInNonCancelableSection4(CoreProgressManager.java:291) at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:114) at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:291) at com.intellij.psi.stubs.StubTreeLoaderStubTreeAndIndexUnmatchCoarseException.createCompleteException(StubTreeLoader.java:193) at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:242) at com.intellij.psi.impl.source.PsiFileImpl.calcTreeElement(PsiFileImpl.java:826) at com.intellij.psi.impl.source.PsiFileImpl.getNode(PsiFileImpl.java:1025) at com.intellij.psi.impl.source.PsiFileImpl.getNode(PsiFileImpl.java:54) at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsAtOffsets(LowLevelSearchUtil.java:173) at com.intellij.psi.impl.search.PsiSearchHelperImpl$6.execute(PsiSearchHelperImpl.java:1097) at com.intellij.psi.impl.search.PsiSearchHelperImpl$5.processInReadAction(PsiSearchHelperImpl.java:882) at com.intellij.psi.impl.search.PsiSearchHelperImpl5.processInReadAction(PsiSearchHelperImpl.java:872) at com.intellij.openapi.application.ReadActionProcessor.lambdaprocess0(ReadActionProcessor.java:11) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:272) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:262) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:864) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:66) at com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:11) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambdaprocessVirtualFile12(PsiSearchHelperImpl.java:652) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:333) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:972) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processVirtualFile(PsiSearchHelperImpl.java:617) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambdaprocessPsiFileRoots8(PsiSearchHelperImpl.java:478) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambdaprocessFilesConcurrentlyDespiteWriteActions10(PsiSearchHelperImpl.java:559) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.executeByImpatientReader(AnyThreadWriteThreadingSupport.kt:544) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:176) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambdaprocessFilesConcurrentlyDespiteWriteActions11(PsiSearchHelperImpl.java:558) at com.intellij.concurrency.ApplierCompleter.processArrayItem(ApplierCompleter.java:126) at com.intellij.concurrency.ApplierCompleter.processArray(ApplierCompleter.java:207) at com.intellij.concurrency.ApplierCompleter.helpOthers(ApplierCompleter.java:227) at com.intellij.concurrency.ApplierCompleter.helpAll(ApplierCompleter.java:186) at com.intellij.concurrency.ApplierCompleter.lambdaexec0(ApplierCompleter.java:116) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:351) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:972) at com.intellij.concurrency.ApplierCompleter.lambdawrapInReadActionAndIndicator2(ApplierCompleter.java:158) at com.intellij.openapi.progress.impl.CoreProgressManager.lambdaexecuteProcessUnderProgress14(CoreProgressManager.java:674) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:749) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:705) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:673) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79) at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:169) at com.intellij.concurrency.ApplierCompleter.wrapAndRun(ApplierCompleter.java:153) at com.intellij.concurrency.ApplierCompleter.exec(ApplierCompleter.java:118) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507) at java.base/java.util.concurrent.ForkJoinPoolWorkQueue.topLevelExec(ForkJoinPool.java:1491) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187) Caused by: java.lang.AssertionError: Stub count (119) doesn't match stubbed node length (120) at com.intellij.psi.impl.source.FileTrees.lambda$reconcilePsi$4(FileTrees.java:188) at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:547) at com.intellij.psi.impl.source.FileTrees.reconcilePsi(FileTrees.java:176) at com.intellij.psi.impl.source.FileTrees.withAst(FileTrees.java:142) at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:228) ... 43 more

last.action = GotoDeclaration

app.eap = false app.internal = false app.build = RD-243.23654.126 app.version.major = 2024 app.version.minor = 3.4 app.build.date = 2025-01-20T03:33:00.000+0000 app.build.date.release = 2024-11-13T00:00:00.000+0000 app.build.date.release = 2024-11-13T00:00:00.000+0000 app.product.code = RD

os.name = Linux os.cpu.arch = amd64 java.version = 21.0.5 java.vm.vendor = JetBrains s.r.o.

UIUtil.isRetina = false JBUI.isHiDPI() = false ImageScaleFactor = 1

netcore = true

.NET Core v8.0.11 x64 (Server GC)

Edited by Ivan Shakhov (van800)