I'm using 6.7RC3 on Mac OS X, with the latest Java update (1.6.0_13). I've just opened a Maven set of projects and -
probably while it's still scanning - I was navigating through the menus. At a certain point, a menu froze and the whole
NetBeans is unusable. Connecting with the JConsole I got a thread dump and it seems that AWT-AppKit is deadlocked. I
believe that AWT-AppKit is an Apple specific thing, so I'm naming this issue relating to Mac OS X.
I'm going to attach the thread dump.
Created attachment 83838 [details]
Created attachment 83839 [details]
BTW, I suspect it could be related to the latest update from Apple, as in the Apple mailing list people are describing
issues related to menus.
Since it's an intermittent deadlock, not happening all the times, I'm decreasing the priority to P2.
We need to know the reason before FCS goes out. Please Platform guys look at this issue ... thanks in advance.
I'm in holidays for a few days, but I could have the connection. If there any specific thing that I can do, please let
Stando, Milane, try reproducing that on your Macs today.
i have reproduced the deadlock with steps provided by the reporter
my guess is that we're showing (or trying to) a global wait cursor for the whole main window and apple's jdk trips over
when it updates the cursor while browsing in the main menu
the workaround might -Dapple.laf.useScreenMenuBar=false
I managed to reproduce the problem once so far (out of 7 invocations of IDE).
i can reproduce this bug with a simple swing application which repeatedly opens and closes modal dialog from a frame
window with apple menu.
the same swing application runs fine when using jdk 1.5 or when apple screen menu is turned off
i reported it as apple bug 6993269
My understanding is that this bug cannot be workarounded in NetBeans code, other than specifying
The Mac users will complain if we move the main menu bar from the top of the screen to the main window frame, but this
is currently the only quick fix for the problem. So, I suggest we do it, and also include this problem description in
the release notes. Adding RELNOTE keyword.
I will see if I can escalate this issue to be fixed ASAP on the Apple JDK side.
I bet that if you manage to run under Mac OS X, 1.6.0_07 it runs fine. It must definitely be a gift by Apple JDK 1.6.0_13.
So, let's cross fingers :-( But it should impact a good number of Java applications, so we might hope for a quick patch.
Created attachment 83947 [details]
simple swing application to reproduce the jdk bug
after offline discussion with QE we decided not to workaround this bug on our side and wait for proper fix from apple.
to be added to release notes for 6.7:
# Random freezes on Mac OS X JDK 1.6.0 update 13
Description: There's a known Apple JDK bug (6993269) which may randomly freeze IDE when browsing through the main
menu bar of the IDE.
Workaround: Either switch to a different JDK version or modify default startup options in <netbeans
dir>/etc/netbeans.conf to -J-Dapple.laf.useScreenMenuBar=false
*** Issue 170196 has been marked as a duplicate of this issue. ***
Fixed in Java for Mac OS X 10.5 Update 5. It is available via Software Update, and via manual download at
Thanks for the confirmation.
*** Issue 175894 has been marked as a duplicate of this issue. ***
*** Bug 182695 has been marked as a duplicate of this bug. ***
Reproducible in JDK 1.6.0_15, Mac OS 10.6.2