[8] Review request for 8007146 [macosx] Setting a display mode crashes JDK under VNC
Alexander Scherbatiy
alexandr.scherbatiy at oracle.com
Thu Jan 31 05:46:02 PST 2013
bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8007146
webrev: http://cr.openjdk.java.net/~alexsch/8007146/webrev.00
The issue is reproduced when a program is running under a VNC and all
monitors are disconnected from the Mac OS X system.
The CGDisplayCopyAllDisplayModes returns display modes with width and
height equal to 1.
CGCompleteDisplayConfiguration returns error when the invalid display
mode is set and JDK crashes after releasing the display configuration.
According to the CGCompleteDisplayConfiguration doc: "On return, this
configuration is no longer valid."
The fix filters the invalid display modes and does not release the
display configuration.
Thanks,
Alexandr.
More information about the macosx-port-dev
mailing list