getappmap / appmap-intellij-plugin

MIT License
38 stars 9 forks source link

com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details #712

Closed karanaror01 closed 6 months ago

karanaror01 commented 6 months ago
Name Value
Plugin appland.appmap
Version 0.51.0
IDE IC-233.14475.28
OS Mac OS X 14.4.1
Last action Terminal.NewTab

Description

Stacktrace

com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details
Current thread: Thread[ApplicationImpl pooled thread 2111,4,main] 1231202253 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 2057785615
    at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:149)
    at com.intellij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:107)
    at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1012)
    at appland.index.IndexUtil.findAppMapIndexDirectories(IndexUtil.java:52)
    at appland.index.AppMapIndexedRootsSetContributor.getAdditionalProjectRootsToIndex(AppMapIndexedRootsSetContributor.java:26)
    at com.intellij.util.indexing.ReincludedRootsUtil$CustomizableRootsBuilder.createBuildersFromFilesFromIndexableSetContributors(ReincludedRootsUtil.java:292)
    at com.intellij.util.indexing.ReincludedRootsUtil$CustomizableRootsBuilder.createAllBuilders(ReincludedRootsUtil.java:338)
    at com.intellij.util.indexing.ReincludedRootsUtil.createBuildersForReincludedFiles(ReincludedRootsUtil.java:56)
    at com.intellij.util.indexing.roots.WorkspaceIndexingRootsBuilder.createBuilders(IndexingRootsCollectionUtil.kt:260)
    at com.intellij.util.indexing.EntityIndexingServiceImpl.getBuildersOnWorkspaceChange(EntityIndexingServiceImpl.java:196)
    at com.intellij.util.indexing.EntityIndexingServiceImpl.doIndexChanges(EntityIndexingServiceImpl.java:108)
    at com.intellij.util.indexing.EntityIndexingServiceImpl.lambda$indexChanges$0(EntityIndexingServiceImpl.java:67)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:840)
jansorg commented 6 months ago

Duplicate of https://github.com/getappmap/appmap-intellij-plugin/issues/711