Bug report #21636

QGIS crashes when editing a polygon layer

Added by Markus Weidenbach almost 5 years ago. Updated almost 5 years ago.

Status:Feedback
Priority:High
Assignee:-
Category:Digitising
Affected QGIS version:3.6.0 Regression?:No
Operating System:WIN 7 Pro 64bit Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:29452

Description

User Feedback

I was editing a MulitPolygon layer (*.gpkg). In the Digitizing Option of this layer I set "Geometry Correction" to "Delete duplicate Vertices" and "Is Valid". Th e "Topology Control" was not set.
As expected, when I was trying to save the layer after editing it, I got the message to check and correct the Geometrie errors before being able to save the layer.
I zoomed to the coordinates where the intersection of two line elements have been detected. I selected the vertex in question and tried to delete it. Then QGIS crashed!

We are working for some weeks now with this automatic geometry correction, I used it in 3.4 and now also in 3.6, and it caused permanent problems (it causes crashes and when repairing the detected errors, QGIS is ignoring it, ending up in an endless loop of correcting errors ...).
I also can find no help or documnetation on that option. I ended upt to deactivate this funtion (only the automatic correction of duplicates of vertices works).

Report Details

Crash ID: ad531a5ba6bb903396b6d917663ba2cbf0d1966e

Stack Trace

QgsFirstRunDialog::tr :
QModelIndex::data :
QgsFirstRunDialog::tr :
QgsFirstRunDialog::tr :
QgsFirstRunDialog::tr :
QgsFirstRunDialog::tr :
QMetaObject::activate :
QAbstractItemModel::dataChanged :
QgsFirstRunDialog::tr :
QMetaObject::activate :
QgsFormAnnotationDialog::qt_static_metacall :
QgsFirstRunDialog::tr :
QMetaObject::activate :
QgsVectorLayer::geometryChanged :
QMetaObject::activate :
QgsVectorLayerEditBuffer::geometryChanged :
QUndoStack::push :
QgsVectorLayerEditBuffer::changeGeometry :
QgsVectorLayer::changeGeometry :
QgsVectorLayerEditUtils::deleteVertex :
QgsVectorLayer::deleteVertex :
QgsVertexTool::deleteVertex :
QgsVertexTool::keyPressEvent :
QgsMapCanvas::keyPressEvent :
QWidget::event :
QFrame::event :
QAbstractScrollArea::event :
QgsMapCanvas::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processKeyEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
TranslateMessageEx :
TranslateMessage :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.6.0-Noosa
QGIS code revision: 58734527ab
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.4.0
Running against GDAL: 2.4.0

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

History

#1 Updated by Giovanni Manghi almost 5 years ago

  • Priority changed from Normal to High
  • Status changed from Open to Feedback
  • Subject changed from QGIS 3.6 with GRASS crashes when editing a polygon layer to QGIS crashes when editing a polygon layer

Can you try with a new/clean profile (no 3rd party plugins), thanks!

#2 Updated by Markus Weidenbach almost 5 years ago

o.k will work now with a clean profile.
Still working with my old profile I got another Crash, I`d like to share:

User Feedback

QGIS crashed again, still working on the same project and layer when editing a Ring (fill Ring) and while pressing the DELET key to delete vertices of the Ring.

Report Details

Crash ID: 9bc0371d12a0020387a1191fddbb061ea5ebe77a

Stack Trace

QgsPointXY::QgsPointXY :
QgsAdvancedDigitizingDockWidget::alignToSegment :
QgsRubberBand::addPoint :
QgsMapToolCapture::cadCanvasMoveEvent :
QgsMapCanvas::mouseMoveEvent :
QWidget::event :
QFrame::event :
QGraphicsView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
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 :
TranslateMessageEx :
TranslateMessage :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.6.0-Noosa
QGIS code revision: 58734527ab
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.4.0
Running against GDAL: 2.4.0

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

Also available in: Atom PDF