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

Crash in JPEGImageLoader after fix for JDK-8212034

XMLWordPrintable

        After the fix for JDK-8212034 (memory leaks in jpegLoader.c), many web sites that load images, including the default https://www.oracle.com/java/ site, will crash in "com.sun.javafx.iio.jpeg.JPEGImageLoader.initDecompressor".

        Here is the simplest test case I could find that crashes:

        $ java HelloWebView https://www.oracle.com/a/ocom/img/ch10-java-home-banner.jpg

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffed7dcbfba, pid=23776, tid=21224
        #
        # JRE version: OpenJDK Runtime Environment (14.0+36) (build 14+36-1461)
        # Java VM: OpenJDK 64-Bit Server VM (14+36-1461, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
        # Problematic frame:
        # C 0x00007ffed7dcbfba

        The crash is here:

        Current thread (0x000001cc40753800): JavaThread "JavaFX Application Thread" [_thread_in_native, id=21224, stack(0x000000c9b0700000,0x000000c9b0800000)]

        Stack: [0x000000c9b0700000,0x000000c9b0800000], sp=0x000000c9b07fcea0, free space=1011k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        C 0x00007ffed7dcbfba

        Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
        j com.sun.javafx.iio.jpeg.JPEGImageLoader.initDecompressor(Ljava/io/InputStream;)J+0 javafx.graphics
        j com.sun.javafx.iio.jpeg.JPEGImageLoader.<init>(Ljava/io/InputStream;)V+45 javafx.graphics
        j com.sun.javafx.iio.jpeg.JPEGImageLoaderFactory.createImageLoader(Ljava/io/InputStream;)Lcom/sun/javafx/iio/ImageLoader;+5 javafx.graphics

        I have attached the crash log.

        This works fine if I locally revert the fix for JDK-8212034

              arapte Ambarish Rapte
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: