JDK-7154505 : [macosx] NetBeans sometimes starts with no text rendered
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: 2d
  • Priority: P2
  • Affected Version: 7u4
  • OS: os_x
  • CPU: x86
  • Submit Date: 2012-03-16
  • Updated Date: 2012-09-24
  • Resolved Date: 2012-04-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7u4 b20Fixed
Related Reports
Relates :  
Relates :  
Description
Product Version = NetBeans IDE Dev (Build 201203090400) (#9a710a8e3e80)
Operating System = Mac OS X version 10.7.3 running on amd64
Java; VM; Vendor = 1.7.0_04-ea; Java HotSpot(TM) 64-Bit Server VM 23.0-b16; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.7.0_04-ea-b15

See the screenshot at
http://bugzilla-attachments-209583.netbeans.org/bugzilla/attachment.cgi?id=116741
http://netbeans.org/bugzilla/show_bug.cgi?id=209583

No exact steps to reproduce, but randomly when starting NetBeans, it starts completely blank (see screenshot). To be more specific, everything seems to be ok for ~1second and then all content of window (titles, nodes,...) disappears. Popup is displayed correctly, as well as e.g. text can be copy-pasted.

Running under debugger doesn't indicate any problems - correct foreground colors are set, correct fonts being used but invoking Graphics.drawString() does not paint any text. All other visual artifacts (backgrounds, borders etc) seem to be painting fine, just no text is showing - except for tooltips and and popup menus.

NetBeans runs by default with the following java switches: 
  -Dapple.laf.useScreenMenuBar=true 
  -Dapple.awt.graphics.UseQuartz=true 
  -Dsun.java2d.noddraw=true 
  -Dsun.zip.disableMemoryMapping=true
(not sure if they have any effect on this issue though)
Correct link to see attachments for NetBeans bug #209583:

http://netbeans.org/bugzilla/attachment.cgi?bugid=209583&action=viewall

Comments
EVALUATION See comments.
2012-04-05

WORK AROUND This problem can be workarounded by a disabling the automatic graphics switching in macosx. For 10.7.3 it can be done using following steps: System Preferences -> Energy Saver, and there 'Automatic graphics switching' checkbox should be cleared.
2012-03-20