microsoft / microsoft/azure-tools-for-java
[IntelliJ] Uncaught Exception 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 document
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
IntelliJ build version: 2026.1 IU-261.22158.277
OS: Linux
JDK: JetBrains s.r.o. 25.0.2
Plugin version: 3.97.5-2026.1
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,0,0,2560x1413,layout=com.intellij.openapi.wm.impl.IdeRootPane$CustomHeaderRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=null, throwable=java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using <REDACTED: user-file-path> with a correct modality state (not "any"). See TransactionGuard documentation for details.
current modality=ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog6,3435,391,800x625,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Plugin Updates,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]], [com.intellij.openapi.progress.impl.JobProviderWithOwnerContext@669e1466]}
``
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the exception on Linux with IntelliJ 2026.1, JDK 25.0.2, and plugin version 3.97.5 while the Plugin Updates dialog is open. Capture the full stack trace and identify the plugin entry point involved in the write-unsafe context; done means the same action no longer reports the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100