Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27121

Inconsistent handling of broken image files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 7.0.0-rc1
    • Qt Creator 6.0.2, Qt Creator 7.0.0-beta2
    • All Other Issues
    • None
    • Ubuntu 20.04 LTS
    • 897907f401 (qt-creator/qt-creator/7.0) 897907f401 (qt-creator/tqtc-qt-creator/7.0) 897907f401 (qt-creator/qt-creator/master) 897907f401 (qt-creator/tqtc-qt-creator/master) 897907f401 (qt-creator/qt-creator/qds-3.3)

    Description

      1. Try opening the attached .bmp file in Creator.
        You'll see a message box which informs you that the file could not be loaded and offers to open the file in the binary editor instead.
      2. Try opening the attached .gif file in Creator.
        Creator shows an empty image viewer. Only on the command-line you can read:
        qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 128 megabytes
        

      It would be better if Creator could handle all broken (image) files in the same way. The way .bmp files are handled seems preferable to me.

      Attachments

        1. oss-fuzz-23588.svg
          0.0 kB
        2. oss-fuzz-22997.bmp
          0.1 kB
        3. oss-fuzz-22914.gif
          oss-fuzz-22914.gif
          0.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            con Eike Ziller
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes