Crash when printing WebView node for some URLs

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • jfx26
    • Affects Version/s: jfx15
    • Component/s: javafx
    • None
    • web
    • linux, os_x, os_x_10.15

      For some URL's, printing the WebView node causes a crash on Linux/Mac (using prism-es2). The crash occurs when invoking
      `glActiveTexture(GL_TEXTURE0)` by the print thread.
      It seems both the Quantum Renderer and the printer thread are manipulating the OpenGL State

      The attached program causes a crash on Mac/Linux, using Java 15 and JavaFX 15. The print job is invoked on the JavaFX Application Thread, but outside of animations -- otherwise J2DPrinterJob.print would complain since Toolkit.getToolkit().canStartNestedEventLoop() would return false.

      Note that when changing the URL from "https://gluonhq.com" to "http://lodgon.com", there is no problem. Hence, it seems to depend on what the WebView actually needs to render.
      Also, since the crash is in prism-es2, the attached program works fine when supplying `-Dprism.verbose=sw`

        1. JfxLoadingBugTest.java
          3 kB
          Johan Vos
        2. log.txt
          10 kB
          Johan Vos

            Assignee:
            Jay Bhaskar
            Reporter:
            Johan Vos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: