FULL PRODUCT VERSION :
FX9
ADDITIONAL OS VERSION INFORMATION :
MacOSX-10.11+vmware
A DESCRIPTION OF THE PROBLEM :
On macosx guest:
When running javafx with Prism software pipeline user get CGLCreateContext error: 10002 in glass native code so this error causes empty window without showing any controls in app window.
Note: This problem is reproducible on javafx8.
REGRESSION. Last worked in version 9
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Enable Prism software pipeline with jvm arg -Dprsim.order=sw
ERROR MESSAGES/STACK TRACES THAT OCCUR :
CGLCreateContext error: 10002
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Any javafx sample
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
The following patch fixes this issue and I can run Ensemple8 application successfully.
diff -r 3f15f2e59063 modules/graphics/src/main/native-glass/mac/GlassView3D.m
--- a/modules/graphics/src/main/native-glass/mac/GlassView3D.m Wed Apr 13 12:36:43 2016 -0700
+++ b/modules/graphics/src/main/native-glass/mac/GlassView3D.m Thu Apr 14 23:08:16 2016 +0430
@@ -93,9 +93,18 @@
};
GLint npix = 0;
CGLError err = CGLChoosePixelFormat(attributes, &pix, &npix);
- if (err != kCGLNoError)
+ if (pix == NULL)
{
- NSLog(@"CGLChoosePixelFormat error: %d", err);
+ const CGLPixelFormatAttribute attributes2[] =
+ {
+ kCGLPFAAllowOfflineRenderers,
+ (CGLPixelFormatAttribute)0
+ };
+ err = CGLChoosePixelFormat(attributes2, &pix, &npix);
+ if (err != kCGLNoError)
+ {
+ NSLog(@"CGLChoosePixelFormat error: %d", err);
+ }
}
}
return pix;
FX9
ADDITIONAL OS VERSION INFORMATION :
MacOSX-10.11+vmware
A DESCRIPTION OF THE PROBLEM :
On macosx guest:
When running javafx with Prism software pipeline user get CGLCreateContext error: 10002 in glass native code so this error causes empty window without showing any controls in app window.
Note: This problem is reproducible on javafx8.
REGRESSION. Last worked in version 9
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Enable Prism software pipeline with jvm arg -Dprsim.order=sw
ERROR MESSAGES/STACK TRACES THAT OCCUR :
CGLCreateContext error: 10002
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Any javafx sample
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
The following patch fixes this issue and I can run Ensemple8 application successfully.
diff -r 3f15f2e59063 modules/graphics/src/main/native-glass/mac/GlassView3D.m
--- a/modules/graphics/src/main/native-glass/mac/GlassView3D.m Wed Apr 13 12:36:43 2016 -0700
+++ b/modules/graphics/src/main/native-glass/mac/GlassView3D.m Thu Apr 14 23:08:16 2016 +0430
@@ -93,9 +93,18 @@
};
GLint npix = 0;
CGLError err = CGLChoosePixelFormat(attributes, &pix, &npix);
- if (err != kCGLNoError)
+ if (pix == NULL)
{
- NSLog(@"CGLChoosePixelFormat error: %d", err);
+ const CGLPixelFormatAttribute attributes2[] =
+ {
+ kCGLPFAAllowOfflineRenderers,
+ (CGLPixelFormatAttribute)0
+ };
+ err = CGLChoosePixelFormat(attributes2, &pix, &npix);
+ if (err != kCGLNoError)
+ {
+ NSLog(@"CGLChoosePixelFormat error: %d", err);
+ }
}
}
return pix;
- relates to
-
JDK-8154148 [Mac] JavaFX crashes on startup when run on Mac in VMWare
-
- Resolved
-
-
JDK-8235627 Blank stages when running JavaFX app in a macOS virtual machine
-
- Resolved
-