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

Crash in QRhiD3D11::endFrame() with nullptr access

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.3.2
    • Qt RHI
    • None
    • Windows

      I see such crashes among our users crash reports. It's never reproduced for me locally and I have no idea why this may happen for end users.

      Unhandled exception at 0x00007FFE67B9E1C3 (Qt6Gui.dll) in minidump (10).dmp: 0xC0000005: Access violation reading location 0x0000000000000000.
      

      Stack:

      >	Qt6Gui.dll!QRhiD3D11::endFrame(QRhiSwapChain * swapChain, QFlags<enum QRhi::EndFrameFlag> flags) Line 1185	C++
       	Qt6Gui.dll!QRhi::endFrame(QRhiSwapChain * swapChain, QFlags<enum QRhi::EndFrameFlag> flags) Line 6799	C++
       	Qt6Quick.dll!QSGRenderThread::syncAndRender() Line 792	C++
       	Qt6Quick.dll!QSGRenderThread::run() Line 990	C++
       	Qt6Core.dll!QThreadPrivate::start(void * arg) Line 328	C++
       	kernel32.dll!BaseThreadInitThunk()	Unknown
       	ntdll.dll!RtlUserThreadStart()	Unknown
      

       

      Seems swapChainD->swapChain might be nullptr in some cases and this provokes the crash.

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