Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. WebView crashing on Today's (Feb 8) google homepage

WebView crashing on Today's (Feb 8) google homepage

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mbarclaygmail.com
    wrote on last edited by
    #1

    I'd like to file a bug, but not sure how to capture a relevant crash report. Is there anyway to make WebView save it's cache so this can be reproduced offline? Here's code to repro the crash:

    File: webview.qml
    @
    import Qt 4.7
    import QtWebKit 1.0

    WebView {
    id: browser
    width: 800
    height: 600

    url: "http://www.google.com"
    

    }
    @

    File: test.qml
    @
    import Qt 4.7

    Item {
    width: 800
    height: 600
    focus: true

    Keys.onPressed: {
        switch(event.key)
        {
        case Qt.Key_W: loader.source = "webview.qml" ; break ;
        case Qt.Key_B: loader.source = ""   ; break ;
        }
    }
    
    Loader {
        id: loader
        anchors.fill: parent
        source: "webview.qml"
    }
    

    }
    @

    Run this:
    qmlviewer /tmp/test.qml

    Then type "b" to clear the loader source. During deconstruction of the WebView, qmlviewer crashes.

    Running gdb:
    gdb --args qmlviewer /tmp/test.qml

    @
    Program received signal SIGSEGV, Segmentation fault.
    QGraphicsScene::removeItem (this=0x0, item=0x836fbb0) at /var/tmp/qt-src/src/gui/graphicsview/qgraphicsscene.cpp:2948
    2948 /var/tmp/qt-src/src/gui/graphicsview/qgraphicsscene.cpp: No such file or directory.
    in /var/tmp/qt-src/src/gui/graphicsview/qgraphicsscene.cpp
    @

    @

    2945 void QGraphicsScene::removeItem(QGraphicsItem *item)
    2946 {
    2947 // ### Refactoring: This function shares much functionality with _q_removeItemLater()
    2948 Q_D(QGraphicsScene);
    2949 if (!item) {
    2950 qWarning("QGraphicsScene::removeItem: cannot remove 0-item");
    2951 return;
    2952 }
    2953 if (item->scene() != this) {
    2954 qWarning("QGraphicsScene::removeItem: item %p's scene (%p)"
    2955 " is different from this scene (%p)",
    2956 item, item->scene(), this);
    2957 return;
    2958 }
    2959
    2960 // Notify the item that it's scene is changing to 0, allowing the item to
    2961 // react.
    2962 const QVariant newSceneVariant(item->itemChange(QGraphicsItem::ItemSceneChange,
    2963 qVariantFromValue<QGraphicsScene *>(0)));
    2964 QGraphicsScene *targetScene = qVariantValue<QGraphicsScene *>(newSceneVariant);
    2965 if (targetScene != 0 && targetScene != this) {
    2966 targetScene->addItem(item);
    2967 return;
    2968 }
    2969
    2970 d->removeItemHelper(item);
    2971
    2972 // Deliver post-change notification
    2973 item->itemChange(QGraphicsItem::ItemSceneHasChanged, newSceneVariant);
    2974
    2975 d->updateInputMethodSensitivityInViews();
    2976 }
    @

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      Hi,

      The information you've provided above (along with the version you are using and the platform you are running on) should be sufficient for a bug report.

      Thanks,
      Michael

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alcatraz
        wrote on last edited by
        #3

        Has this bug been confirmed with Qt ?

        this is happening on a "Telus Page":http://www.telusmobility.com/en/ON/promotions/blitz.shtml

        i know this is an older post but it relates to my issue...

        i have disabled javascriptenabled and page works fine now

        any ideas as to why ?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved