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

Fboitem example causes MSVC debug assertion on closing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.5
    • Quick: Other
    • None
    • Visual Studio v17.2.6; cl.exe 19.32.31332; qt5 commit d3460c1f235cccc183148596d906350f0c2e06da
    • Windows

    Description

      Built qtbase, qtshadertools and qtdeclarative on qt5@d3460c1f235cccc183148596d906350f0c2e06da with:

      C:\qt_git\qtbase\configure.bat -opengl desktop -release -shared -ltcg -force-debug-info -nomake examples -nomake tests -prefix "C:\install"
      

      Then aforementioned repos with:

      C:\install\bin\qt-configure-module.bat C:\qt_git\qtdeclarative
      

      Built the Fboitem example with:

      C:\install\bin\qt-cmake-private.bat C:\qt_git\qtdeclarative\examples\quick\scenegraph\fboitem
      

      When closing the Fboitem example window, a debug assertion is thrown. See screenshot.

      This is the backtrace:

       # Call Site
      00 ntdll!RtlpBreakPointHeap+0x16
      01 ntdll!RtlpValidateHeapEntry+0x5ec5c
      02 ntdll!RtlValidateHeap+0x95
      03 KERNELBASE!HeapValidate+0xb
      04 ucrtbased!_CrtIsValidHeapPointer+0x42 [minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp @ 1407] 
      05 ucrtbased!free_dbg_nolock+0x141 [minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp @ 904] 
      06 ucrtbased!_free_dbg+0x55 [minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp @ 1030] 
      07 fboitem!operator delete+0x18 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\delete_scalar.cpp @ 38] 
      08 fboitem!QQmlPrivate::QQmlElement<FboInSGRenderer>::operator delete+0x14 [C:\qtbug_108015_install\include\QtQml\qqmlprivate.h @ 107] 
      09 fboitem!QQmlPrivate::QQmlElement<FboInSGRenderer>::`scalar deleting destructor'+0x38
      0a Qt6Core!QObjectPrivate::deleteChildren+0x7d [C:\qt_git\qtbase\src\corelib\kernel\qobject.cpp @ 2158] 
      0b Qt6Core!QObject::~QObject+0x63d [C:\qt_git\qtbase\src\corelib\kernel\qobject.cpp @ 1101] 
      0c Qt6Quick!QQmlPrivate::QQmlElement<QQuickItem>::{dtor}+0x28 [C:\qt_git\qtdeclarative\src\qml\qml\qqmlprivate.h @ 99] 
      0d Qt6Quick!QQmlPrivate::QQmlElement<QQuickItem>::`scalar deleting destructor'+0x32
      0e Qt6Quick!QQuickView::~QQuickView+0x53 [C:\qt_git\qtdeclarative\src\quick\items\qquickview.cpp @ 176] 
      0f fboitem!main+0x10f [C:\qt_git\qtdeclarative\examples\quick\scenegraph\fboitem\main.cpp @ 21] 
      10 fboitem!WinMain+0x157 [C:\qt_git\qtbase\src\entrypoint\qtentrypoint_win.cpp @ 50] 
      11 fboitem!invoke_main+0x32 [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 107] 
      12 fboitem!__scrt_common_main_seh+0x12e [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 
      13 fboitem!__scrt_common_main+0xe [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331] 
      14 fboitem!WinMainCRTStartup+0xe [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_winmain.cpp @ 17] 
      15 KERNEL32!BaseThreadInitThunk+0x14
      16 ntdll!RtlUserThreadStart+0x21
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jkauffmann Johannes Kauffmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes