WebView crashing on Today's (Feb 8) google homepage
-
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.0WebView {
id: browser
width: 800
height: 600url: "http://www.google.com"
}
@File: test.qml
@
import Qt 4.7Item {
width: 800
height: 600
focus: trueKeys.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.qmlThen 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 }
@ -
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 ?