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

Assertion when reading an icns file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 5.6
    • Image formats
    • None

    Description

      When loading the attached icns file, the attached example creates this backtrace:

      0090f034 68d6b16e MSVCR120D!_wassert(wchar_t * expr = 0x68e0ef54 "dec->numcomps == 3", wchar_t * filename = 0x68e0eee8 "..\..\..\3rdparty\jasper\src\libjasper\jpc\jpc_dec.c", unsigned int lineno = 0x430)+0xbf0 [f:\dd\vctools\crt\crtw32\misc\assert.c @ 369]
      0090f094 68d6d29f qjp2d!jpc_dec_tiledecode(struct jpc_dec_t * dec = 0x0096c0e0, struct jpc_dec_tile_t * tile = 0x00982518)+0x1ee [c:\users\aportale\dev\qt5\qtimageformats\src\3rdparty\jasper\src\libjasper\jpc\jpc_dec.c @ 1072]
      0090f0d8 68d6aaa5 qjp2d!jpc_dec_process_sod(struct jpc_dec_t * dec = 0x0096c0e0, struct jpc_ms_t * ms = 0x00000000)+0x37f [c:\users\aportale\dev\qt5\qtimageformats\src\3rdparty\jasper\src\libjasper\jpc\jpc_dec.c @ 620]
      0090f0f8 68d6942c qjp2d!jpc_dec_decode(struct jpc_dec_t * dec = 0x0096c0e0)+0xd5 [c:\users\aportale\dev\qt5\qtimageformats\src\3rdparty\jasper\src\libjasper\jpc\jpc_dec.c @ 390]
      0090f11c 68d61a48 qjp2d!jpc_decode(struct jas_stream_t * in = 0x0096bd08, char * optstr = 0x00000000 "")+0x5c [c:\users\aportale\dev\qt5\qtimageformats\src\3rdparty\jasper\src\libjasper\jpc\jpc_dec.c @ 254]
      0090f1dc 68d52f1f qjp2d!jp2_decode(struct jas_stream_t * in = 0x0096bd08, char * optstr = 0x00000000 "")+0x2a8 [c:\users\aportale\dev\qt5\qtimageformats\src\3rdparty\jasper\src\libjasper\jp2\jp2_dec.c @ 215]
      0090f1f8 68d43a85 qjp2d!jas_image_decode(struct jas_stream_t * in = 0x0096bd08, int fmt = 0n4, char * optstr = 0x00000000 "")+0x5f [c:\users\aportale\dev\qt5\qtimageformats\src\3rdparty\jasper\src\libjasper\base\jas_image.c @ 372]
      0090f320 68d43673 qjp2d!Jpeg2000JasperReader::read(class QImage * pImage = 0x0090f4cc)+0x65 [c:\users\aportale\dev\qt5\qtimageformats\src\plugins\imageformats\jp2\qjp2handler.cpp @ 381]
      0090f3a4 5900b1e9 qjp2d!QJp2Handler::read(class QImage * image = 0x0090f4cc)+0x33 [c:\users\aportale\dev\qt5\qtimageformats\src\plugins\imageformats\jp2\qjp2handler.cpp @ 238]
      0090f4a0 5900aef4 Qt5Guid!QImageReader::read(class QImage * image = 0x0090f4cc)+0x279 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimagereader.cpp @ 1235]
      0090f4ec 58ff1490 Qt5Guid!QImageReader::read(void)+0x24 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimagereader.cpp @ 1185]
      0090f50c 58f35194 Qt5Guid!QImage::fromData(unsigned char * data = 0x0096c730 "", int size = 0n36828, char * format = 0x6afb2a84 "jp2")+0x70 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimage.cpp @ 3269]
      0090f524 6afa6dd0 Qt5Guid!QImage::fromData(class QByteArray * data = 0x0090f5f4, char * format = 0x6afb2a84 "jp2")+0x24 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimage.h @ 284]
      0090f628 5900b1e9 qicnsd!QICNSHandler::read(class QImage * outImage = 0x0090f750)+0x310 [c:\users\aportale\dev\qt5\qtimageformats\src\plugins\imageformats\icns\qicnshandler.cpp @ 733]
      0090f724 5900aef4 Qt5Guid!QImageReader::read(class QImage * image = 0x0090f750)+0x279 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimagereader.cpp @ 1235]
      0090f770 58ff1273 Qt5Guid!QImageReader::read(void)+0x24 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimagereader.cpp @ 1185]
      0090f7a0 58fec312 Qt5Guid!QImage::load(class QString * fileName = 0x0090f808, char * format = 0x00000000 "")+0x33 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimage.cpp @ 3195]
      0090f7b4 00e62538 Qt5Guid!QImage::QImage(class QString * fileName = 0x0090f808, char * format = 0x00000000 "")+0x32 [c:\users\aportale\dev\qt5\qtbase\src\gui\image\qimage.cpp @ 951]
      0090f818 00e6515d icns_crash!main(int argc = 0n1, char ** argv = 0x00956c98)+0x58 [c:\users\aportale\ownprojects\stuff\bugs\icns-crash\main.cpp @ 7]
      0090f84c 00e6453f icns_crash!WinMain(struct HINSTANCE__ * __formal = 0x00e60000, struct HINSTANCE__ * __formal = 0x00000000, char * __formal = 0x009566d9 "", int __formal = 0n10)+0xad [c:\users\aportale\dev\qt5\qtbase\src\winmain\qtmain_win.cpp @ 113]
      0090f8b0 00e642fd icns_crash!__tmainCRTStartup(void)+0x23f [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c @ 618]
      0090f8b8 76f17c04 icns_crash!WinMainCRTStartup(void)+0xd [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c @ 466]
      0090f8cc 7727b54f KERNEL32!BaseThreadInitThunk+0x24
      0090f914 7727b51a ntdll!__RtlUserThreadStart+0x2f
      0090f924 00000000 ntdll!_RtlUserThreadStart+0x1b
      

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            portale Alessandro Portale
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes