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

Setting httpUserAgent crashes

    XMLWordPrintable

    Details

    • Commits:
      df93624cc31e9da29532eed1d86c9f172575355a (qt/qtwebview/5.14)

      Description

      WebView seems to crash when WebEngine backend is used and httpUserAgent is set to anything

      Invalid read of size 8
        in main in /home/jopoikel/work/tests/untitled2/main.cpp:11
      Address 0x10 is not stack'd, malloc'd or (recently) free'd  1: QQuickWebEngineProfile::setHttpUserAgent(QString const&) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5WebEngine.so.5.14.1
        2: QWebEngineWebViewPrivate::setHttpUserAgent(QString const&) in /home/jopoikel/Qt/5.14.1/gcc_64/plugins/webview/libqtwebview_webengine.so
        3: QQuickWebView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5WebView.so.5.14.1
        4: QQmlPropertyData::writeProperty(QObject*, void*, QFlags<QQmlPropertyData::WriteFlag>) const in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        5: QQmlObjectCreator::setPropertyValue(QQmlPropertyData const*, QV4::CompiledData::Binding const*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        6: QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const*, QV4::CompiledData::Binding const*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        7: QQmlObjectCreator::setupBindings(bool) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        8: QQmlObjectCreator::populateInstance(int, QObject*, QObject*, QQmlPropertyData const*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        9: QQmlObjectCreator::createInstance(int, QObject*, bool) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        10: QQmlObjectCreator::setPropertyBinding(QQmlPropertyData const*, QV4::CompiledData::Binding const*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        11: QQmlObjectCreator::setupBindings(bool) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        12: QQmlObjectCreator::populateInstance(int, QObject*, QObject*, QQmlPropertyData const*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        13: QQmlObjectCreator::createInstance(int, QObject*, bool) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        14: QQmlObjectCreator::create(int, QObject*, QQmlInstantiationInterrupt*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        15: QQmlComponentPrivate::beginCreate(QQmlContextData*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        16: QQmlComponentPrivate::doBeginCreate(QQmlComponent*, QQmlContext*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        17: QQmlComponent::create(QQmlContext*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        18: QQmlApplicationEnginePrivate::finishLoad(QQmlComponent*) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        19: QQmlApplicationEnginePrivate::startLoad(QUrl const&, QByteArray const&, bool) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        20: QQmlApplicationEngine::load(QUrl const&) in /home/jopoikel/Qt/5.14.1/gcc_64/lib/libQt5Qml.so.5.14.1
        21: main in /home/jopoikel/work/tests/untitled2/main.cpp:11
      
      

        Attachments

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

          Activity

            People

            Assignee:
            andysh Andy Shaw
            Reporter:
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes