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

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.3.0 Beta1
    • Fix Version/s: 5.3.0 RC1
    • Component/s: Quick: Other
    • Labels:
      None
    • Commits:
      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
        For Gerrit Dashboard: QTBUG-38297
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            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