JDK-6772139 : Java2D D3D pipeline crashes on Windows Vista amd64
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u10,6u24
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2008-11-17
  • Updated: 2012-01-16
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows NT  Version 6.0 Build: 6001 Service Pack 1
Product (0x6): Windows Vista (TM) Business
Edition: Business
BuildString: 6001.18145.amd64fre.vistasp1_gdr.080917-1612
Flavor: Multiprocessor Free
Architecture: X64
LCID: 1033

A DESCRIPTION OF THE PROBLEM :
Any Java application which initialises Java2D appears to crash the Java VM under Windows Vista 64-bit.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and run the attached test case.


ACTUAL -
Most of the time this crashes out with a "Java(TM) Platform SE binary has stopped working" dialog.

If I refuse to send information back to MS, I get exit code -1073740791

(If I send information back I get exit code 255 which is probably bogus)


ERROR MESSAGES/STACK TRACES THAT OCCUR :
As Hotspot itself is not the one to handle the crash there is no hs_err file, but Windows outputs a heap dump file which I can provide.


REPRODUCIBILITY :
This bug can be reproduced often.

---------- BEGIN SOURCE ----------
import javax.swing.JOptionPane;

public class CrashJava {
    public static void main(String[] args) {
        JOptionPane.showMessageDialog(null, "Hi there.");
    }
}

---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Add this to the command-line: -Dsun.java2d.d3d=false

Or remove usage of Swing and so forth, which also avoids the issue.