JDK-8166106 : JVM crash on resizing JavaFX application with title and icon
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 8u20,9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-09-11
  • Updated: 2018-02-23
  • Resolved: 2017-02-01
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 JDK 9
8u152Fixed 9Fixed
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

FULL OS VERSION :
OS X El Capitan

EXTRA RELEVANT SYSTEM CONFIGURATION :
Mac mini (Mid 2010)

A DESCRIPTION OF THE PROBLEM :
Resizing JavaFX application after System#gc called causes crashing JVM.

[Preconditions]
The Stage of the Application has a title and a icon
OS X
G1GC

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Compile attached source code
javac HelloWorld.java

2. Run with G1GC
java -XX:+UseG1GC HelloWorld

3. Click button in the application
System#gc wil be called

4. Resize application window manually
This will cause crashing JVM

ERROR MESSAGES/STACK TRACES THAT OCCUR :
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x00007fff99e81cfe, pid=29278, tid=0x000000000000230b
#
# JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [CoreGraphics+0x41cfe]  decode_swap+0x33
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007fb5f2a3f000):  JavaThread "JavaFX Application Thread" [_thread_in_native, id=8971, stack(0x00007fff5a398000,0x00007fff5ab98000)]

siginfo: si_signo: 10 (SIGBUS), si_code: 2 (BUS_ADRERR), si_addr: 0x0000000747900010

Registers:
RAX=0x00007fb5f404e270, RBX=0x00007fff5ab91970, RCX=0x0000000000000200, RDX=0x0000000747900010
RSP=0x00007fff5ab90138, RBP=0x00007fff5ab90150, RSI=0x00007fb5f404e270, RDI=0x0000000000000004
R8 =0x00000000000001f0, R9 =0x00000000000001f0, R10=0x0000000747900210, R11=0x0000000000000200
R12=0x0000000000000004, R13=0x0000000000000020, R14=0x0000000747900010, R15=0x00007fb5f4274510
RIP=0x00007fff99e81cfe, EFLAGS=0x0000000000010206, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007fff5ab90138)
0x00007fff5ab90138:   00007fff5ab91970 0000000747900010
0x00007fff5ab90148:   00007fb5f4274510 00007fff5ab902e0
0x00007fff5ab90158:   00007fff99e7d596 00007fff5ab901a0
0x00007fff5ab90168:   00007fff99ed2087 0000008000000050
0x00007fff5ab90178:   00007fb5f23d4880 0000000000000080
0x00007fff5ab90188:   0000000000000010 00007fb5f23d4800
0x00007fff5ab90198:   0000000000000000 00007fff5ab90630
0x00007fff5ab901a8:   00007fff99ed1924 0000000000000000
0x00007fff5ab901b8:   0000000000000500 0000000000000000
0x00007fff5ab901c8:   0000000200000000 0000000000000000
0x00007fff5ab901d8:   0000002400000180 00007fff00000080
0x00007fff5ab901e8:   0000000000000008 0000000000000004
0x00007fff5ab901f8:   0000000000000000 0000000000000001
0x00007fff5ab90208:   bf8e839000000003 0000000000000008
0x00007fff5ab90218:   0000000000000080 0000000000000080
0x00007fff5ab90228:   bfb620ba12fc655c 0000000700000000
0x00007fff5ab90238:   0000000000000003 00007fff5ab914f0
0x00007fff5ab90248:   3fc2ec73023946d9 3fd25d8000000200
0x00007fff5ab90258:   3fdc8fbd00000001 3fe38fbc00000001
0x00007fff5ab90268:   3fe87a5400000004 0000000000000180
0x00007fff5ab90278:   0000000000000200 00007fb5f404e270
0x00007fff5ab90288:   3fef177600000003 3fec7a7d00000200
0x00007fff5ab90298:   3fe87a5400000000 00007fff5ab914f0
0x00007fff5ab902a8:   0000000747900010 3fd25d804c8f96f5
0x00007fff5ab902b8:   00007fff5ab909f0 0000000000000003
0x00007fff5ab902c8:   a800165076f6b467 0000000000000000
0x00007fff5ab902d8:   00007fff5ab904b8 00007fff5ab903d0
0x00007fff5ab902e8:   00007fff99e7bcd6 00007fb500000180
0x00007fff5ab902f8:   00007fff5ab91970 00007fff00000080
0x00007fff5ab90308:   00007fff99e7bc33 0000000105083000
0x00007fff5ab90318:   0000000105087400 0000000000000004
0x00007fff5ab90328:   0000000000000000 00007fff5ab90420 

Instructions: (pc=0x00007fff99e81cfe)
0x00007fff99e81cde:   8c da 00 00 00 44 8d 41 f0 45 89 c1 41 c1 e9 04
0x00007fff99e81cee:   41 c1 e1 04 4e 8d 54 0a 10 4d 8d 59 10 48 89 f0
0x00007fff99e81cfe:   44 8b 3a 44 8b 72 04 41 0f cf 41 0f ce 8b 7a 08
0x00007fff99e81d0e:   0f cf 8b 5a 0c 0f cb 83 c1 f0 44 89 38 44 89 70 

Register to memory mapping:

RAX=0x00007fb5f404e270 is an unknown value
RBX=0x00007fff5ab91970 is pointing into the stack for thread: 0x00007fb5f2a3f000
RCX=0x0000000000000200 is an unknown value
RDX=0x0000000747900010 is an unallocated location in the heap
RSP=0x00007fff5ab90138 is pointing into the stack for thread: 0x00007fb5f2a3f000
RBP=0x00007fff5ab90150 is pointing into the stack for thread: 0x00007fb5f2a3f000
RSI=0x00007fb5f404e270 is an unknown value
RDI=0x0000000000000004 is an unknown value
R8 =0x00000000000001f0 is an unknown value
R9 =0x00000000000001f0 is an unknown value
R10=0x0000000747900210 is an unallocated location in the heap
R11=0x0000000000000200 is an unknown value
R12=0x0000000000000004 is an unknown value
R13=0x0000000000000020 is an unknown value
R14=0x0000000747900010 is an unallocated location in the heap
R15=0x00007fb5f4274510 is an unknown value


Stack: [0x00007fff5a398000,0x00007fff5ab98000],  sp=0x00007fff5ab90138,  free space=8160k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [CoreGraphics+0x41cfe]  decode_swap+0x33
C  [CoreGraphics+0x3d596]  decode_data+0xdf8
C  [CoreGraphics+0x3bcd6]  img_decode_read+0x1c4
C  [CoreGraphics+0x92d36]  img_interpolate_read+0x2cb
C  [CoreGraphics+0x3ba0c]  img_colormatch_read+0x16b
C  [CoreGraphics+0x3b817]  img_alphamerge_read+0x213
C  [CoreGraphics+0x39a14]  img_data_lock+0x2402
C  [CoreGraphics+0x3673f]  CGSImageDataLock+0x97
C  [libRIP.A.dylib+0xf1d4]  ripc_AcquireImage+0x3cc
C  [libRIP.A.dylib+0xdc7e]  ripc_DrawImage+0x3f3
C  [CoreGraphics+0xa5660]  CGContextDelegateDrawImage+0x46
C  [AppKit+0x2091c8]  __backing_store_DrawImage_block_invoke+0x46
C  [AppKit+0x204a77]  backing_store_delegate+0x300
C  [AppKit+0x209137]  backing_store_DrawImage+0x20d
C  [CoreGraphics+0x35b7e]  CGContextDrawImageWithOptions+0x2ac
C  [CoreGraphics+0x358b6]  CGContextDrawImage+0x49
C  [AppKit+0x1b7752]  __74-[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke+0x305
C  [AppKit+0x1b7256]  -[NSImageRep drawInRect:fromRect:operation:fraction:respectFlipped:hints:]+0x456
C  [AppKit+0x1bf199]  __71-[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:]_block_invoke1045+0x45f
C  [AppKit+0x17ebb0]  -[NSImage _usingBestRepresentationForRect:context:hints:body:]+0xa4
C  [AppKit+0x1bec58]  -[NSImage drawInRect:fromRect:operation:fraction:respectFlipped:hints:]+0x845
C  [AppKit+0x1b57fd]  -[NSImage _drawMappingAlignmentRectToRect:withState:backgroundStyle:operation:fraction:flip:hints:]+0x64f
C  [AppKit+0x298364]  -[NSThemeDocumentButtonCell drawWithFrame:inView:]+0x259
C  [AppKit+0x1b3388]  -[NSControl drawRect:]+0x156
C  [AppKit+0x1aacd2]  -[NSView _drawRect:clip:]+0xe2a
C  [AppKit+0x202cad]  -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]+0x751
C  [AppKit+0x20308a]  -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]+0xb2e
C  [AppKit+0x1a83fb]  -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x346
C  [AppKit+0x1a7be0]  -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]+0x14e
C  [AppKit+0x1a5feb]  -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]+0x991
C  [AppKit+0x1a13f5]  -[NSView displayIfNeeded]+0x79e
C  [AppKit+0x12421e]  -[NSThemeFrame handleSetFrameCommonRedisplay]+0x10e
C  [AppKit+0x11ab30]  -[NSWindow _setFrameCommon:display:stashSize:]+0xe99
C  [AppKit+0x119c88]  -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:]+0xde
C  [AppKit+0x119ba3]  -[NSWindow setFrame:display:]+0x43
C  [AppKit+0x9c0ccc]  -[NSWindow(NSWindowResizing) _resizeSetFrame:withEvent:shouldSnapWidth:shouldSnapHeight:]+0x9e
C  [AppKit+0x3d1b23]  -[NSWindow(NSWindowResizing) _resizeWithEvent:]+0x9d4
C  [AppKit+0x2bb741]  -[NSThemeFrame mouseDown:]+0x44
C  [AppKit+0x8153c9]  -[NSWindow _handleMouseDownEvent:isDelayedEvent:]+0x18b2
C  [AppKit+0x8163ad]  -[NSWindow _reallySendEvent:isDelayedEvent:]+0xd4
C  [AppKit+0x255539]  -[NSWindow sendEvent:]+0x205
C  [libglass.dylib+0x25964]  -[GlassWindow_Normal sendEvent:]+0x74
C  [AppKit+0x1d5a38]  -[NSApplication sendEvent:]+0x9ec
C  [AppKit+0x3cdf2]  -[NSApplication run]+0x31c
C  [libglass.dylib+0x654c]  -[GlassApplication runLoop:]+0x72c
C  [Foundation+0x76fde]  __NSThreadPerformPerform+0x117
C  [CoreFoundation+0xaa881]  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11
C  [CoreFoundation+0x89fbc]  __CFRunLoopDoSources0+0x22c
C  [CoreFoundation+0x894df]  __CFRunLoopRun+0x39f
C  [CoreFoundation+0x88ed8]  CFRunLoopRunSpecific+0x128
C  [java+0x6465]  CreateExecutionEnvironment+0x367
C  [java+0x218c]  JLI_Launch+0x7a0
C  [java+0x84c2]  main+0x65
C  [java+0x19e4]  start+0x34
C  0x0000000000000003


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00007fb5f23c7800 JavaThread "Prism Font Disposer" daemon [_thread_blocked, id=55559, stack(0x000070000196b000,0x0000700001a6b000)]
  0x00007fb5f22d9000 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=52751, stack(0x0000700001868000,0x0000700001968000)]
  0x00007fb5f2ae6000 JavaThread "JavaFX-Launcher" [_thread_blocked, id=50947, stack(0x0000700001765000,0x0000700001865000)]
  0x00007fb5f22d0800 JavaThread "Thread-3" daemon [_thread_in_native, id=38915, stack(0x000070000165f000,0x00007000016df000)]
=>0x00007fb5f2a3f000 JavaThread "JavaFX Application Thread" [_thread_in_native, id=8971, stack(0x00007fff5a398000,0x00007fff5ab98000)]
  0x00007fb5f2248800 JavaThread "Thread-1" daemon [_thread_blocked, id=26123, stack(0x0000700001456000,0x0000700001556000)]
  0x00007fb5f221e000 JavaThread "QuantumRenderer-0" daemon [_thread_blocked, id=21251, stack(0x0000700001353000,0x0000700001453000)]
  0x00007fb5f206f800 JavaThread "Service Thread" daemon [_thread_blocked, id=20227, stack(0x000070000114d000,0x000070000124d000)]
  0x00007fb5f28dc000 JavaThread "C1 CompilerThread1" daemon [_thread_blocked, id=19715, stack(0x000070000104a000,0x000070000114a000)]
  0x00007fb5f2034000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=19203, stack(0x0000700000f47000,0x0000700001047000)]
  0x00007fb5f28db800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=18691, stack(0x0000700000e44000,0x0000700000f44000)]
  0x00007fb5f203b800 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=14859, stack(0x0000700000d41000,0x0000700000e41000)]
  0x00007fb5f288e800 JavaThread "Finalizer" daemon [_thread_blocked, id=13827, stack(0x0000700000b38000,0x0000700000c38000)]
  0x00007fb5f2888000 JavaThread "Reference Handler" daemon [_thread_blocked, id=13315, stack(0x0000700000a35000,0x0000700000b35000)]
  0x00007fb5f200c800 JavaThread "main" [_thread_blocked, id=3335, stack(0x000070000011a000,0x000070000021a000)]

Other Threads:
  0x00007fb5f205e000 VMThread [stack: 0x0000700000932000,0x0000700000a32000] [id=12803]
  0x00007fb5f28d0800 WatcherThread [stack: 0x0000700001250000,0x0000700001350000] [id=20739]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 garbage-first heap   total 21504K, used 6450K [0x0000000740000000, 0x00000007401000a8, 0x00000007c0000000)
  region size 1024K, 1 young (1024K), 0 survivors (0K)
 Metaspace       used 12691K, capacity 13118K, committed 13184K, reserved 1060864K
  class space    used 1750K, capacity 1878K, committed 1920K, reserved 1048576K

Heap Regions: (Y=young(eden), SU=young(survivor), HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, TS=gc time stamp, PTAMS=previous top-at-mark-start, NTAMS=next top-at-mark-start)
AC   0  O    TS     0 PTAMS 0x0000000740000000 NTAMS 0x0000000740000000 space 1024K,  99% used [0x0000000740000000, 0x0000000740100000)
AC   0  O    TS     0 PTAMS 0x0000000740100000 NTAMS 0x0000000740100000 space 1024K,  99% used [0x0000000740100000, 0x0000000740200000)
AC   0 HS    TS     0 PTAMS 0x0000000740200000 NTAMS 0x0000000740200000 space 3072K,  66% used [0x0000000740200000, 0x0000000740500000)
AC   0 HC    TS     0 PTAMS 0x0000000740300000 NTAMS 0x0000000740300000 space 1024K, 100% used [0x0000000740300000, 0x0000000740400000)
AC   0 HC    TS     0 PTAMS 0x0000000740400000 NTAMS 0x0000000740400000 space 1024K,   0% used [0x0000000740400000, 0x0000000740500000)
AC   0 HS    TS     0 PTAMS 0x0000000740500000 NTAMS 0x0000000740500000 space 2048K,  50% used [0x0000000740500000, 0x0000000740700000)
AC   0 HC    TS     0 PTAMS 0x0000000740600000 NTAMS 0x0000000740600000 space 1024K,   0% used [0x0000000740600000, 0x0000000740700000)
AC   0  O    TS     0 PTAMS 0x0000000740700000 NTAMS 0x0000000740700000 space 1024K,  99% used [0x0000000740700000, 0x0000000740800000)
AC   0  O    TS     0 PTAMS 0x0000000740800000 NTAMS 0x0000000740800000 space 1024K,  29% used [0x0000000740800000, 0x0000000740900000)
AC   0  F    TS     0 PTAMS 0x0000000740900000 NTAMS 0x0000000740900000 space 1024K,   0% used [0x0000000740900000, 0x0000000740a00000)
AC   0  F    TS     0 PTAMS 0x0000000740a00000 NTAMS 0x0000000740a00000 space 1024K,   0% used [0x0000000740a00000, 0x0000000740b00000)
AC   0  F    TS     0 PTAMS 0x0000000740b00000 NTAMS 0x0000000740b00000 space 1024K,   0% used [0x0000000740b00000, 0x0000000740c00000)
AC   0  F    TS     0 PTAMS 0x0000000740c00000 NTAMS 0x0000000740c00000 space 1024K,   0% used [0x0000000740c00000, 0x0000000740d00000)
AC   0  F    TS     0 PTAMS 0x0000000740d00000 NTAMS 0x0000000740d00000 space 1024K,   0% used [0x0000000740d00000, 0x0000000740e00000)
AC   0  F    TS     0 PTAMS 0x0000000740e00000 NTAMS 0x0000000740e00000 space 1024K,   0% used [0x0000000740e00000, 0x0000000740f00000)
AC   0  F    TS     0 PTAMS 0x0000000740f00000 NTAMS 0x0000000740f00000 space 1024K,   0% used [0x0000000740f00000, 0x0000000741000000)
AC   0  F    TS     0 PTAMS 0x0000000741000000 NTAMS 0x0000000741000000 space 1024K,   0% used [0x0000000741000000, 0x0000000741100000)
AC   0  F    TS     0 PTAMS 0x0000000741100000 NTAMS 0x0000000741100000 space 1024K,   0% used [0x0000000741100000, 0x0000000741200000)
AC   0  F    TS     0 PTAMS 0x0000000741200000 NTAMS 0x0000000741200000 space 1024K,   0% used [0x0000000741200000, 0x0000000741300000)
AC   0  F    TS     0 PTAMS 0x0000000741300000 NTAMS 0x0000000741300000 space 1024K,   0% used [0x0000000741300000, 0x0000000741400000)
AC   0  E    TS     0 PTAMS 0x0000000741400000 NTAMS 0x0000000741400000 space 1024K,  34% used [0x0000000741400000, 0x0000000741500000)

Card table byte_map: [0x0000000116561000,0x0000000116961000] byte_map_base: 0x0000000112b61000

Marking Bits (Prev, Next): (CMBitMap*) 0x00007fb5f2823688, (CMBitMap*) 0x00007fb5f28236e0
 Prev Bits: [0x0000000116d61000, 0x0000000118d61000)
 Next Bits: [0x0000000118d61000, 0x000000011ad61000)

Polling page: 0x000000010534d000

CodeCache: size=245760Kb used=3325Kb max_used=3330Kb free=242434Kb
 bounds [0x00000001067a1000, 0x0000000106af1000, 0x00000001157a1000]
 total_blobs=1500 nmethods=893 adapters=523
 compilation: enabled

Compilation events (10 events):
Event: 5.189 Thread 0x00007fb5f28dc000  890       3       com.sun.prism.impl.VertexBuffer::flush (32 bytes)
Event: 5.189 Thread 0x00007fb5f28dc000 nmethod 890 0x0000000106ade550 code [0x0000000106ade6e0, 0x0000000106adeb18]
Event: 5.189 Thread 0x00007fb5f28dc000  891       3       com.sun.prism.impl.ManagedResource::assertLocked (18 bytes)
Event: 5.189 Thread 0x00007fb5f2034000  892       4       com.sun.prism.impl.VertexBuffer::putColor (53 bytes)
Event: 5.189 Thread 0x00007fb5f28dc000 nmethod 891 0x0000000106adec50 code [0x0000000106adedc0, 0x0000000106adf028]
Event: 5.189 Thread 0x00007fb5f28dc000  893       3       com.sun.javafx.font.PrismFontStrike::getSize (5 bytes)
Event: 5.189 Thread 0x00007fb5f28dc000 nmethod 893 0x0000000106adf110 code [0x0000000106adf260, 0x0000000106adf3b0]
Event: 5.190 Thread 0x00007fb5f28dc000  894       3       com.sun.javafx.font.CompositeStrike::getStrikeSlot (165 bytes)
Event: 5.192 Thread 0x00007fb5f2034000 nmethod 892 0x0000000106ae2150 code [0x0000000106ae22a0, 0x0000000106ae23b8]
Event: 5.192 Thread 0x00007fb5f28dc000 nmethod 894 0x0000000106ae07d0 code [0x0000000106ae0a40, 0x0000000106ae1ac8]

GC Heap History (6 events):
Event: 0.650 GC heap before
{Heap before GC invocations=0 (full 0):
 garbage-first heap   total 131072K, used 7168K [0x0000000740000000, 0x0000000740100400, 0x00000007c0000000)
  region size 1024K, 7 young (7168K), 0 survivors (0K)
 Metaspace       used 5703K, capacity 6458K, committed 6656K, reserved 1056768K
  class space    used 657K, capacity 756K, committed 768K, reserved 1048576K
Event: 0.664 GC heap after
Heap after GC invocations=1 (full 0):
 garbage-first heap   total 131072K, used 1741K [0x0000000740000000, 0x0000000740100400, 0x00000007c0000000)
  region size 1024K, 1 young (1024K), 1 survivors (1024K)
 Metaspace       used 5703K, capacity 6458K, committed 6656K, reserved 1056768K
  class space    used 657K, capacity 756K, committed 768K, reserved 1048576K
}
Event: 1.394 GC heap before
{Heap before GC invocations=1 (full 0):
 garbage-first heap   total 131072K, used 9933K [0x0000000740000000, 0x0000000740100400, 0x00000007c0000000)
  region size 1024K, 9 young (9216K), 1 survivors (1024K)
 Metaspace       used 9480K, capacity 9792K, committed 10112K, reserved 1058816K
  class space    used 1252K, capacity 1363K, committed 1408K, reserved 1048576K
Event: 1.402 GC heap after
Heap after GC invocations=2 (full 0):
 garbage-first heap   total 131072K, used 3169K [0x0000000740000000, 0x0000000740100400, 0x00000007c0000000)
  region size 1024K, 2 young (2048K), 2 survivors (2048K)
 Metaspace       used 9480K, capacity 9792K, committed 10112K, reserved 1058816K
  class space    used 1252K, capacity 1363K, committed 1408K, reserved 1048576K
}
Event: 3.653 GC heap before
{Heap before GC invocations=2 (full 0):
 garbage-first heap   total 131072K, used 15457K [0x0000000740000000, 0x0000000740100400, 0x00000007c0000000)
  region size 1024K, 12 young (12288K), 2 survivors (2048K)
 Metaspace       used 12652K, capacity 13102K, committed 13184K, reserved 1060864K
  class space    used 1749K, capacity 1876K, committed 1920K, reserved 1048576K
Event: 3.693 GC heap after
Heap after GC invocations=3 (full 1):
 garbage-first heap   total 21504K, used 6450K [0x0000000740000000, 0x00000007401000a8, 0x00000007c0000000)
  region size 1024K, 0 young (0K), 0 survivors (0K)
 Metaspace       used 12652K, capacity 13102K, committed 13184K, reserved 1060864K
  class space    used 1749K, capacity 1876K, committed 1920K, reserved 1048576K
}

Deoptimization events (10 events):
Event: 1.568 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001068b691c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.568 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001068b691c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.568 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001068b691c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.571 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001068b691c method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
Event: 1.807 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000001069c3fa0 method=java.lang.CharacterData.of(I)Ljava/lang/CharacterData; @ 4
Event: 2.052 Thread 0x00007fb5f221e000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000106a3312c method=sun.net.www.ParseUtil.encodePath(Ljava/lang/String;Z)Ljava/lang/String; @ 109
Event: 3.612 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x0000000106a0c97c method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126
Event: 3.612 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x0000000106a0c97c method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126
Event: 3.612 Thread 0x00007fb5f2a3f000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x0000000106a0c97c method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126
Event: 3.868 Thread 0x00007fb5f221e000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x0000000106a0c97c method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126

Internal exceptions (10 events):
Event: 0.044 Thread 0x00007fb5f200c800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x0000000747f07f60) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/pri
Event: 0.206 Thread 0x00007fb5f200c800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x0000000747e99ab8) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/prims/methodHandles.cpp, line 1146]
Event: 0.209 Thread 0x00007fb5f200c800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x0000000747ea6e38) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/prims/methodHandles.cpp, line 1146]
Event: 0.239 Thread 0x00007fb5f200c800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000747d34a18) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/prims/jvm.cpp, line 1386]
Event: 0.239 Thread 0x00007fb5f200c800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000747d34c28) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/prims/jvm.cpp, line 1386]
Event: 0.239 Thread 0x00007fb5f200c800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000747d37f30) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/prims/jvm.cpp, line 1386]
Event: 0.239 Thread 0x00007fb5f200c800 Exception <a 'java/security/PrivilegedActionException'> (0x0000000747d38140) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/prims/jvm.cpp, line 1386]
Event: 0.240 Thread 0x00007fb5f200c800 Exception <a 'java/lang/NullPointerException'> (0x0000000747d38930) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/interpreter/linkResolver.cpp, line 1178]
Event: 1.224 Thread 0x00007fb5f2a3f000 Exception <a 'java/lang/NullPointerException'> (0x0000000747caea00) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/interpreter/linkResolver.cpp, line 1178]
Event: 1.224 Thread 0x00007fb5f2a3f000 Exception <a 'java/lang/NullPointerException'> (0x0000000747caea00) thrown at [/Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u102/7268/hotspot/src/share/vm/prims/jvm.cpp, line 1390]

Events (10 events):
Event: 3.868 Thread 0x00007fb5f221e000 DEOPT PACKING pc=0x0000000106a0c97c sp=0x0000700001451cc0
Event: 3.868 Thread 0x00007fb5f221e000 DEOPT UNPACKING pc=0x00000001067a5f69 sp=0x0000700001451c08 mode 2
Event: 4.158 Executing VM operation: EnableBiasedLocking
Event: 4.159 Executing VM operation: EnableBiasedLocking done
Event: 5.184 loading class com/sun/javafx/tk/quantum/QuantumToolkit
Event: 5.184 loading class com/sun/javafx/tk/quantum/QuantumToolkit done
Event: 5.184 loading class com/sun/javafx/tk/quantum/QuantumToolkit
Event: 5.184 loading class com/sun/javafx/tk/quantum/QuantumToolkit done
Event: 5.184 loading class com/sun/javafx/tk/RenderJob
Event: 5.184 loading class com/sun/javafx/tk/RenderJob done


Dynamic libraries:
0x0000000009903000 	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x0000000009903000 	/System/Library/Frameworks/Security.framework/Versions/A/Security
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x0000000009903000 	/usr/lib/libz.1.dylib
0x0000000009903000 	/usr/lib/libSystem.B.dylib
0x0000000009903000 	/usr/lib/libobjc.A.dylib
0x0000000009903000 	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x0000000009903000 	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x0000000009903000 	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x0000000009903000 	/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x0000000009903000 	/System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x0000000009903000 	/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x0000000009903000 	/usr/lib/libScreenReader.dylib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x0000000009903000 	/System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x0000000009903000 	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x0000000009903000 	/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x0000000009903000 	/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x0000000009903000 	/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x0000000009903000 	/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x0000000009903000 	/usr/lib/libauto.dylib
0x0000000009903000 	/usr/lib/libicucore.A.dylib
0x0000000009903000 	/usr/lib/libxml2.2.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x0000000009903000 	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x0000000009903000 	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x0000000009903000 	/usr/lib/liblangid.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x0000000009903000 	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x0000000009903000 	/usr/lib/libDiagnosticMessagesClient.dylib
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x0000000009903000 	/System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x0000000009903000 	/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x0000000009903000 	/System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x0000000009903000 	/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x0000000009903000 	/System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
0x0000000009903000 	/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x0000000009903000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x0000000009903000 	/System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x0000000009903000 	/usr/lib/libextension.dylib
0x0000000009903000 	/usr/lib/libarchive.2.dylib
0x0000000009903000 	/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x0000000009903000 	/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x0000000009903000 	/usr/lib/libCRFSuite.dylib
0x0000000009903000 	/usr/lib/libc++.1.dylib
0x0000000009903000 	/usr/lib/libc++abi.dylib
0x0000000009903000 	/usr/lib/system/libcache.dylib
0x0000000009903000 	/usr/lib/system/libcommonCrypto.dylib
0x0000000009903000 	/usr/lib/system/libcompiler_rt.dylib
0x0000000009903000 	/usr/lib/system/libcopyfile.dylib
0x0000000009903000 	/usr/lib/system/libcorecrypto.dylib
0x0000000009903000 	/usr/lib/system/libdispatch.dylib
0x0000000009903000 	/usr/lib/system/libdyld.dylib
0x0000000009903000 	/usr/lib/system/libkeymgr.dylib
0x0000000009903000 	/usr/lib/system/liblaunch.dylib
0x0000000009903000 	/usr/lib/system/libmacho.dylib
0x0000000009903000 	/usr/lib/system/libquarantine.dylib
0x0000000009903000 	/usr/lib/system/libremovefile.dylib
0x0000000009903000 	/usr/lib/system/libsystem_asl.dylib
0x0000000009903000 	/usr/lib/system/libsystem_blocks.dylib
0x0000000009903000 	/usr/lib/system/libsystem_c.dylib
0x0000000009903000 	/usr/lib/system/libsystem_configuration.dylib
0x0000000009903000 	/usr/lib/system/libsystem_coreservices.dylib
0x0000000009903000 	/usr/lib/system/libsystem_coretls.dylib
0x0000000009903000 	/usr/lib/system/libsystem_dnssd.dylib
0x0000000009903000 	/usr/lib/system/libsystem_info.dylib
0x0000000009903000 	/usr/lib/system/libsystem_kernel.dylib
0x0000000009903000 	/usr/lib/system/libsystem_m.dylib
0x0000000009903000 	/usr/lib/system/libsystem_malloc.dylib
0x0000000009903000 	/usr/lib/system/libsystem_network.dylib
0x0000000009903000 	/usr/lib/system/libsystem_networkextension.dylib
0x0000000009903000 	/usr/lib/system/libsystem_notify.dylib
0x0000000009903000 	/usr/lib/system/libsystem_platform.dylib
0x0000000009903000 	/usr/lib/system/libsystem_pthread.dylib
0x0000000009903000 	/usr/lib/system/libsystem_sandbox.dylib
0x0000000009903000 	/usr/lib/system/libsystem_secinit.dylib
0x0000000009903000 	/usr/lib/system/libsystem_trace.dylib
0x0000000009903000 	/usr/lib/system/libunc.dylib
0x0000000009903000 	/usr/lib/system/libunwind.dylib
0x0000000009903000 	/usr/lib/system/libxpc.dylib
0x0000000009903000 	/usr/lib/libenergytrace.dylib
0x0000000009903000 	/usr/lib/libbsm.0.dylib
0x0000000009903000 	/usr/lib/system/libkxld.dylib
0x0000000009903000 	/usr/lib/libxar.1.dylib
0x0000000009903000 	/usr/lib/libsqlite3.dylib
0x0000000009903000 	/usr/lib/libpam.2.dylib
0x0000000009903000 	/usr/lib/libOpenScriptingUtil.dylib
0x0000000009903000 	/usr/lib/libbz2.1.0.dylib
0x0000000009903000 	/usr/lib/liblzma.5.dylib
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x0000000009903000 	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x0000000009903000 	/System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x0000000009903000 	/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x0000000009903000 	/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x0000000009903000 	/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x0000000009903000 	/usr/lib/libmecabra.dylib
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x0000000009903000 	/System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x0000000009903000 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
0x0000000009903000 	/System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x0000000009903000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x0000000009903000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x0000000009903000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x0000000009903000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x0000000009903000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x0000000009903000 	/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x0000000009903000 	/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x0000000009903000 	/usr/lib/libcompression.dylib
0x0000000009903000 	/usr/lib/libcups.2.dylib
0x0000000009903000 	/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x0000000009903000 	/System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x0000000009903000 	/usr/lib/libresolv.9.dylib
0x0000000009903000 	/usr/lib/libiconv.2.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x0000000009903000 	/usr/lib/libheimdal-asn1.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x0000000009903000 	/System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x0000000009903000 	/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x0000000009903000 	/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x0000000009903000 	/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x0000000009903000 	/usr/lib/libmarisa.dylib
0x0000000009903000 	/usr/lib/libChineseTokenizer.dylib
0x0000000009903000 	/usr/lib/libcmph.dylib
0x0000000009903000 	/System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x0000000009903000 	/usr/lib/libxslt.1.dylib
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x0000000009903000 	/usr/lib/libFosl_dynamic.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x0000000009903000 	/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x0000000009903000 	/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x0000000009903000 	/System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
0x0000000009903000 	/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x0000000009903000 	/System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x0000000009903000 	/System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x0000000009903000 	/System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x0000000009903000 	/System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x0000000009903000 	/System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
0x0000000009903000 	/System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x0000000009903000 	/System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
0x0000000009903000 	/System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
0x0000000009903000 	/System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
0x000000004a9b4000 	/System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
0x0000000105800000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/server/libjvm.dylib
0x0000000009903000 	/usr/lib/libstdc++.6.dylib
0x000000010530a000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libverify.dylib
0x0000000105318000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libjava.dylib
0x0000000105357000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libzip.dylib
0x00000001053e1000 	/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport
0x000000011db90000 	/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation
0x000000011dba5000 	/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x000000011dbb2000 	/System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x0000000009903000 	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x000000011f569000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libprism_es2.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x000000011f5eb000 	/System/Library/Extensions/GeForceTeslaGLDriver.bundle/Contents/MacOS/GeForceTeslaGLDriver
0x00000001211ab000 	/System/Library/Extensions/GeForceTeslaGLDriver.bundle/Contents/MacOS/libclh.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupport.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
0x0000000009903000 	/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
0x0000000009903000 	/System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
0x0000000009903000 	/usr/lib/libcsfde.dylib
0x0000000009903000 	/usr/lib/libcurl.4.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
0x0000000009903000 	/System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage
0x0000000009903000 	/usr/lib/libCoreStorage.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin
0x0000000009903000 	/usr/lib/libutil.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice
0x0000000009903000 	/System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x0000000009903000 	/usr/lib/libsasl2.2.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
0x0000000009903000 	/usr/lib/libcrypto.0.9.8.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
0x0000000009903000 	/System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x0000000121aa4000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libglass.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
0x0000000009903000 	/System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x00000001223f2000 	/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x0000000009903000 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib
0x0000000009903000 	/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0x0000000009903000 	/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore
0x0000000009903000 	/System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/SystemAdministration
0x0000000009903000 	/System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer
0x0000000009903000 	/System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper
0x0000000009903000 	/System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x0000000009903000 	/System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Versions/A/LoginUICore
0x0000000009903000 	/usr/lib/libodfde.dylib
0x0000000124420000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libnet.dylib
0x000000012467f000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libjavafx_font.dylib
0x0000000124689000 	/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x000000012623f000 	cl_kernels
0x0000000009903000 	/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib
0x0000000009903000 	/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_rgba.dylib
0x00000001270a1000 	/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libprism_common.dylib

VM Arguments:
jvm_args: -XX:+UseG1GC 
java_command: HelloWorld
java_class_path (initial): .
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
SHELL=/bin/bash

Signal Handlers:
SIGSEGV: [libjvm.dylib+0x5b0579], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_ONSTACK|SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.dylib+0x5b0579], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.dylib+0x4874e4], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.dylib+0x4874e4], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.dylib+0x4874e4], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.dylib+0x4874e4], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=11011111011111100000000111000110, sa_flags=none
SIGUSR2: [libjvm.dylib+0x487002], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: [libjvm.dylib+0x4855d9], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGINT: [libjvm.dylib+0x4855d9], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGTERM: [libjvm.dylib+0x4855d9], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO
SIGQUIT: [libjvm.dylib+0x4855d9], sa_mask[0]=11111111011111110111111111111111, sa_flags=SA_RESTART|SA_SIGINFO


---------------  S Y S T E M  ---------------

OS:Bsduname:Darwin 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
rlimit: STACK 8192k, CORE 0k, NPROC 709, NOFILE 10240, AS infinity
load average:2.84 1.99 1.77

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, tsc

Memory: 4k page, physical 8388608k(1883508k free)

/proc/meminfo:


vm_info: Java HotSpot(TM) 64-Bit Server VM (25.102-b14) for bsd-amd64 JRE (1.8.0_102-b14), built on Jun 22 2016 11:42:36 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

time: Sun Sep 11 18:41:11 2016
elapsed time: 5 seconds (0d 0h 0m 5s)



REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class HelloWorld extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Hello World");

        Image icon = new Image("http://docs.oracle.com/javafx/javafx/images/javafx-documentation.png");
        primaryStage.getIcons().add(icon);

        Button gcButton = new Button("Click this button and then resize application window.");
        gcButton.setOnAction(e -> System.gc());

        VBox root = new VBox(gcButton);
        root.setAlignment(Pos.CENTER);

        primaryStage.setScene(new Scene(root, 600, 400));
        primaryStage.show();
    }
}

---------- END SOURCE ----------


Comments
Approved to backport to 8u-dev for 8u152. +1
20-02-2017

Sure, http://cr.openjdk.java.net/~azvegint/jdk/8u/8166106/00/ it is the same as in 9.
19-02-2017

This has baked long enough in JDK 9. [~azvegint] Can you prepare a webrev against 8u-dev for the backport?
17-02-2017

http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/85e33472929e
01-02-2017

+1
01-02-2017

+1
01-02-2017

I was not able to reproduce the failure case either before nor after applying the patch, but the code looks sounds to me. +1
31-01-2017

Answering one of my own questions, yes, I see that Pixels.asByteBuffer() allocates a direct ByteBuffer.
26-01-2017

You are storing the icon reference in a global variable. What will happen with multiple windows? Also, is the byte buffer returned by Pixels.asByteBuffer() guaranteed to be a direct buffer?
26-01-2017

Nice catch, please see the updated webrev http://cr.openjdk.java.net/~azvegint/jdk/9/8166106/01/ Ref for icon buffer is now stored in MacWindow
26-01-2017

+1
24-01-2017

Didn't you check if this takes place on other platforms too?
24-01-2017

I did, none of them crashed or got image corrupted.
24-01-2017

Yes, memory is still adressed by NSImage, Keeping global ref to array provided to attachByte doesn't help(address obtained from GetPrimitiveArrayCritical becomes invalid after GC).
23-01-2017

What is the root cause of the issue? Usage of the DirectByteBuffer memory on native side without taking a ref? So, if DirectByteBuffer is GCed and the memory is released it still may be addressed by the image?
20-01-2017

http://cr.openjdk.java.net/~azvegint/jdk/9/8166106/00/ I've not found any changes in glass in 8u20 which will cause this crash. It is more likely related to changes in GC, since it may fail with one GC option and work fine with other for me. Keeping references in Pixels class or on native side doesn't prevent this corruption. So I workaround it by passing ByteBuffer to native.
17-01-2017

[~kcr] yes, it is working fine on JDK 8.
18-10-2016

[~aroy] I see you marked this as introduced in 8u20. Does this mean that it works in JDK 8, and is thus a regression?
27-09-2016

Verified this issue against 8,8u11,8u20,8102,8u112ea,9ea on Mac OS and could confirm the issue as reported by the submitter. Steps to reproduce: ************************* - Compile attached test program(HelloWorld.java) with JDK >javac HelloWorld.java - Run with G1GC > java -XX:+UseG1GC HelloWorld - click the button and resize the application. ====================================== Result: ********* OS : OS X El Capitan (version 10.11.5) JDK: ++++ 8 b132 : Pass 8u05 b31 : Pass 8u11 b31 : Pass 8u20 b32 : Fail << ------------- introduced version 8u102 b14 : Fail 8u112ea b04 : Fail 9ea+122 : Fail Output: ####### 8u102 b14 ######### BAVAIDYA-Mac:~ dcsuser$ java -version java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) BAVAIDYA-Mac:~ dcsuser$ javac HelloWorld.java BAVAIDYA-Mac:~ dcsuser$ java -XX:+UseG1GC -DproxyHost=www-proxy.idc.oracle.com -DproxyPort=80 HelloWorld # # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0x00007fff9d7266d4, pid=22897, tid=0x0000000000000a0b # # JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [CoreGraphics+0x3f6d4] decode_swap+0x33 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/dcsuser/hs_err_pid22897.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Abort trap: 6 BAVAIDYA-Mac:~ dcsuser$ ----------------------------------------------------------------------------------------------------------------------------- 9ea+122 ######### BAVAIDYA-Mac:~ dcsuser$ javac HelloWorld.java BAVAIDYA-Mac:~ dcsuser$ java -XX:+UseG1GC -DproxyHost=www-proxy.idc.oracle.com -DproxyPort=80 HelloWorld # # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0x00007fff9d7266d4, pid=22635, tid=8971 # # JRE version: Java(TM) SE Runtime Environment (9.0+122) (build 9-ea+122) # Java VM: Java HotSpot(TM) 64-Bit Server VM (9-ea+122, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64) # Problematic frame: # C [CoreGraphics+0x3f6d4] decode_swap+0x33 # # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/dcsuser/hs_err_pid22635.log Phoning home... Using server: 10.161.186.18, port 4711 # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Abort trap: 6 BAVAIDYA-Mac:~ dcsuser$ =========================================================================================================================================== 8u112ea-b04 ############ BAVAIDYA-Mac:~ dcsuser$ java -version java version "1.8.0_112-ea" Java(TM) SE Runtime Environment (build 1.8.0_112-ea-b04) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b04, mixed mode) BAVAIDYA-Mac:~ dcsuser$ javac HelloWorld.java BAVAIDYA-Mac:~ dcsuser$ java -XX:+UseG1GC -DproxyHost=www-proxy.idc.oracle.com -DproxyPort=80 HelloWorld # # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0x00007fff9d7266d4, pid=22809, tid=0x0000000000000a0b # # JRE version: Java(TM) SE Runtime Environment (8.0_112-b04) (build 1.8.0_112-ea-b04) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b04 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [CoreGraphics+0x3f6d4] decode_swap+0x33 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/dcsuser/hs_err_pid22809.log Phoning home... Using server: 10.161.186.18, port 4711 # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Abort trap: 6 BAVAIDYA-Mac:~ dcsuser$
27-09-2016

I have verified that the test program works fine on 10.10.5 and fails on 10.11.6.
16-09-2016

Verified that this fails on 10.11.6 and does not fail on 10.9.5. This is likely some sort of use-after-free problem. If so, then it would be possible for it happen under other circumstances or with a different garbage collector.
16-09-2016