Jvm crash: es2 pipeline crashs jvm on macosx vm

Ali Ebrahimi ali.ebrahimi1781 at gmail.com
Thu Apr 14 19:16:50 UTC 2016


When running javafx apps with es2 pipeline on macosx vm I get jvm crash.

The following patch fixes this issue and I can run Ensemple8 application
with es2 pipeline successfully.
The good news is that 3D support is works fine.

diff -r 3f15f2e59063
modules/graphics/src/main/native-prism-es2/macosx/MacOSXWindowSystemInterface.m
---
a/modules/graphics/src/main/native-prism-es2/macosx/MacOSXWindowSystemInterface.m
Wed
Apr 13 12:36:43 2016 -0700
+++
b/modules/graphics/src/main/native-prism-es2/macosx/MacOSXWindowSystemInterface.m
Thu
Apr 14 23:45:18 2016 +0430
@@ -68,7 +68,12 @@
     NSOpenGLPixelFormat *fmt = [[NSOpenGLPixelFormat alloc]
initWithAttributes : attribs];
     if (fmt == nil) {
         // should we fallback to defaults or not?
-        fmt = [NSOpenGLView defaultPixelFormat];
+        //fmt = [NSOpenGLView defaultPixelFormat];
+        NSOpenGLPixelFormatAttribute attributes[] = {
+            NSOpenGLPFAAllowOfflineRenderers,
+            0
+        };
+        fmt = [[NSOpenGLPixelFormat alloc] initWithAttributes :
attributes];
     }

     [pool release];

-- 

Best Regards,
Ali Ebrahimi


More information about the openjfx-dev mailing list