Bug 1212 - OSX: Crash using CALayer at UnsetJAWTRootSurfaceLayer0(..) w/ Java 1.8.0_60
Summary: OSX: Crash using CALayer at UnsetJAWTRootSurfaceLayer0(..) w/ Java 1.8.0_60
Status: RESOLVED FIXED
Alias: None
Product: Nativewindow
Classification: JogAmp
Component: macosx (show other bugs)
Version: 2.3.2
Hardware: All macosx
: P1 critical
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2015-09-01 04:24 CEST by Sven Gothel
Modified: 2015-09-27 01:26 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
85b32bac4f031dbdb55caa380d5a20440aecbbbd
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2015-09-01 04:24:41 CEST
- OSX 10.10.5
- Java 1.8.0_60

Crash using CALayer at UnsetJAWTRootSurfaceLayer0(..) 
as called within MacOSXJAWTWindow.invalidateNative() (caller: destroy())
on the MainThread.

It has been observed that the 
JAWT_SurfaceLayers protocol instance 'surfaceLayers' has been pulled beforehand.

'surfaceLayers' is fetched from the locked JAWT instance
via JAWT_DrawingSurfaceInfo's platformInfo.

It now seems required to retain the instance 
at GetJAWTSurfaceLayersHandle0 and release it
at UnsetJAWTRootSurfaceLayer0 to keep it alive.
Comment 1 Sven Gothel 2015-09-01 05:20:03 CEST
85b32bac4f031dbdb55caa380d5a20440aecbbbd
  - Fixed as described
  
Manually executed 'ant junit.run' on OSX, no failures or errors.