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

Prism/ES2: RuntimeException: Error creating fragment shader for LCD text on Windows

XMLWordPrintable

      Here's the stack trace of the exception:

           [java] Ensemble2.goToPage[SAMPLES]
           [java] java.lang.reflect.InvocationTargetException
           [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           [java] at java.lang.reflect.Method.invoke(Method.java:597)
           [java] at com.sun.prism.es2.ES2ResourceFactory.createStockShader(ES2ResourceFactory.java:199)
           [java] at com.sun.prism.impl.ps.BaseShaderContext.getTextureSecondPassLCDShader(BaseShaderContext.java:246)
           [java] at com.sun.prism.impl.ps.BaseShaderContext.validateLCDOp(BaseShaderContext.java:420)
           [java] at com.sun.prism.impl.ps.BaseShaderGraphics.drawString(BaseShaderGraphics.java:1279)
           [java] at com.sun.javafx.sg.prism.NGText.renderContent(NGText.java:1006)
      ...
           [java] Caused by: java.lang.RuntimeException: Error creating fragment shader
           [java] at com.sun.prism.es2.ES2Shader.createFromSource(ES2Shader.java:151)
           [java] at com.sun.prism.es2.ES2ResourceFactory.createShader(ES2ResourceFactory.java:102)
           [java] at com.sun.prism.shader.Solid_TextureSecondPassLCD_Loader.loadShader(Solid_TextureSecondPassLCD_Loader.java:52)
           [java] ... 106 more

      I haven't seen the problem before and likely it's a regression introduced by some recent change (might be related to LCD text support).

      The problem seems to be related to LCD shader and here's the shader compilation log (Solid_TextureSecondPassLCD.frag attached):

      0(23) : error C1115: unable to find compatible overloaded function "any(vec3)"
      0(26) : warning C7011: implicit cast from "float" to "vec3"
      0(28) : warning C7011: implicit cast from "float" to "vec3"

      We need to make sure that the shader source code conforms to GLSL specification.

            jandrese Joe Andresen (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: