Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9
-
None
-
Ubuntu 16.04
-
8836896dff45fe1d21736835845e36d03763117f
Description
The following example (full version has been attached) asserts on the dev branch, but not with 5.8:
#include <QGuiApplication> #include <QQmlComponent> #include <QQmlEngine> #include <QDebug> int main(int argc, char *argv[]) { QGuiApplication a(argc, argv); QQmlEngine e; QQmlComponent c(&e); c.loadUrl(QUrl::fromLocalFile("main.qml")); if (c.isError()) { qDebug() << "Failed to load main.qml:" << c.errorString(); return 1; } qDebug() << "Success!"; return 0; }
import QtQuick 2.0 Rectangle { width: 400 height: 400 color: "red" }
ASSERT: "!url.isRelative() && (QQmlFile::urlToLocalFileOrQrc(url).isEmpty() || !QDir::isRelativePath(QQmlFile::urlToLocalFileOrQrc(url)))" in file /home/mitch/dev/qt5-dev/qtdeclarative/src/qml/qml/qqmltypeloader.cpp, line 1632
The only related changes I see in the functions in the stack frames don't seem to have changed behaviour (d54f7f520ab876e86db3ddc895ddba7f685aec1d).
Attachments
Issue Links
- duplicates
-
QTBUG-57586 [Reg 5.7 -> 5.8] referenceexamples/extended doesn't launch on RHEL 7.2
- Closed
-
QTBUG-65062 QMLC file regeneration doesn't happen if application is launched in debug mode triggering a crash
- Closed
- is duplicated by
-
QTBUG-61242 QtQML application crashes when loading a JavaScript file
- Closed
- resulted from
-
QTBUG-53948 Showing Virtual Keyboard multiple times causes assert in jsruntime
- Closed