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

Incorrect ordering of signals and method replies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.3
    • Remote Objects
    • None
    • 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

            bstottle Brett Stottlemyer
            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