Open PikalaxALT opened 7 years ago
Once or reproducibly? If the latter, how?
I've got it:
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.
current modality=ModalityState.NON_MODAL
known modalities:
ModalityState:{}, writingAllowed=true;
ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog1,4837,603,566x194,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Copy,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]]}, writingAllowed=true;
ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog2,4837,586,566x228,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Move,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]]}, writingAllowed=true;
ModalityState:{}, writingAllowed=true;
ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog3,4713,358,970x684,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Project Structure,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]]}, writingAllowed=true;
ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog4,4837,586,566x228,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Move,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]]}, writingAllowed=true;
ModalityState:{[com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog5,4837,586,566x228,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Move,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]]}, writingAllowed=true;
ModalityState.NON_MODAL, writingAllowed=true
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
at com.intellij.openapi.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:232)
at com.intellij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:94)
at com.intellij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:102)
at com.intellij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:119)
at com.intellij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:344)
at com.intellij.psi.impl.PsiManagerImpl.beforeChildAddition(PsiManagerImpl.java:208)
at com.intellij.psi.impl.file.impl.PsiVFSListener.lambda$fileCreated$1(PsiVFSListener.java:132)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1054)
at com.intellij.psi.impl.file.impl.PsiVFSListener.fileCreated(PsiVFSListener.java:119)
at com.intellij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.java:707)
at one.util.streamex.CollapseSpliterator.accept(CollapseSpliterator.java:150)
at one.util.streamex.CollapseSpliterator.forEachRemaining(CollapseSpliterator.java:140)
at one.util.streamex.AbstractStreamEx.forEach(AbstractStreamEx.java:306)
at com.intellij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.java:684)
at com.intellij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.java:673)
at com.intellij.psi.impl.file.impl.PsiVFSListener$2.after(PsiVFSListener.java:106)
at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:393)
at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:354)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:343)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:320)
at com.intellij.util.messages.impl.MessageBusImpl.access$100(MessageBusImpl.java:29)
at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:192)
at com.sun.proxy.$Proxy26.after(Unknown Source)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.processEvent(PersistentFSImpl.java:687)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.createChildDirectory(PersistentFSImpl.java:429)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.createChildDirectory(VirtualFileSystemEntry.java:269)
at com.r4intellij.run.graphics.RGraphicsUtils$2.run(RGraphicsUtils.java:222)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1054)
at com.r4intellij.run.graphics.RGraphicsUtils.createSnapshotDir(RGraphicsUtils.java:216)
at com.r4intellij.run.graphics.RGraphicsUtils.getSnapshotDir(RGraphicsUtils.java:187)
at com.r4intellij.run.graphics.RGraphicsUtils.getSnapshotDir(RGraphicsUtils.java:159)
at com.r4intellij.run.graphics.RGraphicsUtils.getGraphicsState(RGraphicsUtils.java:88)
at com.r4intellij.run.graphics.RGraphicsToolWindowFactory.createToolWindowContent(RGraphicsToolWindowFactory.java:17)
at com.intellij.openapi.wm.impl.ToolWindowImpl.ensureContentInitialized(ToolWindowImpl.java:533)
at com.intellij.openapi.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.java:356)
at com.intellij.openapi.wm.impl.content.ContentTabLabel.contentManager(ContentTabLabel.java:355)
at com.intellij.openapi.wm.impl.content.ContentTabLabel.isSelected(ContentTabLabel.java:338)
at com.intellij.openapi.wm.impl.content.ContentTabLabel._getGraphics(ContentTabLabel.java:347)
at com.intellij.openapi.wm.impl.content.BaseLabel.paintComponent(BaseLabel.java:84)
at com.intellij.openapi.wm.impl.content.ContentTabLabel.paintComponent(ContentTabLabel.java:333)
at javax.swing.JComponent.paint(JComponent.java:1057)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at com.intellij.openapi.wm.impl.content.ToolWindowContentUi.paintChildren(ToolWindowContentUi.java:255)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at com.intellij.openapi.wm.impl.ToolWindowHeader.paintChildren(ToolWindowHeader.java:305)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
at javax.swing.JComponent.paintChildren(JComponent.java:890)
at javax.swing.JComponent.paint(JComponent.java:1066)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5211)
at javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1620)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1595)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1532)
at javax.swing.RepaintManager.paint(RepaintManager.java:1299)
at javax.swing.JComponent._paintImmediately(JComponent.java:5159)
at javax.swing.JComponent.paintImmediately(JComponent.java:4970)
at javax.swing.RepaintManager$4.run(RepaintManager.java:848)
at javax.swing.RepaintManager$4.run(RepaintManager.java:829)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:829)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:804)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:753)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:71)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1867)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:747)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:696)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
It happens the first time I open the R Graphics
tab on a project (per project window).
IntelliJ IDEA 2019.1 (Ultimate Edition) Build #IU-191.6183.87, built on March 27, 2019 Licensed to Gareth Jones Subscription is active until June 22, 2019 JRE: 1.8.0_202-release-1483-b39 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0
Let me know what more information I can provide to help :)
Graphics are not functional at the moment, because we could not find a good way to capture/redirect the graphics device.
Maybe then that toolbar should be disabled until the feature is supported?
Indeed the tool window should be disabled until we can restore the feature. I'll update the ticket title accordingly.
This comes shortly after updating PyCharm to 2017.2.