JDK-6395356 : Crash when printing to a file using native print dialog on Vista
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0u6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2006-03-08
  • Updated: 2010-04-02
  • Resolved: 2006-03-22
Related Reports
Duplicate :  
Description
This is on Windows Vista beta2 (build 5308), running java 5.0u7/8.
The problem doesn't manifest on mustang (probably because we don't use native print
dialog there).

Run Font2DTest, select File/Print, chose the "Print to file" checkbox, click
OK. The application crashes somewhere in msctf.dll before bringing up the
file dialog (for selecting the destination file):
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x73d95d64, pid=2620, tid=2120
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b02 mixed mode)
# Problematic frame:
# C  [msctf.dll+0x5d64]
#
(the full log file is attached)

We also ran some other tests (PrintDlgPageable regression test), and it didn't 
crash.

Fiddling with Printer's options sometimes causes the app not to crash..

We've ran some other applications which use the native print dialog (Firefox 1.5.0).
It does show an "Unknown Error" dialog when attempting to print to a file, but it 
doesn't crash.

Comments
EVALUATION See the evaluation of 6358747 which is a likely duplicate of 6252674. It appears probable that the cause of this bug is in the JDK's Input method handling code. It has been confirmed that this bug on Vista is no longer reproducible as of mustang b38. I am closing it as a duplicate of 6252674.
20-03-2006