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

QPixmap will crash when create

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.9.2
    • Image formats
    • None
    • system: win 10

      qt: 5.9.2 vs2015 64bit

    Description

      I created a project to convert png images, and got crash when loading png file to QPixmap.

      It crashed in QOpenGLFunction.

      but when i change QCoreApplication to QApplication, the crash disappeared!
       

      backtrace is here:

      . 0 Id: 1228.3d78 Suspend: 1 Teb: 00000048`379e7000 Unfrozen
      Child-SP RetAddr Call Site
      00000048`3770f8b0 00007ffd`f119d9c4 Qt5Guid!QOpenGLFunctions_3_1::glGetActiveUniformBlockiv+0x1b2a98
      00000048`3770f8f0 00007ffd`f119b3cb Qt5Guid!QOpenGLFunctions_3_1::glGetActiveUniformBlockiv+0x1a959c
      00000048`3770fa10 00007ff6`fb171bf1 Qt5Guid!QOpenGLFunctions_3_1::glGetActiveUniformBlockiv+0x1a6fa3
      00000048`3770fa40 00007ff6`fb175ebd convertpngiccp!main(int argc = 0n2, char ** argv = 0x000001b3`b311d210)+0x1d1 [c:\work\convertpngiccp\main.cpp @ 27]
      00000048`3770fb90 00007ff6`fb173a6d convertpngiccp!WinMain(struct HINSTANCE__ * __formal = 0x00007ff6`fb170000)+0xed [c:\users\qt\work\qt\qtbase\src\winmain\qtmain_win.cpp @ 104]
      00000048`3770fc10 00007ff6`fb173917 convertpngiccp!invoke_main(void)+0x2d [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 99]
      00000048`3770fc50 00007ff6`fb1737de convertpngiccp!__scrt_common_main_seh(void)+0x127 [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 253]
      00000048`3770fcb0 00007ff6`fb173a89 convertpngiccp!__scrt_common_main(void)+0xe [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 296]
      00000048`3770fce0 00007ffe`2abf8364 convertpngiccp!WinMainCRTStartup(void)+0x9 [f:\dd\vctools\crt\vcstartup\src\startup\exe_winmain.cpp @ 17]
      00000048`3770fd10 00007ffe`2d1f7091 KERNEL32!BaseThreadInitThunk+0x14
      00000048`3770fd40 00000000`00000000 ntdll!RtlUserThreadStart+0x21

      1 Id: 1228.978 Suspend: 1 Teb: 00000048`379e9000 Unfrozen
      Child-SP RetAddr Call Site
      00000048`37aff968 00007ffe`2d1c354e ntdll!ZwWaitForWorkViaWorkerFactory+0x14
      00000048`37aff970 00007ffe`2abf8364 ntdll!RtlReleaseSRWLockExclusive+0x1ade
      00000048`37affd70 00007ffe`2d1f7091 KERNEL32!BaseThreadInitThunk+0x14
      00000048`37affda0 00000000`00000000 ntdll!RtlUserThreadStart+0x21

      2 Id: 1228.4a34 Suspend: 1 Teb: 00000048`379eb000 Unfrozen
      Child-SP RetAddr Call Site
      00000048`37bffa68 00007ffe`2d1c354e ntdll!ZwWaitForWorkViaWorkerFactory+0x14
      00000048`37bffa70 00007ffe`2abf8364 ntdll!RtlReleaseSRWLockExclusive+0x1ade
      00000048`37bffe70 00007ffe`2d1f7091 KERNEL32!BaseThreadInitThunk+0x14
      00000048`37bffea0 00000000`00000000 ntdll!RtlUserThreadStart+0x21

      3 Id: 1228.510c Suspend: 1 Teb: 00000048`379ed000 Unfrozen
      Child-SP RetAddr Call Site
      00000048`37cffaf8 00007ffe`2d1c354e ntdll!ZwWaitForWorkViaWorkerFactory+0x14
      00000048`37cffb00 00007ffe`2abf8364 ntdll!RtlReleaseSRWLockExclusive+0x1ade
      00000048`37cfff00 00007ffe`2d1f7091 KERNEL32!BaseThreadInitThunk+0x14
      00000048`37cfff30 00000000`00000000 ntdll!RtlUserThreadStart+0x21

      Attachments

        1. convertpngiccp.pro
          0.0 kB
        2. main.cpp
          0.9 kB

        Issue Links

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

          Activity

            People

              vgt Eirik Aavitsland
              zhgn mark zhao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes