jai-imageio-core
  1. jai-imageio-core
  2. JAI_IMAGEIO_CORE-115

SSE2 native JPEG reader crashes when reading lossy JPEG color image

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: milestone 1
    • Component/s: codeclib
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      115

      Description

      The NATIVE SSE2 version of the JIIO JPEG reader crashes on Windows XP when
      reading certain lossy JPEG color images.

      A sample of such "problematic" JPEG color images (8-bit per channel,
      photometric interpretation YBR_FULL_422) can be downloaded from:

      http://test.neologica.it/USImage.jpg

      This sample JPEG image has been extracted from a multi-frame DICOM file
      (Ultrasound).

      I attach a test application which demonstrates the problem. This application
      causes the JVM to crash and exit unexpectedly on my machine (Pentium 4 3 GHz,
      Win XP Pro SP2, JRE v1.6.0, JAI v1.1.3, JIIO v1.1). Here is a fragment of the
      JVM crash dump obtained on my PC:

      1. EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0378ff2c, pid=3336,
        tid=6088
        #
      2. Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing) #
        Problematic frame:
      3. C [clib_jiio_sse2.dll+0xaff2c]
        #
        [..]

      For some reason, I am unable to reproduce the problem on Windows versions
      different from Win XP (e.g., Windows 2000 Server, Windows 2003 Server).

      Also, the test application works fine (i.e., does not crash and correctly
      displays the image) if the "clib_jiio_sse2.dll" is removed from my PC, or if
      using the pure-Java version of the JPEG reader.

        Activity

        Hide
        marconeol added a comment -

        Created an attachment (id=70)
        Sample Java app demonstrating the problem

        Show
        marconeol added a comment - Created an attachment (id=70) Sample Java app demonstrating the problem
        Hide
        jxc added a comment -

        Reassign to jxc.

        Show
        jxc added a comment - Reassign to jxc.
        Hide
        jxc added a comment -

        I can reproduce the problem with the attached test case on
        Pentium M, Win XP Pro SP2, JRE v1.6.0, JAI v1.1.3, JIIO v1.1

        Show
        jxc added a comment - I can reproduce the problem with the attached test case on Pentium M, Win XP Pro SP2, JRE v1.6.0, JAI v1.1.3, JIIO v1.1
        Hide
        jxc added a comment -
        Show
        jxc added a comment - See similar crashes reported at https://jai-imageio-core.dev.java.net/issues/show_bug.cgi?id=126

          People

          • Assignee:
            jxc
            Reporter:
            marconeol
          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: