Bug report #12849
QGIS crashes when using advanced digitizing and snap function
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.
Associated revisions
Advanced digitizing: Create new MessageBarItem for every item shown
The QgsMessageBar takes ownership
Fix #12849
Advanced digitizing: Create new MessageBarItem for every item shown
The QgsMessageBar takes ownership
Fix #12849
History
#1 Updated by Giovanni Manghi over 9 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 9 years ago
- Status changed from Open to Closed
Fixed in changeset f7489e0f2ef085195300e185ec649882787e8695.
#3 Updated by Andre Jesus over 9 years ago
- % Done changed from 0 to 100