minorua / Qgis2threejs

3D map visualization and web export plugin for QGIS
http://minorua.github.io/Qgis2threejs/docs/
495 stars 91 forks source link

Plugin crashes when extruding buildings #344

Open AbdelghaniTamort opened 1 month ago

AbdelghaniTamort commented 1 month ago

I'm using the latest release of Qgis2threejs on QGIS 3.30, and I am encountering an issue where Qgis2threejs crashes QGIS whenever I try to extrude buildings. This is the error report I get :

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x00001254 (most recent call first):
  File "C:\PROGRA~1\QGIS33~1.0\apps\Python39\lib\site-packages\osgeo\gdal.py", line 4510 in ReprojectImage
    return _gdal.ReprojectImage(*args, **kwargs)
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\q3dcore.py", line 159 in _read
    gdal.ReprojectImage(self.ds, warped_ds, self.source_wkt, None, gdal.GRA_Bilinear)
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\q3dcore.py", line 181 in readValue
    return struct.unpack("f", self._read(1, 1, geotransform))[0]
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\buildvector.py", line 61 in <lambda>
    zf = lambda x, y: z_func(x, y) + alt
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\geometry.py", line 267 in fromQgsGeometry
    centroidHeight = z_func(pt.x(), pt.y())
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\buildvector.py", line 74 in geometry
    return PolygonGeometry.fromQgsGeometry(self.geom, zf, transform_func,
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\buildvector.py", line 425 in build
    d["geom"] = obj_geom_func(f, f.geometry(self.z_func, mapTo3d, self.useZM, be, self.grid))
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\q3dcontroller.py", line 273 in _buildLayer
    obj = builder.build()
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\q3dcontroller.py", line 218 in buildLayers
    if not self._buildLayer(layer) or self.aborted:
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\q3dcontroller.py", line 204 in buildScene
    self.buildLayers()
  File "C:\Users/atamort/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Qgis2threejs\q3dcontroller.py", line 314 in _processRequests
    self.buildScene()

Thread 0x00005f74 (most recent call first):
<no Python frame>

Stack Trace


CPLODBCDriverInstaller::RemoveDriver :
CPLODBCDriverInstaller::RemoveDriver :
CPLODBCDriverInstaller::RemoveDriver :
CPLODBCDriverInstaller::RemoveDriver :
CPLODBCDriverInstaller::RemoveDriver :
CPLODBCDriverInstaller::RemoveDriver :
CPLODBCDriverInstaller::RemoveDriver :
PyInit__gdal :
PyArg_ParseTuple_SizeT :
PyObject_Call :
PyObject_Call :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyFunction_Vectorcall :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyFloat_FromDouble :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyFloat_FromDouble :
PyEval_EvalFrameDefault :
PyFloat_FromDouble :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyFloat_FromDouble :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyFloat_FromDouble :
PyVectorcall_Call :
PyObject_Call :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
QObject::qt_static_metacall :
QTimer::timerEvent :
PyInit_QtCore :
QObject::event :
PyInit_QtCore :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QEventDispatcherWin32Private::sendTimerEvent :
QEventDispatcherWin32::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QEventDispatcherWin32::processEvents :
QEventLoop::exec :
QThread::exec :
PyInit_QtCore :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info QGIS Version: 3.30.0-'s-Hertogenbosch QGIS code revision: f186b8efe0e Compiled against Qt: 5.15.3 Running against Qt: 5.15.3 Compiled against GDAL: 3.6.2 Running against GDAL: 3.6.2

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