Hi, Alexander.
Could we check DM in setDisplayMode() against modes from
CGraphicsDevice.getDisplayModes() on java lvl?
31.01.2013 17:46, Alexander Scherbatiy wrote:
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.
--
Best regards, Sergey.