Thanks to visit codestin.com
Credit goes to github.com

Skip to content

QGIS2WEB craches QGIS when trying to updat preview using leaflet (no proplem with Openlayer) [SOLVED] #1106

@Ibanezheroes

Description

@Ibanezheroes

Hi,
When I try to create a preview using Leaflet, QGIS crashes.
My map only shows airports in the world with an OSM layer (two layers). See some screenshots (maps, error screen, and full Stack trace of the error before QGIS exit).

QGIS2WEB version: [3.22.0]
QGIS Info:
QGIS Version: 3.38.3-Grenoble
QGIS code revision: 37f9e6efee
Compiled against Qt: 5.15.13
Running against Qt: 5.15.13
Compiled against GDAL: 3.9.2
Running against GDAL: 3.9.2
QGIS2WEB v

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.22621

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x00006228 (most recent call first):
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletLayerScripts.py", line 511 in buildPointJSON
    slCount = symbol.symbolLayerCount()
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletLayerScripts.py", line 422 in pointLayer
    useMultiStyle) = buildPointJSON(symbol, safeLayerName, usedFields,
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletLayerScripts.py", line 388 in getLayer
    useMultiStyle) = pointLayer(layer, safeLayerName, interactive,
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletLayerScripts.py", line 132 in writeVectorLayer
    useMultiStyle) = getLayer(layer, renderer, safeLayerName, interactive,
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletWriter.py", line 276 in writeLeaflet
    useOSMB) = writeVectorLayer(layer, safeLayerName,
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\leafletWriter.py", line 94 in write
    self.preview_file = self.writeLeaflet(
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\maindialog.py", line 453 in createPreview
    preview_file = writer.write(self.iface, dest_folder=utils.tempFolder()).index_file
  File "C:\Users/laure/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\maindialog.py", line 491 in previewMap
    preview_file = self.createPreview()

Stack Trace


QListData::size :
pdal::PointView::table :
PyLong_FromString :
PyObject_Vectorcall :
PyObject_Vectorcall :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyArg_CheckPositional :
PyObject_Call :
PyObject_Call :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
QObject::qt_static_metacall :
QAbstractButton::clicked :
QAbstractButton::click :
QAbstractButton::mouseReleaseEvent :
PyInit_QtWidgets :
QWidget::event :
PyInit_QtWidgets :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

Screenshot 2024-10-16 095348
Screenshot 2024-10-16 095510

Thanks for any help to possibly resolve it

Laurent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions