Our created CALayer and NSOpenGLLayer, attached to the JAWT surface are not released when we properly try to release them via our release calls to: - CGL.releaseNSOpenGLLayer(..) - OSXUtil.RemoveCASublayer(..) - OSXUtil_DestroyCALayer(..) The native NSOpenGLLayer's GL-Context is also retained. This leaks leads to stalling and eventual crash of the desktop.
Updated complete release sequence .. Context unrealized: - JAWTWindow.detachSurfaceLayer() -> OSXUtil.RemoveCASublayer(..) - CGL.releaseNSOpenGLLayer(..) JAWTWindow.destroy() - MacOSXJAWTWindow.UnsetJAWTRootSurfaceLayer(..) - OSXUtil.DestroyCALayer(..)
http://jogamp.org/git/?p=jogl.git;a=commit;h=f6e6fab2a7ddfb5c9b614cb072c27ff697629161
Reopened: SIGSEGV w/ NewtCanvasAWT due to new resource release .. investigating.
part-2: http://jogamp.org/git/?p=jogl.git;a=commit;h=2aeff053c55dadafb94bfbba661250e0c96f1fe5 part-3: http://jogamp.org/git/?p=jogl.git;a=commit;h=a94ff9252df66c303f48489c3e8926104941465c
Finally solved - see Bug 1019