Glass: CGLCreateContext error: 10002: empty window on MacOSX VM
Chien Yang
chien.yang at oracle.com
Sat Apr 16 17:36:28 UTC 2016
Thanks for filing the report! We will look into fixing the crash with
the information you have shared. I know this might be a surprise to you
please note that VMware is not a certified hypervisor for Java 8.
http://www.oracle.com/technetwork/java/javase/certconfig-2095354.html
- Chien
On 4/14/16, 11:20 PM, Ali Ebrahimi wrote:
> Done. Review ID: JI-9035391
>
> On Fri, Apr 15, 2016 at 2:47 AM, Chien Yang <chien.yang at oracle.com
> <mailto:chien.yang at oracle.com>> wrote:
>
> We are interested in knowing how and when you use the software
> pipe of JavaFX on Mac. Can you please submit a bug report and
> provide those information?
>
> https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report
>
> Thanks,
> - Chien
>
>
> On 4/14/2016 11:41 AM, Ali Ebrahimi wrote:
>
> On macosx vm:
>
> We running with software pipeline user get CGLCreateContext
> error: 10002 in
> glass native code so this error causes empty window without
> any controls in
> app window.
>
> 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;
>
>
>
>
>
> --
>
> Best Regards,
> Ali Ebrahimi
More information about the openjfx-dev
mailing list