Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-4867

"Cannot add multiple registrations" when drag'n'drop created plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • QDS 2.1
    • 2D View
    • None
    • Windows

    Description

      While working on the advertisement plugin (https://git.qt.io/playground/ADV) we face an issue that when we drag-drop it to form editor error appears:

      _"Cannot open this QML document because of an error in the QML file:_ 

      Line: 1: Qt Quick emulation layer crashed."

      From logs we can see:

      [19824] Cannot add multiple registrations for Advertisement 1

      [19900] Cannot add multiple registrations for Advertisement 1
      [7528] Cannot add multiple registrations for Advertisement 1
      [19912] Cannot add multiple registrations for Advertisement 1
      [17288] PropertyEditor: invalid node for setup
      [17288] Process crashed: QObject(0x0) exitCode: -1073740791
      [7996] client command lost: 0 1240
      [20036] client command lost: 0 1240
      [11348] client command lost: 0 1240
      [11348] Loaded default dummy context object.
      [20036] Loaded default dummy context object.
      [11348] Cannot add multiple registrations for Advertisement 1
      [20036] Cannot add multiple registrations for Advertisement 1
      [7996] Loaded default dummy context object.
      [7996] Cannot add multiple registrations for Advertisement 1
      [17288] qtc.qmljs.imports.benchmark: iterateOnLibraryImports() executed nPossibleExports: 865025 in 19ms
      [17288] QWindowsPipeWriter: asynchronous write failed. (The pipe has been ended.)
      [17288] QWindowsPipeWriter: asynchronous write failed. (The pipe has been ended.)
      [17288] QWindowsPipeWriter: asynchronous write failed. (The pipe has been ended.)
      [17288] Process crashed: QObject(0x0) exitCode: -1073740791

      Moreover, if the plugin is already embeeded in qml file i.e.  :

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      import test 1.0
      import Advertisement 1.0 

      Item {

          width: Constants.width
          height: Constants.height

          Content

      {         id: content         anchors.fill: parent     }

      }

      and we want to reopen the form editor same issue appears and it looks that the form editor is not responding and not allow to make any changes. After removing the plugin everything works right.

      It is possible to drag'n'drop plugin into the navigator. 

       

       

      Note: This issue is relevant only to QDS 2.1 at 2.2 it's not observable.

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              thohartm Thomas Hartmann
              mateuszligocki Mateusz Ligocki
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes