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

assert failure when qml singleton calling inherited method from base cpp class

XMLWordPrintable

    • Windows

      We have encountered a wierd issue that when calling inherited cpp method of a qml singleton, the app crash with assert failure:

      ASSERT: "wrapper" in file C:\Users\qt\work\qt\qtdeclarative\src\qml\jsruntime\qv4qobjectwrapper.cpp, line 2472
      

      I attach a minimal example that can reproduce the issue.

      Also note that if I remove arguments from MyTest.helloWorld method, then the app works fine.

      // remove arguments will not cause assert failure then
      function helloWorld() {
         console.log("*** hello world")
      }
      

        1. Test1.zip
          3 kB
          Steve K. Chiu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            steve.k.chiu Steve K. Chiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes