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

QML engine stuck in infinite loop when two components have mutual reference to each other

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • 5.15
    • 5.0.0, 5.1.0 , 5.2.0, 5.3.0, 5.11
    • None
    • ArchLinux 64bit, Qt 5.3.1

    Description

      If I define two QML components, lets call them CompoA and CompoB, and I have custom properties of type CompoB in CompoA, and CompoA in CompoB, the QML engine gets stuck in an infinite loop (with older Qt versions, it used to crash).

      If I change type of one or other of the properties to any super-class, no more loop, but I don't have the precise type info that I need, and I'm forced to do ducktyping everywhere, which is bad...

      I attached a sample code. There is a line in CompoB that can be commented and another one that can be uncommented to workaround the issue.

      Attachments

        1. qtbug42169.zip
          3 kB
          Mitch Curtis
        2. TestChainQML2.zip
          1 kB
          Thomas Boutroue

        Issue Links

          Activity

            People

              qtqmlteam Qt Qml Team User
              thebootroo Thomas Boutroue
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: