Bug report #12849

QGIS crashes when using advanced digitizing and snap function

Added by Andre Jesus over 4 years ago. Updated about 4 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Digitising
Affected QGIS version:2.8.2 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:20942

Description

This erros occours in QGIS version 2.8.1 and 2.8.2

1. Add a linestring
2. Settings > Snapping Options
3. Snapping mode: Current layer / Snap to: Vertex and segment / Tolerance: 2 map units / Enable Snapping on intersection
4. Enable editing
5. Add feature
6. Enable Advanced Digitalizing tools
7. Lock distance
8. Try to snap it to any other feature

Step 8 is the critical point:
If the locked distance is shorter than the feature you want to snap to, QGIS crashes.
If the locked distance is shorter than the nearest feature, but you are not trying to snap It, nothing happens.
If the locked distance is equal or longer than the feature you want to snap to, nothing happens.

Sometimes, before the crash, a warning shows up about CAD_TOOLS, but It doesn't stick and I can't find the message.

qgis-20150528-172154-8972-8888-1b929ef.rar - minidump (2.71 MB) Andre Jesus, 2015-05-29 04:56 AM

Associated revisions

Revision cbeacb76
Added by Matthias Kuhn over 4 years ago

Advanced digitizing: Create new MessageBarItem for every item shown

The QgsMessageBar takes ownership
Fix #12849

Revision f7489e0f
Added by Matthias Kuhn over 4 years ago

Advanced digitizing: Create new MessageBarItem for every item shown

The QgsMessageBar takes ownership
Fix #12849

History

#1 Updated by Giovanni Manghi over 4 years ago

  • Target version set to Future Release - High Priority
  • Priority changed from Normal to High
  • Subject changed from QGIS crash when using Adv. Digitatizing and Snap function to QGIS crashes when using advanced digitizing and snap function

#2 Updated by Matthias Kuhn over 4 years ago

  • Status changed from Open to Closed

#3 Updated by Andre Jesus about 4 years ago

  • % Done changed from 0 to 100

Also available in: Atom PDF