[QGIS-Developer] plugin causes 2.99 to crash - help?

Tom Chadwin tom.chadwin at nnpa.org.uk
Tue Jan 30 07:21:12 PST 2018


Hello all

I'm converting qgis2web for QGIS3, and a lot of the work is done. However,
the following steps cause QGIS to crash:

1. start qgis2web (Github master)
2. if Leaflet is selected, click "Update preview", otherwise select Leaflet
3. close the plugin dialog

This crashes QGIS (latest nightly), and has done with the nightlies for a
long time (issue raised here on 13 December:
https://github.com/tomchadwin/qgis2web/issues/590). I therefore assume it's
something in the plugin code which causes the crash, not in QGIS.

Points to note - the issue does *NOT* occur:

1. with QGIS2 (with compatible qgis2web version)
2. if no preview has been triggered
3. if only an OpenLayers preview has been triggered (instead of a Leaflet
one)
4. if a Leaflet export is triggered without a preview

Nathan's crash handler gives this:

*Crash ID*: 02cceb1e82fb35298845d686d09e3e52b108ee1b

*Stack Trace*
qWebKitVersion :
WKNotificationGetSecurityOrigin :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:317
QCoreApplication::notifyInternal2 :
QEventDispatcherWin32::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify qgsapplication.cpp:317
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
TranslateMessageEx :
TranslateMessage :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main main.cpp:1431
WinMain mainwin.cpp:161
__scrt_common_main_seh exe_common.inl:253
BaseThreadInitThunk :
RtlUserThreadStart :


*QGIS Info*
QGIS Version: 2.99.0-Master
QGIS code revision: commit:d2244b4a79
Compiled against Qt: 5.9.2
Running against Qt: 5.9.2
Compiled against GDAL: 2.2.3
Running against GDAL: 2.2.3



*System Info*
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 6.1.7601


As Nathan points out on the plugin issue thread linked to above, the crash
seems to occur in QtWebkit, but beyond that, I have no clues on the cause,
or how to fix.

So:

1. Do others confirm this issue on Windows?
2. How about other OSes
3. Any ideas on solving the problem?

Many thanks for any help anyone can offer. I'm very close to finishing the
conversion, so I really want to try to solve this.

Many thanks

Tom



-----
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html


More information about the QGIS-Developer mailing list