jetbrains.mps.smodel.IllegalModelAccessError: You can read model only inside read actions

YouTrack | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    jetbrains.mps.smodel.IllegalModelAccessError exception in ChangesManager command queue

    YouTrack | 2 years ago
    jetbrains.mps.smodel.IllegalModelAccessError: You can read model only inside read actions

    Root Cause Analysis

    1. jetbrains.mps.smodel.IllegalModelAccessError

      You can read model only inside read actions

      at jetbrains.mps.smodel.ModelAccess.assertLegalRead()
    2. JetBrains mps
      SimpleCommandQueue$MyExecutorThread.run
      1. jetbrains.mps.smodel.ModelAccess.assertLegalRead(ModelAccess.java:145)
      2. jetbrains.mps.smodel.MPSModuleRepository.getModule(MPSModuleRepository.java:216)
      3. jetbrains.mps.smodel.ModuleRepositoryFacade.getModule(ModuleRepositoryFacade.java:72)
      4. jetbrains.mps.smodel.SModel.updateRefs(SModel.java:1066)
      5. jetbrains.mps.smodel.SModel.updateModuleReferences(SModel.java:1035)
      6. jetbrains.mps.smodel.DefaultSModelDescriptor.loadSModel(DefaultSModelDescriptor.java:89)
      7. jetbrains.mps.smodel.LazyEditableSModelBase$1.doLoad(LazyEditableSModelBase.java:42)
      8. jetbrains.mps.smodel.loading.UpdateableModel$1$1.compute(UpdateableModel.java:79)
      9. jetbrains.mps.smodel.loading.UpdateableModel$1$1.compute(UpdateableModel.java:76)
      10. jetbrains.mps.ide.undo.WorkbenchUndoHandler.runNonUndoableAction(WorkbenchUndoHandler.java:46)
      11. jetbrains.mps.smodel.UndoHelper.runNonUndoableAction(UndoHelper.java:61)
      12. jetbrains.mps.smodel.loading.UpdateableModel$1.compute(UpdateableModel.java:76)
      13. jetbrains.mps.smodel.loading.UpdateableModel$1.compute(UpdateableModel.java:73)
      14. jetbrains.mps.smodel.NodeReadAccessCasterInEditor.runReadTransparentAction(NodeReadAccessCasterInEditor.java:100)
      15. jetbrains.mps.smodel.loading.UpdateableModel.ensureLoadedTo(UpdateableModel.java:73)
      16. jetbrains.mps.smodel.loading.UpdateableModel.getModel(UpdateableModel.java:60)
      17. jetbrains.mps.smodel.LazyEditableSModelBase.load(LazyEditableSModelBase.java:87)
      18. jetbrains.mps.persistence.PersistenceUtil.loadModel(PersistenceUtil.java:64)
      19. jetbrains.mps.vcs.changesmanager.BaseVersionUtil.getBaseVersionModel(BaseVersionUtil.java:98)
      20. jetbrains.mps.vcs.changesmanager.ChangesTracking.update(ChangesTracking.java:168)
      21. jetbrains.mps.vcs.changesmanager.ChangesTracking.access$100(ChangesTracking.java:76)
      22. jetbrains.mps.vcs.changesmanager.ChangesTracking$2.run(ChangesTracking.java:138)
      23. jetbrains.mps.vcs.changesmanager.SimpleCommandQueue$MyExecutorThread.run(SimpleCommandQueue.java:76)
      23 frames