Skip to content

Qt: SG crash on stop with Wayland + Vulkan interface + libplacebo Vulkan

With QSG_RHI_BACKEND=vulkan, I observe a crash on stopping the player. Backtrace suggests that it might be a driver issue (I use nvidia-open), but it needs investigation if we are doing something wrong.

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007fff71938f70 in ?? () from /usr/lib/libnvidia-glcore.so.570.144
#2  0x00007fff71aa72a6 in ?? () from /usr/lib/libnvidia-glcore.so.570.144
#3  0x00007fffe6c3ab5e in QRhiVulkan::endFrame (this=0x7fff68211340, swapChain=0x7fff68240430, flags=...)
    at /usr/src/debug/qt6-base/qtbase/src/gui/rhi/qrhivulkan.cpp:2686
#4  0x00007fffe69b121e in QRhi::endFrame (this=0x7fff68003db0, swapChain=0x7fff68240430, flags=..., flags@entry=...)
    at /usr/src/debug/qt6-base/qtbase/src/gui/rhi/qrhi.cpp:11210
#5  0x00007fffe7c5a2fa in QSGRenderThread::syncAndRender (this=<optimized out>) at /usr/include/qt6/QtCore/qflags.h:76
#6  QSGRenderThread::run (this=0x7fffdc509e30) at /usr/src/debug/qt6-declarative/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:975
#7  0x00007fffe5ae44ff in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:433
#8  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:365
#9  QThreadPrivate::start (arg=0x7fffdc509e30) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:393
#10 0x00007ffff7b55708 in ?? () from /usr/lib/libc.so.6
#11 0x00007ffff7bd9aac in ?? () from /usr/lib/libc.so.6
Edited by Fatih Uzunoğlu
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information