This code works in jfx 8.0 b54.
If we run it in jfx8.0 b57, we will see
!!! UNSUPPORTED PIXEL FORMAT: BYTE_GRAY
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f173f32d77a, pid=18404, tid=139737492854528
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b57)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b22 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x5d877a] jni_GetPrimitiveArrayCritical+0xba
#
# 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:
# /home/andrew/NetBeansProjects/Bug/hs_err_pid18404.log
Phoning home...
Using server: 10.161.186.18, port 4711
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
Java Result: 134
If we run it in jfx8.0 b57, we will see
!!! UNSUPPORTED PIXEL FORMAT: BYTE_GRAY
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f173f32d77a, pid=18404, tid=139737492854528
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b57)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b22 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x5d877a] jni_GetPrimitiveArrayCritical+0xba
#
# 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:
# /home/andrew/NetBeansProjects/Bug/hs_err_pid18404.log
Phoning home...
Using server: 10.161.186.18, port 4711
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
Java Result: 134