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

Q_ASSERT in QConnectedReplicaPrivate::initialize() makes it impossible for a Replica to reconnect to the Source in debug mode

    XMLWordPrintable

    Details

    • Commits:
      9ae28ac68af20b4d8b305fa78a478833cc833642

      Description

      qremoteobjectreplica.cpp, line 160:
      Q_ASSERT(m_state < QRemoteObjectReplica::Valid);

      When in debug mode, this assert stops a Replica from reconnecting to the Source, as the Replica's state is 'QRemoteObjectReplica::Suspect' after the connection to the Source is lost. 'Suspect = 3' > 'Valid = 2'

      Steps to reproduce:

      • Run the 'registryconnectedserver' and 'registryconnectedclient' apps found in 'Qt\<version>\Src\qtremoteobjects\examples\remoteobjects\simpleswitch\registryconnectedserver' in debug mode
      • Close the server app
      • Restart the server app
        EXPECTED: the client is able to reconnect and the Replica keeps working
        ACTUAL: the client is not able to reconnect as the Replica asserts

        Attachments

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

          Activity

            People

            Assignee:
            bstottle Brett Stottlemyer
            Reporter:
            risto.sipola Risto Sipola
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes