JDK-7124419 : [macosx] Crash with CToolkit starting through VNC link from a server without a monitor attached.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2013-05-08
  • Resolved: 2013-05-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
http://java.net/jira/browse/MACOSX_PORT-107 submitted 2011/06/14 by Yuri Nesterenko
Configure a Mac mini, login, start VNC server, detach a monitor.
Connect from another computer using vncviewer TightVNC or Chicken of the VNC.
Build or download macosx port of jdk7.
Compile a simplest java application (in java sense) with a Frame (new, setBounds, setVisible).
Start this application:
 AWT_TOOLKIT=CToolkit java FrameTest
It will crash in  <span class=&quot;error&quot;>&#91;libGL.dylib+0x22db&#93;</span>  glGetString+0xf. (see a log in the attachment)
Note that it will run if monitor is attached.

Comments
Probably issue is gone
02-05-2013

EVALUATION Author: astrange Date: 14/Jun/11 01:59 PM Java_sun_java2d_opengl_OGLContext_getOGLIdString might be calling glGetString without a GL context set. Author: Nicolay Haustov Date: 26/Jul/11 09:26 AM This issue basically means that for testing, one has to have a monitor attached. Author: Scott Kovatch Date: 17/Dec/11 12:38 AM The problem is that we're attempting to create an OpenGL pixel format and failing because we only accept a hardware accelerated renderer with no fallback. NSOpenGLPixelFormatAttribute attrs[] = { NSOpenGLPFAClosestPolicy, NSOpenGLPFANoRecovery, NSOpenGLPFAAccelerated, NSOpenGLPFAFullScreen, NSOpenGLPFAWindow, NSOpenGLPFAPixelBuffer, NSOpenGLPFADoubleBuffer, NSOpenGLPFAColorSize, 32, NSOpenGLPFAAlphaSize, 8, NSOpenGLPFADepthSize, 32, NSOpenGLPFAScreenMask, glMask, 0 }; This won't work on a virtual desktop. We need to try some other fallback case if this fails. This is blocking automated testing of the deployment code.
23-12-2011