Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-2275

Unloading and loading a new instance of Studio3D in QML crashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt 3D Studio 2.1 BETA1
    • Qt 3D Studio 2.0 Post-Release
    • Runtime 2.x
    • None
    • Windows

    Description

      The following example crashes after 1000ms when the second loader is activated.

      import QtQuick 2.2
      import QtQuick.Window 2.3
      import QtStudio3D 2.0
      
      Window {
          visible: true
          width: 640
          height: 480
      
          Loader {
              id: loader1
              active: true
              sourceComponent: Studio3D {
                  anchors.fill: parent
                  anchors.margins: 10
                  Presentation {
                      source: "file:///C:/Qt/Tools/Qt3DStudio/examples/studio3d/SampleProject/SampleProject.uip"
                  }
              }
          }
      
          Timer {
              running: true
              interval: 1000
              repeat: false
              onTriggered: {
                  loader1.active = false
                  loader1.visible = false
                  loader2.active = true
              }
          }
      
          Loader {
              id: loader2
              active: false
              sourceComponent: Studio3D {
                  anchors.fill: parent
                  anchors.margins: 10
                  Presentation {
                      source: "file:///C:/Qt/Tools/Qt3DStudio/examples/studio3d/SampleProject/SampleProject.uip"
                  }
              }
          }
      }
      

      While this might be relevant for application code, but it is also very relevant for the live preview. The life preview does not work reliably if it is not possible to "unload/reload" Studio3D items.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes