kstenschke / realigner-plugin

"Realigner" plugin for Jetbrains IDEs
http://plugins.intellij.net/plugin?pr=&pluginId=7082
Apache License 2.0
15 stars 1 forks source link

AWT events are not allowed inside write action #1

Closed nhat closed 6 years ago

nhat commented 6 years ago

When invoking split lines / join lines dialog the error appears although the task is executed properly.

AWT events are not allowed inside write action: sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=sun.lwawt.LWCursorManager$1@8a4d2f2,notifier=null,catchExceptions=false,when=1513188813025] on frame1 java.lang.Throwable: AWT events are not allowed inside write action: sun.awt.PeerEvent[INVOCATION_DEFAULT,runnable=sun.lwawt.LWCursorManager$1@8a4d2f2,notifier=null,catchExceptions=false,when=1513188813025] on frame1 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:136) at com.intellij.openapi.application.impl.NoSwingUnderWriteAction.a(NoSwingUnderWriteAction.java:36) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:377) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) at java.awt.Dialog.show(Dialog.java:1084) at java.awt.Component.show(Component.java:1679) at java.awt.Component.setVisible(Component.java:1631) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:1005) at com.kstenschke.realigner.utils.UtilsEnvironment.setDialogVisible(UtilsEnvironment.java:52) at com.kstenschke.realigner.actions.SplitAction.showOptionsDialog(SplitAction.java:316) at com.kstenschke.realigner.actions.SplitAction.access$100(SplitAction.java:45) at com.kstenschke.realigner.actions.SplitAction$1$1.run(SplitAction.java:79) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1003) at com.kstenschke.realigner.actions.SplitAction$1.run(SplitAction.java:71) at com.intellij.openapi.command.impl.CoreCommandProcessor.a(CoreCommandProcessor.java:149) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:109) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85) at com.kstenschke.realigner.actions.SplitAction.actionPerformed(SplitAction.java:69) at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237) at com.intellij.ide.actions.GotoActionAction.a(GotoActionAction.java:332) at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:111) at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120) at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:271) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:424) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407) 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.j(IdeEventQueue.java:822) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366) 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)

kstenschke commented 6 years ago

Thanks for reporting! This issue is resolved with commit af019d5f5ae80fbcfba14e4bfd32eb4427f4207d and the upcoming release 1.6.0.