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

Incorrect ordering of signals and method replies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Remote Objects
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Method replies and signals are not received on replica side in the same order as created on source side.

      Consider this code on source:

      int foo()
      {
          QTimer::singleShot(0, this, [this]() { emit someSignal(); });
          return 10;
      }
      

      when calling foo() on replica, this is the result:

      // someSignal() emitted
      // foo() returns 10
      

      but it should be

      // foo() returns 10
      // someSignal() emitted
      

      since the foo() returns before the signal is emitted.

        Attachments

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

          Activity

            People

            Assignee:
            bstottle Brett Stottlemyer
            Reporter:
            nowrep David Rosca
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change