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

[REG 5.13 -> 5.14.0] XMLHttpRequest crashes in QML WorkerThread

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      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"

       

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            mt Mikko Tuokko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes