Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.14.0
-
-
01bbd7e41ac8444d2282ac6ca1862c3748f685a1 (qt/qtdeclarative/5.14)
Description
Starting from Qt 5.14.0, using XMLHttpRequest to send a HTTP request in QML WorkerThread code crashes. Before, it worked ok. Seems to be related to the fact that it now attempts to do this in qqmlxmlhttprequest.cpp:
QQmlXMLHttpRequest *r = new QQmlXMLHttpRequest(scope.engine->qmlEngine()->networkAccessManager(), scope.engine);
vs. Qt 5.13:
QQmlXMLHttpRequest *r = new QQmlXMLHttpRequest(scope.engine->v8Engine->networkAccessManager(), scope.engine);
QML WorkerThread has a separate JS engine, where the new code using qmlEngine() call crashes.
To reproduce crash: Unzip 'crash.zip' and run "qmlscene Bug.qml"