Details
Description
Not setting a width or height or anchors for a View3D can lead to a crash, but only when running with OpenGL. Whereas Vulkan and D3D do not crash.
New Lancelot test showcasing the problem is at https://codereview.qt-project.org/c/qt/qtquick3d/+/339071
Qt6Gui.dll!QRhiGles2::enqueueResourceUpdates(QRhiCommandBuffer * cb, QRhiResourceUpdateBatch * resourceUpdates) Line 1950 C++ > Qt6Quick3D.dll!QQuick3DSceneRenderer::renderToRhiTexture(QQuickWindow * qw) Line 381 C++ Qt6Quick3D.dll!SGFramebufferObjectNode::render() Line 118 C++ Qt6Quick.dll!QSGRenderer::preprocess() Line 262 C++ Qt6Quick.dll!QSGRenderer::renderScene() Line 176 C++ [Inline Frame] Qt6Quick.dll!QQuickWindow::afterRendering() Line 580 C++ Qt6Quick.dll!QQuickWindowPrivate::renderSceneGraph(const QSize & size, const QSize & surfaceSize) Line 683 C++ Qt6Quick.dll!QSGRenderThread::syncAndRender() Line 788 C++ Qt6Quick.dll!QSGRenderThread::run() Line 991 C++ Qt6Core.dll!QThreadPrivate::start(void * arg) Line 329 C++
Attachments
For Gerrit Dashboard: QTBUG-91871 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
339071,3 | Add Lancelot test for View3D without size specified | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
339083,3 | Skip progressive/temporal AA when the initial size is 0 | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
339159,2 | Add Lancelot test for View3D without size specified | 6.1 | qt/qtquick3d | Status: MERGED | +2 | 0 |
339315,2 | Skip progressive/temporal AA when the initial size is 0 | 6.1 | qt/qtquick3d | Status: MERGED | +2 | 0 |