Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin crashes when extruding buildings #344

Open
AbdelghaniTamort opened this issue May 31, 2024 · 0 comments
Open

Plugin crashes when extruding buildings #344

AbdelghaniTamort opened this issue May 31, 2024 · 0 comments

Comments

@AbdelghaniTamort
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant