UI issue: Giant green box

Issue #533 resolved
Derek Wiers created an issue

The attached screenshot says it all: when I have the Anonymous window left open for a long time (I think this happens for the query editor as well), and the window loses focus and regains it, the computer sleeps, etc - when I come back to the window, the actual editor windows where you would type the anonymous code or soql query are this giant block of green. It should be noted that I'm on a mac and green is my "select" color (like when I select text), although I'm not sure this matches that color. I can't click it to make it go away, or type or anything. The debug window/soql results window is still active and works as expected with filtering and scrolling. There's a super easy workaround with it - just close and reopen the tool window. Since the code and the log are persistent, this has no side effects.

Just sharing it because it's really friggin' weird!

Comments (14)

  1. Scott Wells repo owner

    That's a feature! Do you know any other IDE that gives you a Giant Green Box (trademark pending) intermittently to add a little color to your day?!

    On a serious note, my guess is that there's likely an exception in idea.log relating to this. If I had to hazard a more specific guess, I'd say that the editor component that I use has been disposed by the IDE for some reason. If you don't mind shooting over any seemingly related stack trace I'll see if I can figure out what's going on.

  2. Scott Wells repo owner

    If it makes you feel any better, this happened to me today as well! I also managed to grab a debug log. I'll see what I can do to avoid the problem altogether even though the workaround is simple. It's still ugly and disconcerting!

  3. Scott Wells repo owner

    Here's the stack trace from when it happened to me:

    2017-02-21 14:25:35,353 [1887995]  ERROR - api.util.objectTree.ObjectNode - Editor of class com.intellij.openapi.editor.impl.EditorImpl hasn't been released: 
    com.intellij.openapi.util.TraceableDisposable.ObjectNotDisposedException: See stack trace responsible for creation of unreleased object below 
        at com.intellij.openapi.editor.impl.EditorImpl.<init>(EditorImpl.java:153)
        at com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:203)
        at com.intellij.openapi.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:196)
        at com.intellij.codeInspection.ui.InspectionResultsView.a(InspectionResultsView.java:623)
        at com.intellij.codeInspection.ui.InspectionResultsView.a(InspectionResultsView.java:567)
        at com.intellij.codeInspection.ui.InspectionResultsView.syncRightPanel(InspectionResultsView.java:510)
        at com.intellij.codeInspection.ui.InspectionResultsView$4.valueChanged(InspectionResultsView.java:280)
        at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
        at com.intellij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(Tree.java:643)
        at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
        at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294)
        at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188)
        at javax.swing.JTree.setSelectionPath(JTree.java:1634)
        at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2393)
        at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3609)
        at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3548)
        at com.intellij.util.ui.MouseEventAdapter.mousePressed(MouseEventAdapter.java:43)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
        at java.awt.Component.processMouseEvent(Component.java:6532)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
        at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:410)
        at java.awt.Component.processEvent(Component.java:6300)
        at java.awt.Container.processEvent(Container.java:2236)
        at java.awt.Component.dispatchEventImpl(Component.java:4891)
        at java.awt.Container.dispatchEventImpl(Container.java:2294)
        at java.awt.Component.dispatchEvent(Component.java:4713)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
        at java.awt.Container.dispatchEventImpl(Container.java:2280)
        at java.awt.Window.dispatchEventImpl(Window.java:2750)
        at java.awt.Component.dispatchEvent(Component.java:4713)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.awt.EventQueue$4.run(EventQueue.java:731)
        at java.awt.EventQueue$4.run(EventQueue.java:729)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
        at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:843)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:675)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
        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)
    
  4. Willem Mulder

    I have the same thing happening multiple times during the day. Minor thing really, but still one of these things that start to bother if it happens constantly :-)

  5. Scott Wells repo owner

    Good to know that it's happening with some frequency....well, not "good" to know exactly, but I'd rather than know than not be told and have it become a major point of frustration silently! Willem, are you aware of any particular type of behavior you might associate with the higher frequency for you, e.g., frequently switching projects or similar?

  6. Willem Mulder

    Hi Scott, I guess that's when I'm switching projects, yes. That happens multiple times during the day, usually.

    But I'm not exactly sure and have not had that particular issue today either. Will let you know if it happens again and I can pinpoint it!

  7. Willem Mulder

    Happened right now. I had two projects open:

    • Project A with the Anonymous Apex bar open
    • Project B (without an Anonymous Apex bar)

    Then when I closed Project B, the Anonymous Apex bar of Project A went green. I don't know if that helps any :-)

  8. Scott Wells repo owner

    Thanks, Willem. That almost certainly does help. My guess is that something is being shared across projects that shouldn't be. Hopefully this will help me debug and resolve it quickly.

  9. Scott Wells repo owner

    Okay, I have this consistently reproducible now. Hopefully I'll be able to produce a fix for the next build.

  10. Log in to comment