Bug report #18497

crash at processing....qgis:snapgeometries

Added by Ralf Koenig over 2 years ago. Updated almost 2 years ago.

Status:Closed
Priority:Normal
Assignee:Julien Cabieces
Category:Processing/QGIS
Affected QGIS version:3.0.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:26385

Description

1) I used 2 input polygon-layers (shp-datasource)

2.1) with each: “processing ...native:fixgeometries”
2.2) with each result: “ processing ... qgis:checkvalidity”
2.3) with resulting valid layers: save as shp
2.4) with each layer: “processing....qgis:snapgeometries” (one layer as input / other as reference-layer, tolerance=0.3, behaviour: prefer nodes,add vertices; temporary layer) -> crash at 1%

Report:
Crash ID: b4b7a7ecd21274bc55969d96468662ce0cc371f4

Stack Trace

QgsCurvePolygon::vertexAt :
QgsGeometryCollection::vertexAt :
QgsGeometrySnapper::snapGeometry :
QgsGeometrySnapper::snapGeometry :
PyInit__analysis :
PyCFunction_FastCallDict :
PyObject_GenericGetAttr :
PyEval_EvalFrameDefault :
PyFunction_FastCallDict :
PyObject_CallFunctionObjArgs :
PyObject_Call :
PyInit_sip :
std::basic_string,std::allocator >::shrink_to_fit :
std::_String_alloc > >::_Get_data :
QgsProcessingAlgorithm::runPrepared :
QgsProcessingAlgRunnerTask::run :
PyInit__core :
QgsTask::start :
QThreadPoolPrivate::reset :
QThread::start :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.0.0-Girona
QGIS code revision: 001c80b0c3
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.3.9600

data.zip (4.48 MB) Ralf Koenig, 2018-03-21 05:55 AM

Associated revisions

Revision abda6c42
Added by Julien Cabieces almost 2 years ago

fixes #18497 : Correct line size method when snapping multipolygon

Revision 4d335886
Added by Julien Cabieces almost 2 years ago

fixes #18497 : Correct line size method when snapping multipolygon

History

#1 Updated by Nyall Dawson over 2 years ago

  • Status changed from Open to Feedback

Can you please share the data files used?

#2 Updated by Ralf Koenig over 2 years ago

reduced dataset - crash now at 12 % progress

#3 Updated by Nyall Dawson over 2 years ago

  • Status changed from Feedback to Open

#4 Updated by Nino Formica over 2 years ago

I confirm this issue on QGIS 3.2.0.
With someone layer (polygons) QGIS crash; with others it's ok.
It would seem that it depends (crash or not) on layer size or features regularity.
In same cases the solution is to reduce tollerance value.

#5 Updated by Julien Cabieces almost 2 years ago

  • Assignee changed from Victor Olaya to Julien Cabieces
  • Pull Request or Patch supplied changed from No to Yes

#6 Updated by Julien Cabieces almost 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#7 Updated by Ralf Koenig almost 2 years ago

Tested it in the nightly build.
I'm very thankful for fixing it !!!!! GREAT !!!!

Also available in: Atom PDF