{"action":"created","issue":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/436","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/436/comments","events_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/436/events","html_url":"https://github.com/NetLogo/NetLogo/issues/436","id":19775882,"number":436,"title":"IllegalComponentStateException when right-clicking while dragging a widget","user":{"login":"nicolaspayette","id":908754,"avatar_url":"https://avatars.githubusercontent.com/u/908754?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaspayette","html_url":"https://github.com/nicolaspayette","followers_url":"https://api.github.com/users/nicolaspayette/followers","following_url":"https://api.github.com/users/nicolaspayette/following{/other_user}","gists_url":"https://api.github.com/users/nicolaspayette/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaspayette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaspayette/subscriptions","organizations_url":"https://api.github.com/users/nicolaspayette/orgs","repos_url":"https://api.github.com/users/nicolaspayette/repos","events_url":"https://api.github.com/users/nicolaspayette/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaspayette/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NetLogo/NetLogo/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/2","html_url":"https://github.com/NetLogo/NetLogo/milestones/5.x","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/2/labels","id":51039,"number":2,"title":"5.x","description":"","creator":{"login":"SethTisue","id":161079,"avatar_url":"https://avatars.githubusercontent.com/u/161079?v=3","gravatar_id":"","url":"https://api.github.com/users/SethTisue","html_url":"https://github.com/SethTisue","followers_url":"https://api.github.com/users/SethTisue/followers","following_url":"https://api.github.com/users/SethTisue/following{/other_user}","gists_url":"https://api.github.com/users/SethTisue/gists{/gist_id}","starred_url":"https://api.github.com/users/SethTisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SethTisue/subscriptions","organizations_url":"https://api.github.com/users/SethTisue/orgs","repos_url":"https://api.github.com/users/SethTisue/repos","events_url":"https://api.github.com/users/SethTisue/events{/privacy}","received_events_url":"https://api.github.com/users/SethTisue/received_events","type":"User","site_admin":false},"open_issues":70,"closed_issues":0,"state":"open","created_at":"2011-10-29T18:57:22Z","updated_at":"2015-03-05T19:38:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2013-09-19T19:23:20Z","updated_at":"2015-03-06T20:43:56Z","closed_at":null,"body":"To reproduce:\r\n- select any widget in a NetLogo model\r\n- start dragging it across the screen\r\n- right-click while still dragging\r\n\r\nOnly tested on Linux with 5.0.4 and 5.0.5RC1.\r\n\r\nHere is the stack trace:\r\n```\r\nNetLogo is unable to supply you with more details about this error.  Please report the problem\r\nat https://github.com/NetLogo/NetLogo/issues, or to bugs@ccl.northwestern.edu, and paste the\r\ncontents of this window into your report.\r\n\r\njava.awt.IllegalComponentStateException: component must be showing on the screen to determine its location\r\n at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1964)\r\n at java.awt.Component.getLocationOnScreen(Component.java:1938)\r\n at javax.swing.JPopupMenu.show(JPopupMenu.java:887)\r\n at org.nlogo.swing.WrappingPopupMenu.show(WrappingPopupMenu.java:21)\r\n at org.nlogo.app.WidgetWrapper.doPopup(WidgetWrapper.java:864)\r\n at org.nlogo.app.WidgetWrapper.mousePressed(WidgetWrapper.java:478)\r\n at java.awt.Component.processMouseEvent(Component.java:6285)\r\n at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)\r\n at java.awt.Component.processEvent(Component.java:6053)\r\n at java.awt.Container.processEvent(Container.java:2041)\r\n at java.awt.Component.dispatchEventImpl(Component.java:4651)\r\n at java.awt.Container.dispatchEventImpl(Container.java:2099)\r\n at java.awt.Component.dispatchEvent(Component.java:4481)\r\n at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)\r\n at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)\r\n at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)\r\n at java.awt.Container.dispatchEventImpl(Container.java:2085)\r\n at java.awt.Window.dispatchEventImpl(Window.java:2478)\r\n at java.awt.Component.dispatchEvent(Component.java:4481)\r\n at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)\r\n at java.awt.EventQueue.access$000(EventQueue.java:84)\r\n at java.awt.EventQueue$1.run(EventQueue.java:602)\r\n at java.awt.EventQueue$1.run(EventQueue.java:600)\r\n at java.security.AccessController.doPrivileged(Native Method)\r\n at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)\r\n at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)\r\n at java.awt.EventQueue$2.run(EventQueue.java:616)\r\n at java.awt.EventQueue$2.run(EventQueue.java:614)\r\n at java.security.AccessController.doPrivileged(Native Method)\r\n at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)\r\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)\r\n at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)\r\n at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)\r\n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)\r\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)\r\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)\r\n at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)\r\n\r\nNetLogo 5.0.5-RC1\r\nmain: org.nlogo.app.AppFrame\r\nthread: AWT-EventQueue-0\r\nJava HotSpot(TM) 64-Bit Server VM 1.6.0_26 (Sun Microsystems Inc.; 1.6.0_26-b03)\r\noperating system: Linux 3.8.0-30-generic (amd64 processor)\r\nScala version 2.9.2\r\nJOGL: (3D View not initialized)\r\nOpenGL Graphics: (3D View not initialized)\r\nmodel: simsci\r\n\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0\r\n03:15:33.643 InterfaceGlobalEvent (org.nlogo.widget.SwitchWidget) AWT-EventQueue-0\r\n```"},"comment":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/comments/77632137","html_url":"https://github.com/NetLogo/NetLogo/issues/436#issuecomment-77632137","issue_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/436","id":77632137,"user":{"login":"fetr0509","id":9339714,"avatar_url":"https://avatars.githubusercontent.com/u/9339714?v=3","gravatar_id":"","url":"https://api.github.com/users/fetr0509","html_url":"https://github.com/fetr0509","followers_url":"https://api.github.com/users/fetr0509/followers","following_url":"https://api.github.com/users/fetr0509/following{/other_user}","gists_url":"https://api.github.com/users/fetr0509/gists{/gist_id}","starred_url":"https://api.github.com/users/fetr0509/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fetr0509/subscriptions","organizations_url":"https://api.github.com/users/fetr0509/orgs","repos_url":"https://api.github.com/users/fetr0509/repos","events_url":"https://api.github.com/users/fetr0509/events{/privacy}","received_events_url":"https://api.github.com/users/fetr0509/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T20:43:56Z","updated_at":"2015-03-06T20:43:56Z","body":"More specifically on windows having an interface item selected and then right clicking on it followed by left clicking on it without releasing the right mouse button (no dragging required) will throw a similar Exception.\r\n\r\n\\\\\\\\\\\\\r\nWindows 7 professional\r\nNetlogo 5.1.0\r\n\\\\\\\\\\\r\n\r\nNetLogo is unable to supply you with more details about this error.  Please report the problem\r\nat https://github.com/NetLogo/NetLogo/issues, or to bugs@ccl.northwestern.edu, and paste the\r\ncontents of this window into your report.\r\n\r\njava.awt.IllegalComponentStateException: component must be showing on the screen to determine its location\r\n at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1971)\r\n at java.awt.Component.getLocationOnScreen(Component.java:1945)\r\n at javax.swing.JPopupMenu.show(JPopupMenu.java:887)\r\n at org.nlogo.swing.WrappingPopupMenu.show(WrappingPopupMenu.java:21)\r\n at org.nlogo.app.WidgetWrapper.doPopup(WidgetWrapper.java:864)\r\n at org.nlogo.app.WidgetWrapper.mouseReleased(WidgetWrapper.java:581)\r\n at java.awt.Component.processMouseEvent(Component.java:6297)\r\n at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)\r\n at java.awt.Component.processEvent(Component.java:6062)\r\n at java.awt.Container.processEvent(Container.java:2039)\r\n at java.awt.Component.dispatchEventImpl(Component.java:4660)\r\n at java.awt.Container.dispatchEventImpl(Container.java:2097)\r\n at java.awt.Component.dispatchEvent(Component.java:4488)\r\n at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)\r\n at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)\r\n at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)\r\n at java.awt.Container.dispatchEventImpl(Container.java:2083)\r\n at java.awt.Window.dispatchEventImpl(Window.java:2489)\r\n at java.awt.Component.dispatchEvent(Component.java:4488)\r\n at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:674)\r\n at java.awt.EventQueue.access$400(EventQueue.java:81)\r\n at java.awt.EventQueue$2.run(EventQueue.java:633)\r\n at java.awt.EventQueue$2.run(EventQueue.java:631)\r\n at java.security.AccessController.doPrivileged(Native Method)\r\n at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)\r\n at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)\r\n at java.awt.EventQueue$3.run(EventQueue.java:647)\r\n at java.awt.EventQueue$3.run(EventQueue.java:645)\r\n at java.security.AccessController.doPrivileged(Native Method)\r\n at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)\r\n at java.awt.EventQueue.dispatchEvent(EventQueue.java:644)\r\n at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)\r\n at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)\r\n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)\r\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)\r\n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)\r\n at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)\r\n\r\nNetLogo 5.1.0\r\nmain: org.nlogo.app.AppFrame\r\nthread: AWT-EventQueue-0\r\nJava HotSpot(TM) Server VM 1.6.0_45 (Sun Microsystems Inc.; 1.6.0_45-b06)\r\noperating system: Windows 7 6.1 (x86 processor)\r\nScala version 2.9.2\r\nJOGL: (3D View not initialized)\r\nOpenGL Graphics: (3D View not initialized)\r\nmodel: Complex World States\r\n\r\n12:41:11.089 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n12:41:11.088 InterfaceGlobalEvent (org.nlogo.window.InputBoxWidget) AWT-EventQueue-0\r\n12:41:11.088 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n12:41:11.088 InterfaceGlobalEvent (org.nlogo.window.ChooserWidget) AWT-EventQueue-0\r\n12:41:11.088 InterfaceGlobalEvent (org.nlogo.window.ChooserWidget) AWT-EventQueue-0\r\n12:41:11.088 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0\r\n12:41:10.890 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n12:41:10.890 InterfaceGlobalEvent (org.nlogo.window.InputBoxWidget) AWT-EventQueue-0\r\n12:41:10.890 InterfaceGlobalEvent (org.nlogo.app.InterfacePanel$2 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0\r\n12:41:10.890 InterfaceGlobalEvent (org.nlogo.window.ChooserWidget) AWT-EventQueue-0\r\n"}}