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

Win: Fatal JNI error in DirectWrite code

    XMLWordPrintable

    Details

      Description

      Run SwingInterop demo with -Xcheck:jni and observe the following error:

           [java] FATAL ERROR in native method: Field type (instance) mismatch in JNI get/set field operations
           [java] at com.sun.javafx.font.directwrite.OS.CreateGlyphRunAnalysis(Native Method)
           [java] at com.sun.javafx.font.directwrite.IDWriteFactory.CreateGlyphRunAnalysis(IDWriteFactory.java:84)
           [java] at com.sun.javafx.font.directwrite.DWGlyph.createAnalysis(DWGlyph.java:242)
           [java] at com.sun.javafx.font.directwrite.DWGlyph.checkBounds(DWGlyph.java:98)
           [java] at com.sun.javafx.font.directwrite.DWGlyph.getWidth(DWGlyph.java:327)
           [java] at com.sun.prism.impl.GlyphCache.getCachedGlyph(GlyphCache.java:278)
           [java] at com.sun.prism.impl.GlyphCache.render(GlyphCache.java:153)
           [java] at com.sun.prism.impl.ps.BaseShaderGraphics.drawString(BaseShaderGraphics.java:2121)
           [java] at com.sun.javafx.sg.prism.NGText.renderText(NGText.java:312)
           [java] at com.sun.javafx.sg.prism.NGText.renderContent2D(NGText.java:270)
           [java] at com.sun.javafx.sg.prism.NGShape.renderContent(NGShape.java:225)
           [java] at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
           [java] at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
           [java] at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
           [java] at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
           [java] at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
           [java] at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
           [java] at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
           [java] at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
           [java] at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
           [java] at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
           [java] at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
           [java] at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
           [java] at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
           [java] at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
           [java] at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
           [java] at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
           [java] at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
           [java] at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
           [java] at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:472)
           [java] at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:331)
           [java] at com.sun.javafx.tk.quantum.UploadingPainter.run(UploadingPainter.java:121)
           [java] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           [java] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
           [java] at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
           [java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [java] at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
           [java] at java.lang.Thread.run(Thread.java:724)

        Attachments

          Activity

            People

            Assignee:
            fheidric Felipe Heidrich (Inactive)
            Reporter:
            art Artem Ananiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: