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

Crash during printing when disposing textures

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • jfx20
    • jfx16
    • javafx
    • None
    • b03

      For some an unknown reason, this has been only reproducible on Mac.
      But I don't see a technical reason, why this shouldn't happen also on Windows are Linux.

      To reproduce this bug, in a minimal setup, we have to make sure of the following:
       - maximum available ram should be minimal, to quicker reproduce this issue. Setting it to 100MB with -Xmx100m worked for me.
       - Stimulating the GC is helpful - especially to make sure the timing of the GC is random instead of when the application allocates something. The timing of the GC is important, otherwise the textures get disposed from the JavaFX thread.
       - We have to create enough textures from the JavaFX Thread.
       - The printing thread has to depose one of these textures. This is sometimes triggered during printing textures.

       (In the affected application, this crash is triggered about every 3rd print with javafx)


      files:
       - hs_err file
       - test image
       - reproducing test program

        1. hs_err_pid19558.log
          105 kB
          Florian Kirmaier
        2. pumpkins2.jpeg
          622 kB
          Florian Kirmaier
        3. TestPrinting.java
          4 kB
          Florian Kirmaier

            fkirmaier Florian Kirmaier
            fkirmaier Florian Kirmaier
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: