holgerbrandl / r4intellij

An integration of the R programming language into Intellij IDEA
BSD 2-Clause "Simplified" License
148 stars 28 forks source link

Disable graphics tool window until it's functional #117

Open PikalaxALT opened 7 years ago

PikalaxALT commented 7 years ago

This comes shortly after updating PyCharm to 2017.2.


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.NON_MODAL=true}
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
    at com.intellij.openapi.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:230)
    at com.intellij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:73)
    at com.intellij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:100)
    at com.intellij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:368)
    at com.intellij.psi.impl.PsiManagerImpl.beforeChildAddition(PsiManagerImpl.java:237)
    at com.intellij.psi.impl.file.impl.PsiVFSListener$3.run(PsiVFSListener.java:170)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1031)
    at com.intellij.psi.impl.file.impl.PsiVFSListener.fileCreated(PsiVFSListener.java:143)
    at com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter.fireAfter(BulkVirtualFileListenerAdapter.java:80)
    at com.intellij.openapi.vfs.impl.BulkVirtualFileListenerAdapter.after(BulkVirtualFileListenerAdapter.java:56)
    at com.intellij.psi.impl.file.impl.PsiVFSListener$1.after(PsiVFSListener.java:98)
    at sun.reflect.GeneratedMethodAccessor56.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:117)
    at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:443)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:404)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:393)
    at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:374)
    at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:45)
    at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:231)
    at com.sun.proxy.$Proxy20.after(Unknown Source)
    at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.processEvents(PersistentFSImpl.java:774)
    at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.b(PersistentFSImpl.java:674)
    at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.createChildDirectory(PersistentFSImpl.java:428)
    at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.createChildDirectory(VirtualFileSystemEntry.java:292)
    at com.r4intellij.run.graphics.RGraphicsUtils$2.run(RGraphicsUtils.java:222)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1031)
    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:573)
    at com.intellij.openapi.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.java:407)
    at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.e(RequestFocusInToolWindowCmd.java:73)
    at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.b(RequestFocusInToolWindowCmd.java:61)
    at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:100)
    at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:111)
    at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.run(RequestFocusInToolWindowCmd.java:61)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddDockedComponentCmd.run(ToolWindowsPane.java:767)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.wm.impl.CommandProcessor.a(CommandProcessor.java:93)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:74)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    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:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.i(IdeEventQueue.java:821)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    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)```
holgerbrandl commented 7 years ago

Once or reproducibly? If the latter, how?

G-Rath commented 5 years ago

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 :)

holgerbrandl commented 5 years ago

Graphics are not functional at the moment, because we could not find a good way to capture/redirect the graphics device.

G-Rath commented 5 years ago

Maybe then that toolbar should be disabled until the feature is supported?

holgerbrandl commented 5 years ago

Indeed the tool window should be disabled until we can restore the feature. I'll update the ticket title accordingly.