<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>691</bug_id>
          
          <creation_ts>2013-02-14 03:59:27 +0100</creation_ts>
          <short_desc>OSX (Offscreen CALayer): Layers and native GL-Context are _not_ Released</short_desc>
          <delta_ts>2014-06-12 08:19:11 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>macosx</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>macosx</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>1019</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>f6e6fab2a7ddfb5c9b614cb072c27ff697629161
2aeff053c55dadafb94bfbba661250e0c96f1fe5
d178475967536f4d1e58fd6e0be49b03fe4cd4b7
a94ff9252df66c303f48489c3e8926104941465c</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2178</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-14 03:59:27 +0100</bug_when>
    <thetext>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&apos;s GL-Context is also retained.

This leaks leads to stalling and eventual crash of the desktop.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-14 04:18:03 +0100</bug_when>
    <thetext>Updated complete release sequence ..

Context unrealized:
  - JAWTWindow.detachSurfaceLayer() -&gt; OSXUtil.RemoveCASublayer(..)
  - CGL.releaseNSOpenGLLayer(..) 
 
JAWTWindow.destroy()
  - MacOSXJAWTWindow.UnsetJAWTRootSurfaceLayer(..)
  - OSXUtil.DestroyCALayer(..)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2181</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-14 15:14:33 +0100</bug_when>
    <thetext>http://jogamp.org/git/?p=jogl.git;a=commit;h=f6e6fab2a7ddfb5c9b614cb072c27ff697629161</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2183</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-14 19:43:36 +0100</bug_when>
    <thetext>Reopened: SIGSEGV w/ NewtCanvasAWT due to new resource release .. investigating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2187</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-02-16 04:03:47 +0100</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3962</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-06-12 08:19:11 +0200</bug_when>
    <thetext>Finally solved - see Bug 1019</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>