MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

IDE Internal Error: Write-unsafe context! Model changes are allowed from write-safe contexts only

Open pamquale opened this issue 1 year ago • 6 comments

Minecraft Development for IntelliJ plugin version

2024.3-1.8.2-535

IntelliJ version

2024.3

Operating System

Windows 11

Target platform

Fabric

Description of the bug

How I faced this bug:

  1. Pressing a button to create a new project
  2. Closing this window And then I can see the error at the down right corner. Even if I will try to continue creating the project I will not be able to do so. It will only create a directory.
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.

By the way, I've got 4 IDE internal errors, but all of them has the same head.

Yes, this is a duplicate question, but this answer did not helped me out.

What I've tried:

  • Reinstalling the Intellij IDEA
  • Reinstalling the plugin (Minecraft development plugin)
  • Turning on the nightly builds as suggested to the same issue
  • Attempted to run IntelliJ IDEA as an administrator.

pamquale avatar Dec 22 '24 17:12 pamquale

This text was copied from my stack overflow question

pamquale avatar Dec 22 '24 17:12 pamquale

Why was this closed as completed without a solution to it? I'm having the same problem right now too.

jacobh12349 avatar Mar 27 '25 06:03 jacobh12349

Why was this closed as completed without a solution to it? I'm having the same problem right now too.

@jacobh12349 Ask the issue author, we didn't close it

Earthcomputer avatar Mar 28 '25 00:03 Earthcomputer

This will probably send the author a notification

jacobh12349 avatar Mar 28 '25 11:03 jacobh12349

if not, then @pamquale

jacobh12349 avatar Mar 28 '25 11:03 jacobh12349

This happened to me a few times, but it seemed to stop and I can't tell if it is because I changed something. My system is the same as the author's, except that my IntelliJ is 2024.3.5

ninjaguardian avatar Apr 08 '25 04:04 ninjaguardian