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

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.0.0, 5.1.0 , 5.2.0, 5.3.0, 5.11
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      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

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              thebootroo Thomas Boutroue
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes