<AWT Dev> NSOpenGLLayer animation issue under VNC

Mike Swingler swingler at apple.com
Wed Feb 6 09:29:37 PST 2013

On Feb 1, 2013, at 7:37 AM, Alexander Scherbatiy <alexandr.scherbatiy at oracle.com> wrote:

>  Hello Mike,
>  There is the issue 8005668 security control panel got greyed out when access Mac machine remotely using VNC
>     http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8005668
>  After a little investigation we have found that an animation does not work for the NSOpenGLLayer if a user uses VNC connection
>  and the MAC OS X does not have connected monitors.
>    Here are steps to reproduce which use only Cocoa application:
>  - Connect to an Mac OS X with VNC
>  - Detach all monitors from the Mac OS X (I used a Mac mini)
>  - Run the code below
>   The animation does not work
>  The output shows that the drawInCGLContext method has been invoked only once or twice:
>  ------------------------------------------------------------------
> 2013-02-01 19:21:27.488 OpenGLLayerSample[1731:707] invalid drawable
> 2013-02-01 19:21:27.489 OpenGLLayerSample[1731:707] drawInCGLContext
> 2013-02-01 19:21:27.513 OpenGLLayerSample[1731:707] drawInCGLContext
>  ------------------------------------------------------------------
> Connection a monitor to the Mac OS X makes the animation work.
> It seems that it can have a relation to the issue 8005668 so the first time there is nothing to draw and next time nothing is drawn on a Java app.
> Is it a known issue and could it have a workaround?

This does appear to be a bug in the OS - you should see some an animation when you are screen-shared into the machine. Please file a bug at <http://bugreporter.apple.com>, and let me know what the bug ID is so I can ensure that it gets to the correct team.

Mike Swingler
Apple Inc.

More information about the awt-dev mailing list