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

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

    XMLWordPrintable

Details

    • Windows

    Description

      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")
      }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes