Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8154852

Glass bug: Prism software pipeline: CGLCreateContext error: 10002

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      other

      Description

      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;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ckyang Chien Yang (Inactive)
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: