2024 version seems to be unstable for me, i’ve bee...
# intellij
i
2024 version seems to be unstable for me, i’ve been experiencing frequent crashes. anybody else experiencing the same? Full disclosure, i’m doing plugin dev and using the deprecated Rust plugin but i don’t know if that’s the cause
Copy code
2024-04-13 03:39:17,347 [4569256] SEVERE - #c.i.l.f.LanguageFolding - Folding descriptor (7,204) for AST: Element(IMPORT_LIST), containing PSI element IMPORT_LIST of class org.jetbrains.kotlin.psi.KtImportList, provided by org.jetbrains.kotlin.idea.KotlinFoldingBuilder@57243ca2 (class org.jetbrains.kotlin.idea.KotlinFoldingBuilder) must belong to the file KtFile: fragment.kt, but got: KtFile: imports_for_codeFragment.kt [Plugin: org.jetbrains.kotlin]
com.intellij.diagnostic.PluginException: Folding descriptor (7,204) for AST: Element(IMPORT_LIST), containing PSI element IMPORT_LIST of class org.jetbrains.kotlin.psi.KtImportList, provided by org.jetbrains.kotlin.idea.KotlinFoldingBuilder@57243ca2 (class org.jetbrains.kotlin.idea.KotlinFoldingBuilder) must belong to the file KtFile: fragment.kt, but got: KtFile: imports_for_codeFragment.kt [Plugin: org.jetbrains.kotlin]
	at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
	at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:100)
	at com.intellij.lang.folding.CompositeFoldingBuilder.assertSameFile(CompositeFoldingBuilder.java:60)
	at com.intellij.lang.folding.CompositeFoldingBuilder.buildFoldRegions(CompositeFoldingBuilder.java:43)
	at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptorsNoPlaceholderCaching(LanguageFolding.java:90)
	at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:72)
	at com.intellij.codeInsight.folding.impl.FoldingUpdate.getFoldingsFor(FoldingUpdate.java:272)
	at com.intellij.codeInsight.folding.impl.FoldingUpdate.getFoldingsFor(FoldingUpdate.java:240)
	at com.intellij.codeInsight.folding.impl.FoldingUpdate.getUpdateResult(FoldingUpdate.java:89)
	at com.intellij.codeInsight.folding.impl.FoldingUpdate.lambda$updateFoldRegions$0(FoldingUpdate.java:78)
	at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.kt:40)
	at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:236)
	at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:43)
	at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:236)
	at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111)
	at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
	at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:66)
	at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
	at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.kt:34)
	at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:83)
	at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:75)
	at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegions(CodeFoldingManagerImpl.java:254)
	at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegionsAsync(CodeFoldingManagerImpl.java:241)
	at com.intellij.codeInsight.folding.impl.CodeFoldingPass.doCollectInformation(CodeFoldingPass.java:31)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:55)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:418)
	at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.runWithSpanIgnoreThrows(trace.kt:109)
	at com.intellij.platform.diagnostic.telemetry.helpers.TraceUtil.runWithSpanThrows(TraceUtil.java:34)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$3(PassExecutorService.java:413)
	at com.intellij.openapi.application.impl.RwLockHolder.tryRunReadAction(RwLockHolder.kt:310)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:958)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$4(PassExecutorService.java:404)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:403)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:379)
	at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.cacheFileTypesInside(FileTypeManagerImpl.java:795)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$1(PassExecutorService.java:379)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:199)
	at com.intellij.openapi.application.impl.RwLockHolder.executeByImpatientReader(RwLockHolder.kt:491)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:182)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:377)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:190)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: java.lang.IllegalStateException: Folding descriptor (7,204) for AST: Element(IMPORT_LIST), containing PSI element IMPORT_LIST of class org.jetbrains.kotlin.psi.KtImportList, provided by org.jetbrains.kotlin.idea.KotlinFoldingBuilder@57243ca2 (class org.jetbrains.kotlin.idea.KotlinFoldingBuilder) must belong to the file KtFile: fragment.kt, but got: KtFile: imports_for_codeFragment.kt
	at com.intellij.lang.folding.CompositeFoldingBuilder.assertSameFile(CompositeFoldingBuilder.java:62)
	... 48 more
2024-04-13 03:39:17,348 [4569257] SEVERE - #c.i.l.f.LanguageFolding - IntelliJ IDEA 2024.1  Build #IU-241.14494.240
2024-04-13 03:39:17,348 [4569257] SEVERE - #c.i.l.f.LanguageFolding - JDK: 17.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-04-13 03:39:17,348 [4569257] SEVERE - #c.i.l.f.LanguageFolding - OS: Mac OS X
2024-04-13 03:39:17,348 [4569257] SEVERE - #c.i.l.f.LanguageFolding - Plugin to blame: Kotlin version: 241.14494.240-IJ
2024-04-13 03:39:17,348 [4569257] SEVERE - #c.i.l.f.LanguageFolding - Last Action: EditorChooseLookupItem
r
Crashes twice a day for me doing Kotlin dev. I do have 3rd party plugins, but I think it’s the 2024.1 upgrade.
a
Running an older version of MacOS Sonoma maybe?
r
No, I’m up to date on macOS
JetBrains Toolbox is no longer crashing, so it’s not the macOS JVM bug
👍 1
i
For me it crashes sometime when I’m not even using it, it’s just open in the background and then I come back and it’s gone