Qt 使用evaluateJavaScript()调用百度地图往地图上打点,大概运行1.5小时候软件崩溃,debug信息如下

lidar7956 2020-07-14 04:39:44
应用程序输入如下:
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
ASSERTION FAILED: m_ptr
..\WTF/wtf/OwnPtr.h(72) : WTF::OwnPtr<T>::ValueType* WTF::OwnPtr<T>::operator->() const [with T = WebCore::ImageBuffer; WTF::OwnPtr<T>::PtrType = WebCore::ImageBuffer*; WTF::OwnPtr<T>::ValueType = WebCore::ImageBuffer]
堆栈调用如下:
0 WTFCrash C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1f33fb83
1 WebCore::BitmapTextureImageBuffer::updateContents(WebCore::TextureMapper*, WebCore::GraphicsLayer*, WebCore::IntRect const&, WebCore::IntPoint const&, WebCore::BitmapTexture::UpdateContentsFlag) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb0fe9e
2 WebCore::TextureMapperTile::updateContents(WebCore::TextureMapper*, WebCore::GraphicsLayer*, WebCore::IntRect const&, WebCore::BitmapTexture::UpdateContentsFlag) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb09d59
3 WebCore::TextureMapperTiledBackingStore::updateContents(WebCore::TextureMapper*, WebCore::GraphicsLayer*, WebCore::FloatSize const&, WebCore::IntRect const&, WebCore::BitmapTexture::UpdateContentsFlag) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb09658
4 WebCore::GraphicsLayerTextureMapper::updateBackingStoreIfNeeded() C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb1363f
5 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e2d
6 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
7 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
8 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
9 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
10 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
11 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
12 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
13 WebCore::GraphicsLayerTextureMapper::flushCompositingState(WebCore::FloatRect const&) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1eb12e87
14 WebCore::RenderLayerCompositor::flushPendingLayerChanges(bool) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1da7076e
15 WebCore::FrameView::flushCompositingStateForThisFrame(WebCore::Frame*) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1ed058f7
16 WebCore::FrameView::flushCompositingStateIncludingSubframes() C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1ed05936
17 WebCore::TextureMapperLayerClientQt::syncLayers(WebCore::Timer<WebCore::TextureMapperLayerClientQt>*) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1d665443
18 WebCore::Timer<WebCore::TextureMapperLayerClientQt>::fired() C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1f929d5f
19 WebCore::ThreadTimers::sharedTimerFiredInternal() [clone .part.6] C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1ebf196d
20 WebCore::SharedTimerQt::timerEvent(QTimerEvent*) C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\Qt5WebKitd.dll 0x1ead479e
21 QObject::event 1226 0x5553c54
22 QApplicationPrivate::notify_helper 3722 0x147af4e5
23 QApplication::notify 3164 0x147aceb0
24 QCoreApplication::notifyInternal 932 0x552e6f8
25 QCoreApplication::sendEvent 228 0x55d47e3
26 QEventDispatcherWin32::event 1179 0x557f994
27 QApplicationPrivate::notify_helper 3722 0x147af4e5
28 QApplication::notify 3164 0x147aceb0
29 QCoreApplication::notifyInternal 932 0x552e6f8
30 QCoreApplication::sendEvent 228 0x55d47e3
31 QCoreApplicationPrivate::sendPostedEvents 1536 0x552f890
32 QCoreApplication::sendPostedEvents 1394 0x552f376
33 QWindowsGuiEventDispatcher::sendPostedEvents 81 0x361ae609
34 qt_internal_proc(HWND__*, unsigned int, unsigned int, long)*16 412 0x557cec8
35 gapfnScSendMessage C:\Windows\syswow64\user32.dll 0x75fc630a
36 Ui_GLLTable::retranslateUi ui_glltable.h 126 0x541c64
37 USER32!GetThreadDesktop C:\Windows\syswow64\user32.dll 0x75fc6d4a
38 <lambda()>::operator()(void) const 355 0x557cc03
39 Ui_GLLTable::retranslateUi ui_glltable.h 126 0x541c64
40 USER32!CharPrevW C:\Windows\syswow64\user32.dll 0x75fc77d7
41 USER32!DispatchMessageW C:\Windows\syswow64\user32.dll 0x75fc789a
42 QEventDispatcherWin32::processEvents 806 0x557e5b4
43 QWindowsGuiEventDispatcher::processEvents 73 0x361ae4e4
44 QEventLoop::processEvents 128 0x552c77c
45 QEventLoop::exec 204 0x552ca0f
46 QCoreApplication::exec 1185 0x552ed3b
47 QGuiApplication::exec 1532 0x9da6bd4
48 QApplication::exec 2956 0x147ac7ef
49 qMain main.cpp 29 0x4068d3
50 WinMain*16 112 0x528c98
51 main 0x6095dd



...全文
3465 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
只是做位置显示吗?Qt有自己的地图例子。也可以考虑用原生的地图框架。 https://www.mapbox.com/qt/
  • 打赏
  • 举报
回复
只是做位置显示吗?Qt有自己的地图例子。也可以考虑用原生的地图框架。 https://www.mapbox.com/qt/

16,239

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧