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

QML with some GradientStops: Wrong rendering, ASSERT in QtQuick2ApplicationViewer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.1
    • 5.2.0
    • None
    • all
    • 10ce105b25a03fbde1889ea767985d5009658a1d

    Description

      Execute the following QML file in qmlscene:

      import QtQuick 2.0
      
      Rectangle {
          width: 360
          height: 360
          radius: 99
          gradient: Gradient {
              GradientStop {
                  position: 0
                  color: "#82fc08"
              }
      
              GradientStop {
                  position: 0.825
                  color: "#ffffff"
              }
      
              GradientStop {
                  position: 1.023
                  color: "#7dfa00"
              }
          }
          border.width: 99
      }
      

      You'll see something like this:

      That triangle should not be there at all.
      If you use this file in a QtQuick2ApplicationViewer and run a debug build of this, you'll run into an assert: "index == vertexCount in file C:\Users\rob\dev\src\qt-5-release\qtdeclarative\src\quick\scenegraph\qsgdefaultrectanglenode.cpp, line 563

      Found by Henri.

      Attachments

        For Gerrit Dashboard: QTBUG-36059
        # Subject Branch Project Status CR V

        Activity

          People

            inz Santtu Lakkala
            rlohning Robert Löhning
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes