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

With QSG_RENDER_LOOP=basic the canvas elements in the QML profiler aren't properly initialized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0 RC1
    • 5.3.0 Beta1
    • Quick: Other
    • None
    • dc051f28b865e54d3834824ffea6f2562f0836c1

    Description

      They are initially white instead of gray with zeros. Apparently the first onPaint call of the canvas elemnts doesn't have an effect. I've added a little hook into onPainted to save the results of the first and second painting as images. Clearly, the first one is blank and the second one has some content.

          onPainted: {
              // You can only do one of those at a time as it will crash on some recursively-locked mutex.
              //if (++numPaints === 1) {
              //    save("/tmp/timemarks1.png")
              //    console.log("painted", timeMarks.numPaints);
              if (++numPaints === 2) {
                save("/tmp/timemarks2.png")
                console.log("painted", timeMarks.numPaints);
              }
          }
      

      Attachments

        1. timemarks1.png
          timemarks1.png
          3 kB
        2. timemarks2.png
          timemarks2.png
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes