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

Crash when printing WebView node for some URLs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: openjfx15
    • Fix Version/s: openjfx17
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
      web
    • OS:
      linux, os_x, os_x_10.15

      Description

      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`

        Attachments

          Activity

            People

            Assignee:
            ajoseph Arun Joseph
            Reporter:
            jvos Johan Vos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: