Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16073

QML Profiler does not receive data when pressing "Stop" button

XMLWordPrintable

    • 88476a1435a5bc504929061bd0fa7d2c663d9bc7

      1. Create a new Qt Quick Application project.
      2. Replace the project's qml file with this:
        import QtQuick 2.3
        import QtQuick.Window 2.2
        
        Window {
            visible: true
        
            Timer {
                property int runCount: 0
                interval: 2000
                repeat: true
                running: runCount < 2
                onTriggered: {
                    runCount += 1;
                    var i;
                    for (i = 1; i < 2500; ++i) {
                        var j = i * i;
                        console.log(j);
        
                    }
                }
            }
        
            MouseArea {
                anchors.fill: parent
                onClicked: {
                    Qt.quit();
                }
            }
        
            Text {
                text: qsTr("Hello World")
                anchors.centerIn: parent
            }
        }
        
      3. Build the project.
      4. Go to Debug mode and open the QML Profiler.
      5. Click "Start QML Profiler analysis."
      6. After a couple of seconds, click the "Stop" button.
      7. Go to Projects mode and select a different kit for the project.
        I switched from my self-build Qt 5.4.2 to Qt 5.5.0 from the official binary package. (The actual Qt version doesn't seem to matter. If I use them in the opposite order, the effect is the same, as if only the switching would be important.)
      8. Build the project.
      9. Go to Debug mode and open the QML Profiler.
      10. Click "Start QML Profiler analysis."
      11. After a couple of seconds, click the "Stop" button.
      12. If this succeeded, repeat steps 10 and 11.
        Creator will show a warning that "Application finished before loading profiled data." It will not receive the data.

      Creator should gather and display the data after pressing "Stop".

      Found by Squish test tst_simple_analyze.

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

            ulherman Ulf Hermann
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes