Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Scene3d instances issue



  • Hi everyone,

    We're currently having some issues with Scene3D instances being displayed on multiple windows (all being created as Loader from the main app). To quote the documentation, "it is not recommended to instantiate more than a single Scene3D instance per application. The reason for this is that a Scene3D instance instantiates the entire Qt 3D engine (memory managers, thread pool, render ...) under the scene." (https://doc.qt.io/qt-5/qml-qtquick-scene3d-scene3d.html).

    Since we need to open multiple windows separately from the main one (QtQuick Window), we found it was obvious to use Scene3D instead of Scene3DView on each window (since they will cover different screen space). Unfortunately, whenever we close one of this window, our application crashes erroring out on a QSGRenderThread.

    What is the best way to display multiple windows with their one Scene3D instances ?

    thanksstack_trace.png


Log in to reply