Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.9.4, 5.10.1
-
Fix Version/s: 5.11.0 Beta 3
-
Component/s: Remote Objects
-
Labels:
-
Environment:Windows
-
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