Currently Being Moderated

[Mac] IntelliJ IDEA may hang when accessing the screen menu

VERSION 4

Created on: Nov 25, 2009 4:27 PM by Serge Baranov - Last Modified:  Sep 7, 2011 2:52 PM by Serge Baranov

IntelliJ IDEA (and other IntelliJ IDEA Platform based products such as RubyMine and Web IDE) may hang on Mac OS X when you access the screen menu. Thread dump shows the following:

 

"AWT-EventQueue-1 9.0#IU-92.35, eap:true"
     at apple.awt.CGlobalCursorManager.findHeavyweightUnderCursor(Native Method)
     at apple.awt.CGlobalCursorManager._updateCursor(CGlobalCursorManager.java:130)
     at apple.awt.CGlobalCursorManager.updateCursorImmediately(CGlobalCursorManager.java:75)
     at apple.awt.ComponentModel.updateCursorImmediately(ComponentModel.java:166)
     at java.awt.Component.updateCursorImmediately(Component.java:2919)
     at java.awt.Container.validate(Container.java:1488)
     at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:123)
     at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1503)
     at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1210)
     at javax.swing.plaf.ComponentUI.update(ComponentUI.java:155)
     at javax.swing.JComponent.paintComponent(JComponent.java:763)
     at com.intellij.ui.treeStructure.Tree.paintComponent(Tree.java:165)

 

This issue is reported as IDEA-26164 in our bug tracker. Unfortunately, it's a problem inside Apple Java implementation and we can't address it. There is similar problem report in the Apple Java mailing list for some other Java application.

 

A known workaround is to disable the screen menu by editing the Info.plist file as follows:

 

        <key>apple.laf.useScreenMenuBar</key>
        <string>false</string>
Average User Rating
(0 ratings)




Kevin Menard Kevin Menard  says:

Can you please show more context on what the plist file should look like?  There are a lot of different places that a key can appear.

Mathias Lin Mathias Lin  says:

What's the "screen menu"? I can't find such menu item.

Serge Baranov Serge Baranov  says in response to Mathias Lin:

It's the main application menu on Mac.