Skip to content

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Index data initialization failed #4320

@mpapini

Description

@mpapini

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

PyCharm 2025.3 (build PY-253.28294.336)

Operating System

Windows 11.0 (amd64)

TeXiFy IDEA version

0.11.5

Description

Stacktrace

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Index data initialization failed
	at com.intellij.util.ExceptionUtil.rethrow(ExceptionUtil.java:147)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.awaitWithCheckCanceled(ProgressIndicatorUtils.java:402)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.awaitWithCheckCanceled(ProgressIndicatorUtils.java:363)
	at com.intellij.util.indexing.RegisteredIndexes.waitUntilIndicesAreInitialized(RegisteredIndexes.java:115)
	at com.intellij.util.indexing.FileBasedIndexImpl.waitUntilIndicesAreInitialized(FileBasedIndexImpl.java:451)
	at com.intellij.psi.stubs.StubIndexImpl.getAsyncState(StubIndexImpl.java:88)
	at com.intellij.psi.stubs.StubIndexImpl.getIndex(StubIndexImpl.java:226)
	at com.intellij.psi.stubs.StubIndexEx.processElements(StubIndexEx.java:139)
	at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:101)
	at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:90)
	at nl.hannahsten.texifyidea.index.StringStubIndexWrapper.getByName(StubIndexWrapper.kt:33)
	at nl.hannahsten.texifyidea.index.StringStubIndexWrapper.getByName$default(StubIndexWrapper.kt:29)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure.getPossibleRootFiles(LatexProjectStructure.kt:352)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure.buildFilesets(LatexProjectStructure.kt:855)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure.access$buildFilesets(LatexProjectStructure.kt:332)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure.buildFilesetsSuspend$lambda$24(LatexProjectStructure.kt:919)
	at com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:111)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable$lambda$0(InternalReadAction.kt:101)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$0$0$0(cancellableReadAction.kt:32)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:902)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1237)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$0$0(cancellableReadAction.kt:30)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:73)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:152)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$0(cancellableReadAction.kt:28)
	at com.intellij.concurrency.ThreadContext.installThreadContext(threadContext.kt:305)
	at com.intellij.concurrency.ThreadContext.installThreadContext$default(threadContext.kt:303)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:24)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:100)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:86)
	at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:73)
	at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:15)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invokeSuspend(InternalReadAction.kt:52)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:44)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.openapi.application.rw.InternalReadAction.runReadAction(InternalReadAction.kt:50)
	at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeReadAction(PlatformReadWriteActionSupport.kt:66)
	at com.intellij.openapi.application.ReadWriteActionSupport.executeReadAction$default(ReadWriteActionSupport.kt:15)
	at com.intellij.openapi.application.CoroutinesKt.constrainedReadAction(coroutines.kt:60)
	at com.intellij.openapi.application.CoroutinesKt.smartReadAction(coroutines.kt:38)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure.buildFilesetsSuspend(LatexProjectStructure.kt:917)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure.access$buildFilesetsSuspend(LatexProjectStructure.kt:332)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure$getFilesets$1.invoke(LatexProjectStructure.kt:944)
	at nl.hannahsten.texifyidea.index.LatexProjectStructure$getFilesets$1.invoke(LatexProjectStructure.kt:944)
	at nl.hannahsten.texifyidea.util.GenericCacheService.computeOrSkip(GenericCacheService.kt:304)
	at nl.hannahsten.texifyidea.util.GenericCacheService$scheduleComputation$1.invokeSuspend(GenericCacheService.kt:273)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:610)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runDefaultDispatcherTask(CoroutineScheduler.kt:1194)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:906)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:775)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:762)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [Kernel@nhh7504f9hubo0v0j

Metadata

Metadata

Assignees

No one assigned

    Labels

    crash-reportReports of crashes that popped up in IDEA.untriagedIssue type still needs to be triaged or verified.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions