Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.0
Description
User reported that the attached example application crash with following:
view.loadFromModule("test_qtQuickViewLoadFromModuleCrash","Main.qml"); -> Crash
view.loadFromModule("test_qtQuickViewLoadFromModuleCrash","Main"); -> Works correctly
compared to using QQuickView::setSource with an invalid URL, user will get empty view and the following in the application output:
qrc:/mainx.qml: No such file or directory
User wanted to highlight two points:
1) The application should not crash/assert (it does not when using an incorrect URL to load a QML scene)
2) The error message should provide information on what went wrong, including the incorrect module URI and typename. Ideally, it may even write whether the URI is wrong or the typename ("Module 'MyModule' does not contain a type called 'MyType'" versus "Module 'MyModule' not found")
Attachments
Issue Links
- duplicates
-
QTBUG-124225 [REG 6.7 → dev] Assert: start > 0 in QQmlComponentPrivate::beginCreate
- Closed