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

[Regression 5.12.2 -> 5.12.3] Segmentation fault in StackView when string type passed to push

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11, Windows
    • Commits:
      138d5c82f11bdcd9c6594d1e539631b9560353ae

      Description

      Version 5.12.3 introduced a regression, problem also occurs on 5.13.0-beta3. Version 5.12.2 and earlier work correctly.

      Application crashes with Segmentation fault. It happens always when string (url to QML file) is passed to StackView and few other conditions are met.

      var url = Qt.resolvedUrl("MainPage.qml")
      pageStack.push(url)

      I works correctly when an Object is passed:

      var url = Qt.resolvedUrl("MainPage.qml")
      pageStack.push(Qt.createComponent(url))

      I attached sample applications (with C++ and pure QML). I simplified example as much as I could but quicte strange combination of binding is needed to reproduce this issue.

      I also attached stack-trace.

        Attachments

        1. RegressionTest.zip
          3 kB
        2. RegressionTestCpp.zip
          4 kB
        3. stacktrace.txt
          11 kB
        4. stacktrace-full.txt
          340 kB

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              kmaterka Konrad Materka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes