Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6.1, 6.7.0 Beta2
-
Windows 10 22H2, MSVC 2019
-
332170d46 (dev), 879eb17d7 (6.7)
Description
Code
// Main.qml import QtWebEngine WebEngineView { anchors.left: undefined // or anchors.fill: parent }
// main.cpp #include <main.h> int main(int argc, char **argv) { QtWebEngineQuick::initialize(); QGuiApplication app{argc, argv}; QQmlEngine engine; auto main = new App::Main(&engine); // Crashes here return app.exec(); }
Outcomes
Qt 6.6.1 gives
ASSERT: "unit" in file C:\Users\qt\work\qt\qtdeclarative\src\qml\qml\qqmlengine.cpp, line 2046
Notes
- The assertion does not occur if we have no anchors in Main.qml
- The assertion does not occur if we replace WebEngineView with Item
- qmltc cannot compile this project in Qt 6.5.4 because of problems with QtWebChannel\plugins.qmltypes ("Meta object revision and export version differ")
Attachments
Issue Links
- relates to
-
QTBUG-122233 Type compiler unable to use components from imported modules
- Reported
-
QTBUG-128895 [Reg 6.2 -> 6.5] QtQuick.Templates causes crashes if QtQuick types are not registered
- Closed