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

Crash on attemptedd load of large TIFF file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.4.3
    • Image formats
    • None
    • Android, Linux/Wayland

    Description

      My application crashes when I attempt to load a large TIFF file (>180MB of compressed data). The following error message is printed to the command line:

      > qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 128 megabytes
      > ASSERT: "pos <= size()" in file /home/kebekus/Software/buildsystems/Qt/6.4.3/gcc_64/include/QtCore/qstring.h, line 625
      > 08:41:08: /home/kebekus/Software/projects/build-enroute-Desktop_Qt_6_4_3_GCC_64bit-Debug/src/enroute ist abgestürzt.

      I understand that QImageIOHandler does not want to load a file that large, but I would strongly prefer proper error handling (i.e. returning a null-image) rather than a crash.

      Best,

      Stefan Kebekus.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            skebekus Stefan Kebekus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes