geo_sim_processing icon indicating copy to clipboard operation
geo_sim_processing copied to clipboard

Reduce Bend can crash QGIS

Open AlisterH opened this issue 1 year ago • 0 comments

I seem to be able to reliably crash the reduce bend algorithm with this file (perhaps it is just too big?)

Python Stack Trace
Windows fatal exception: access violation

Current thread 0x00005858 (most recent call first):
  File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geo_sim_processing\geo_sim_util.py", line 166 in _create_rectangle
    return id_segment, qgs_geom.boundingBox()
  File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geo_sim_processing\geo_sim_util.py", line 188 in add_features
    qgs_rectangles.append(self._create_rectangle(rb_geom.id, qgs_geom))
  File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geo_sim_processing\reduce_bend_algorithm.py", line 756 in reduce_bends
    self.rb_collection.add_features(self.rb_geoms, self.feedback)
  File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geo_sim_processing\reduce_bend_algorithm.py", line 563 in reduce
    results = rb.reduce_bends()
  File "C:\Users/alister/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geo_sim_processing\reduce_bend_algorithm.py", line 196 in processAlgorithm
    rb_return = ReduceBend.reduce(qgs_features_in, diameter_tol, smooth_line, exclude_polygon,

Thread 0x00001010 (most recent call first):
  File "D:\OSGeo4W/apps/qgis-dev/./python/plugins\processing\ProcessingPlugin.py", line 432 in executeAlgorithm
    dlg.exec_()
  File "D:\OSGeo4W/apps/qgis-dev/./python/plugins\processing\gui\ProcessingToolbox.py", line 232 in executeAlgorithm
    self.executeWithGui.emit(alg.id(), self, self.in_place_mode, False)


Stack Trace


PyType_GenericNew :
PyObject_Call :
PyInit_sip :
meth_QgsGeometry_boundingBox sip_corepart13.cpp:95452
PyArg_ParseTuple_SizeT :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyEval_EvalFrameDefault :
PyObject_GC_Del :
PyFunction_Vectorcall :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyFloat_FromDouble :
PyVectorcall_Call :
PyObject_Call :
sipVH__core_705 sip_corepart0.cpp:22908
sipQgsProcessingAlgorithm::processAlgorithm sip_corepart9.cpp:62881
QgsProcessingAlgorithm::runPrepared qgsprocessingalgorithm.cpp:613
QgsProcessingAlgRunnerTask::run qgsprocessingalgrunnertask.cpp:69
sipQgsProcessingAlgRunnerTask::run sip_corepart9.cpp:36700
QgsTask::start qgstaskmanager.cpp:81
QgsTaskRunnableWrapper::run qgstaskmanager.cpp:374
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :




QGIS Info
QGIS Version: 3.33.0-Master
QGIS code revision: 7df22c4d1e
Compiled against Qt: 5.15.3
Running against Qt: 5.15.3
Compiled against GDAL: 3.8.0dev-ecefae5921
Running against GDAL: 3.8.0dev-360a9aea02



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

AlisterH avatar Jul 06 '23 13:07 AlisterH