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

Crash when printing WebView node for some URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • jfx25
    • jfx15
    • 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`

            jbhaskar Jay Bhaskar
            jvos Johan Vos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: