United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7154505 : [macosx] NetBeans sometimes starts with no text rendered

Details
Type:
Bug
Submit Date:
2012-03-16
Status:
Closed
Updated Date:
2012-09-24
Project Name:
JDK
Resolved Date:
2012-04-17
Component:
client-libs
OS:
os_x
Sub-Component:
2d
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u4 (b20)

Related Reports
Relates:
Relates:

Sub Tasks

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



Hardware and Software, Engineered to Work Together