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

Error when using multiple rep file instances

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Remote Objects
    • Labels:
      None
    • Platform/s:
      All
    • Technical Risk:
      Normal

      Description

      Hi,
      I use the CLASS keyword in a rep file like this:

      class Foo{
          PROP(double x)
          PROP(double y)
      };
      
      class Bar{
          CLASS foo(Foo)
      };
      

      The Source and the Replica of the Bar class are then connected with enableRemoting() and acquire() and a unique name parameter is used.

      The problem is now that as soon as i want to connect a second instance of the Bar class the following assert appears:

      ASSERT: "m_state < QRemoteObjectReplica::Valid || m_state == QRemoteObjectReplica::Suspect" in file qremoteobjectreplica.cpp, line 216
      

      This has s.th. to do with the nested foo object. If I look at the created source and replica class, the member name will be used as parameter for the connection (foo in this case). Could it be that the error happens because the name is no longer unique when i try to connect a second Bar instace? If so, it would be good if the name could be changed.

        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:
            chrisser Suli Sahne
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes