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

A simple animation eats 100% CPU on Windows, when Qt is compiled in debug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.2.1
    • 5.2.0 RC1
    • Quick: SceneGraph
    • None
    • Windows 7, NVIDIA 8500GT v331.82, latest qt5 release branch (debug mode)
    • qtdeclarative/stable: fb72bb3cf27d1f94760709aaab82e3524ae936f4

    Description

      When running in debug mode, a trivial QML animation consumes 100% CPU on Windows.

      import QtQuick 2.2
      import QtQuick.Window 2.1
      
      Window {
          width: 360
          height: 360
      
          Rectangle {
              color: "red"
              width: parent.width / 2
              height: parent.height / 2
              anchors.centerIn: parent
              anchors.alignWhenCentered: true
      
              RotationAnimator on rotation {
                  id: anim
                  from: 0
                  to: 360
                  duration: 800
                  loops: Animation.Infinite
              }
          }
      
          MouseArea {
              anchors.fill: parent
              onClicked: anim.running = !anim.running
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes