Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-361

App crashes by loading Component include animation with Loader

    XMLWordPrintable

Details

    • All
    • Auto team Sprint 3.10

    Description

      If the component defined in the same QML file has some animation, the app will crash when loading that component.

      App crashes by following QML code.

      Rectangle {
          Component {
              id: comp
              Text {
                  id: textItem
                  property int num: 0
                  text: num
                  NumberAnimation {
                      target: textItem
                      property: "num"
                      running: false
                      loops: -1
                      to: 2000
                      from: 0
                  }
              }
          }
          Loader {
              active: true
              sourceComponent: comp
          }
      } 

       

      Attached reproduced project: qtmcu361.zip

      Error with Windows(msvc) as follows:

      Call Stack:

      Workarounds: separate the component to another QML file.

      Attachments

        Issue Links

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

          Activity

            People

              k0rahman Karim Abdelrahman
              wataru Wataru Higashiyama
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes