C++ QWebView应用程序在加载(使用日志)和绘制时崩溃

C++ QWebView应用程序在加载(使用日志)和绘制时崩溃,c++,qt,crash,qpainter,C++,Qt,Crash,Qpainter,0 WTFCrash断言.cpp 345 0x10f50517 1 WTF::OwnPtr::operator->OwnPtr.h 72 0xffbc8cd 2 WebCore::BitmapTextureImageBuffer::updateContents texturemapperimagebuffer.cpp 62 0x109cb865 3 WebCore::TextureMapperTile::updateContents TextureMapperTile.cpp 70 0x109c

0 WTFCrash断言.cpp 345 0x10f50517
1 WTF::OwnPtr::operator->OwnPtr.h 72 0xffbc8cd
2 WebCore::BitmapTextureImageBuffer::updateContents texturemapperimagebuffer.cpp 62 0x109cb865
3 WebCore::TextureMapperTile::updateContents TextureMapperTile.cpp 70 0x109cfdb5
4 WebCore::TextureMapperTiledBackingStore::updateContents TextureMapperTiledBackingStore.cpp 147 0x109c1831
5 WebCore::GraphicsLayerTextureMapper::UpdateBackstoreIfNeeded GraphicsLayerTextureMapper.cpp 624 0x103b852e
6 WebCore::GraphicsLayerTextureMapper::FlushCompositingStateforThisLayerly GraphicsLayerTextureMapper.cpp 444 0x103b79b4
7 WebCore::GraphicsLayerTextureMapper::flushCompositingState GraphicsLayerTextureMapper.cpp 591 0x103b78c7
8 WebCore::GraphicsLayerTextureMapper::flushCompositingState GraphicsLayerTextureMapper.cpp 596 0x103b796f
9 WebCore::GraphicsLayerTextureMapper::flushCompositingState GraphicsLayerTextureMapper.cpp 596 0x103b796f
10 WebCore::GraphicsLayerTextureMapper::flushCompositingState GraphicsLayerTextureMapper.cpp 596 0x103b796f
11 WebCore::GraphicsLayerTextureMapper::flushCompositingState GraphicsLayerTextureMapper.cpp 596 0x103b796f
12 WebCore::GraphicsLayerTextureMapper::flushCompositingState GraphicsLayerTextureMapper.cpp 596 0x103b796f
13 WebCore::RenderLayerCompositor::flushPendingLayerChanges RenderLayerCompositor.cpp 399 0x1010ef84
14 WebCore::FrameView::FlushCompositingStateforthisFrameView.cpp 937 0xffda850
15 WebCore::FrameView::paintContents FrameView.cpp 3613 0xffdd1a0
16 QWebFrameAdapter::renderRelativeCoords QWebFrameAdapter.cpp 539 0xfb0787c
17 QWebFrame::渲染QWebFrame.cpp 644 0x60e96a96
18 QWebFrame::渲染QWebFrame.cpp 655 0x60e96a54
19 QWebView::paintEvent QWebView.cpp 833 0x60ea34e8
20 QWidget::event QWidget.cpp 8114 0x778e9b5c
21 QWebView::事件QWebView.cpp 732 0x60ea30dc
22 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
23 QApplication::通知QApplication.cpp 3465 0x7789fdbe
24 QCoreApplication::notifyInternal QCoreApplication.cpp 935 0x66412d04
25 QCoreApplication::sendsuncurevent QCoreApplication.h 240 0x66528938
26 QWidgetPrivate::drawWidget qwidget.cpp 5151 0x778ef4f1
27 QWidgetBackingStore::doSync QWidgetBackingStore.cpp 1180 0x778b2a74
28 QWidgetBackingStore::sync QWidgetBackingStore.cpp 1027 0x778b0f40
29 QWidgetPrivate::syncBackingStore qwidget.cpp 1693 0x778f13e1
30 QWidget::event QWidget.cpp 8252 0x778e9ee2
31 QWebView::事件QWebView.cpp 732 0x60ea30dc
32 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
33 QApplication::通知QApplication.cpp 3465 0x7789fdbe
34 QCoreApplication::notifyInternal QCoreApplication.cpp 935 0x66412d04
35 QCoreApplication::sendEvent QCoreApplication.h 237 0x6641c0d9
36 QCoreApplicationPrivate::sendPostedEvents qcoreapplication.cpp 1539 0x66413ce6
37 QCoreApplication::sendPostedEvents QCoreApplication.cpp 1397 0x664117c2
38 QWindowsGuiEventDispatcher::sendPostedEvents QWindowsGuiEventDispatcher.cpp 88 0x5223bf1
39 qt\u内部程序qeventdispatcher\u win.cpp 423 0x664aa392
40_InternalCallWinProc USER32 0x77467834
41 UserCallWinProcCheckWow USER32 0x77467a9a
42 DispatchMessageWorker用户32 0x7746988e
43 DispatchMessageW用户32 0x774698f1
44 QEventDispatcherWin32::processEvents qeventdispatcher_win.cpp 757 0x664aac85
45 QWindowsGuiEventDispatcher::processEvents QWindowsGuiEventDispatcher.cpp 80 0x5223b1c
46 QEventLoop::processEvents QEventLoop.cpp 137 0x6640eb8c
47 QEventLoop::exec QEventLoop.cpp 212 0x6640ed82
48 MainWindow::waitForLoad MainWindow.cpp 345 0xe10fd2
49 MainWindow::thread MainWindow.cpp 460 0xe0729b
50 MainWindow::在按钮上单击MainWindow.cpp 99 0xe04b32
51主窗口::qt_static_metacall moc_MainWindow.cpp 72 0xe2f5a8
52主窗口::qt_metacall moc_MainWindow.cpp 100 0xe2f53b
53 QMetaObject::metacall QMetaObject.cpp 309 0x6641ede0
54 QMetaObject::激活qobject.cpp 3695 0x6645da56
55 QMetaObject::激活qobject.cpp 3546 0x6645d411
56 QAbstractButton::单击moc_QAbstractButton.cpp 294 0x77d4809b
57 QAbstractButtonPrivate::emitClicked qabstractbutton.cpp 544 0x779f6657
58 QAbstractButtonPrivate::单击qabstractbutton.cpp 536 0x779f5bdb
59 QAbstractButton::mouseReleaseEvent QAbstractButton.cpp 1141 0x779f5042
60 QWidget::event QWidget.cpp 7962 0x778e957c
61 QAbstractButton::事件QAbstractButton.cpp 1098 0x779f4ba1
62 QPushButton::事件QPushButton.cpp 682 0x77ab6f1b
63 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
64 QApplication::通知QApplication.cpp 3067 0x7789e5ee
65 QCoreApplication::notifyInternal QCoreApplication.cpp 935 0x66412d04
66 QCoreApplication::sendsunclarevent QCoreApplication.h 240 0x66528938
67 QApplicationPrivate::sendMouseEvent qapplication.cpp 2540 0x778a3123
68 QWidgetWindow::handleMouseEvent QWidgetWindow.cpp 505 0x779249f1
69 QWidgetWindow::事件QWidgetWindow.cpp 180 0x77923c0e
70 QApplicationPrivate::notify_helper qapplication.cpp 3500 0x778a1dde
71 QApplication::通知QApplication.cpp 2953 0x7789dfb7
72 QCoreApplication::notif
bool MainWindow::waitForLoad(QWebView& view)
{
    QEventLoop loopLoad;
    QTimer timer;
    QObject::connect(&view, SIGNAL(loadFinished(bool)), &loopLoad, SLOT(quit()));
    QObject::connect(&view, SIGNAL(loadFinished(bool)), &timer, SLOT(stop()));
    QObject::connect(&timer, SIGNAL(timeout()), &loopLoad, SLOT(quit()));
    timer.start(timeout);
    loopLoad.exec();
    if(timer.isActive())
    {
        timer.stop();
        view.stop();
        return false;
    }
    return true;
}