Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75292

Crash trying to load .jpg image via QImage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.12.1, 5.12.2, 5.12.3
    • Image formats
    • None
    • Windows

    Description

      With a 32-bit build of Qt 5.12.1 or 5.12.2 or 5.12.3 (specifically "qt/5.12.1@bincrafters/stable" and "qt/5.12.2@bincrafters/stable" and "qt/5.12.3@bincrafters/stable" from conan (https://bintray.com/bincrafters/public-conan/qt%3Abincrafters)), the following usage of QImage will cause a crash in qjpeghandler.cpp: 

      QImage i(R"(C:\test\Untitled.jpg)");

      The following will not crash, however, it will also not load the image properly:

      QImage i(R"("C:\test\Untitled.jpg")");
      auto test = i.isNull(); // returns true...

      This behavior can not be seen with 5.11 or a 64-bit build of 5.12.1/5.12.2.

       

      Call stack:

       

       

      I can't attach the .jpg, since Jira is giving me the following error (on any attachment, not just the jpg...):

       

       

      My test file was simply an empty 600x600 .jpg created with Paint.

      Attachments

        1. image-2019-04-29-11-23-02-207.png
          image-2019-04-29-11-23-02-207.png
          125 kB
        2. test.zip
          1 kB
        3. Untitled.jpg
          Untitled.jpg
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            rh Robert Habrich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes