jetbrains.mps.smodel.IllegalModelAccessError

You can read model only inside read actions

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5

  • via GitHub by bkolb
    ,
  • Stack trace

    • jetbrains.mps.smodel.IllegalModelAccessError: You can read model only inside read actions at jetbrains.mps.smodel.WorkbenchModelAccess.checkReadAccess(WorkbenchModelAccess.java:473) at jetbrains.mps.smodel.ModelAccessBase.checkReadAccess(ModelAccessBase.java:38) at jetbrains.mps.smodel.ConceptDescendantsCache.getDirectDescendants(ConceptDescendantsCache.java:178) at jetbrains.mps.smodel.ConceptDescendantsCache.collectDescendants(ConceptDescendantsCache.java:187) at jetbrains.mps.smodel.ConceptDescendantsCache.getDescendants(ConceptDescendantsCache.java:173) at jetbrains.mps.findUsages.InstancesSearchType.search(InstancesSearchType.java:55) at jetbrains.mps.findUsages.FindUsagesManager.findUsages(FindUsagesManager.java:63) at jetbrains.mps.findUsages.FindUsagesManager.findInstances(FindUsagesManager.java:47) at jetbrains.mps.ide.script.plugin.migrationtool.MigrationScriptFinder.find(MigrationScriptFinder.java:53) at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.FinderNode.doGetResults(FinderNode.java:64) at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.BaseNode.getResults(BaseNode.java:92) at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.UnionNode.doGetResults(UnionNode.java:31) at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.BaseNode.getResults(BaseNode.java:92) at jetbrains.mps.ide.findusages.view.FindUtils.getSearchResults(FindUtils.java:76) at jetbrains.mps.ide.script.plugin.migrationtool.MigrationScriptsTool$1$1.run(MigrationScriptsTool.java:60) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:635) at com.intellij.openapi.progress.impl.CoreProgressManager$9.run(CoreProgressManager.java:384) at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:494) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$9(ApplicationImpl.java:555) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:308) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.