Uploaded image for project: 'Qt Playground Projects'
  1. Qt Playground Projects
  2. QTPLAYGROUND-42

Checking for invalid property of QRemoteObjectDynamicReplica crashes in QMetaObject::indexOfProperty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Future release
    • QtRemoteObjects
    • None
    • macOS 10.13.1

      Qt 5.10.0

    Description

      1. Edit the QT remoteobjects example, directconnectdynamicclientDynamicClient::recSwitchState_slot; add an extra character to the requested property name to make it invalid (as below)
      2. void DynamicClient::recSwitchState_slot(bool value)
        {
        clientSwitchState = reptr->property("currStateX").toBool(); // use replica property to get "currState" from source qDebug() << "Received source state " << value << clientSwitchState; Q_EMIT echoSwitchState(clientSwitchState); // Emit signal to echo received state back to server

      3. Run directconnectserver.
      4. Run directconnectdynamicclient in debugger.
      5. Note crash occurs in QMetaObject::indexOfProperty

      Expected behaviour - indexOfProperty returns -1

      Attachments

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

        Activity

          People

            bstottle Brett Stottlemyer
            tinraven Niall Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes