Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132163

Animator crashes when paused is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.4
    • Quick: Other
    • None

    Description

      When an animator is paused and then again resumed, it crashes:

      [FATL | default] ASSERT: "!job->isRunning()" in file [...]quick/util/qquickanimatorcontroller.cpp, line 100 [qquickanimatorcontroller.cpp:100]

      Both happening when using pause() and resume() and paused property itself.

      If running is extended to also listen to root.isAnimationPaused, it's not crashing, but animator is also starting from beginning instead of resuming from position where it was paused.

      minor example:

       

      import QtQuick
      import QtQuick.Controls
      
      Item {
          id: root
          property bool isAnimationPaused: false
      
          ScaleAnimator {
              target: _shine 
              paused: root.isAnimationPaused
              from: 1.0
              to: 0.5
              running: true
              loops: Animation.Infinite
          }
      
          Rectangle {
              id: _shine
              opacity: 0.75
              width: 200
              height: 200
          } 
      
          Button {
              text: "Toggle"
              onClicked: {
                  root.isAnimationPaused = !root.isAnimationPaused;
              }
          }
      }

       

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lisa.philipp Lisa Philipp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes