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

'Unable to assign QObject* to X_QMLTYPE_0*' warning when running app with QML_DISABLE_OPTIMIZER = 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.7.3, 4.8.0
    • None
    • Linux 64bit, Qt 4.7, 4.8

    Description

      How to reproduce

      Run attached main.qml with qmlviewer & 'QML_DISABLE_OPTIMIZER' environment variable set:

      Starting /home/kkoehne/dev/qt/qt-4.8/bin/qmlviewer -I /home/kkoehne/dev/qt/qt-4.8/imports /home/kkoehne/dev/tmp/disableOptimizerBug/main.qml
      Qml debugging is enabled. Only use this in a safe environment!
      file:///home/kkoehne/dev/tmp/disableOptimizerBug/main.qml:11: Unable to assign QObject* to MyPageStack_QMLTYPE_0*
      /home/kkoehne/dev/qt/qt-4.8/bin/qmlviewer exited with code 0
      

      Without the QML_DISABLE_OPTIMIZER environment variable set, the app runs without the warning.

      Attachments

        Issue Links

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

          Activity

            People

              aakenned Aaron Kennedy
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes