Bug report #12849
QGIS crashes when using advanced digitizing and snap function
|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|
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 you want to snap to, QGIS crashes.
If the locked distance is , but you are It, nothing happens.
If the locked distance is equal or 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.
Advanced digitizing: Create new MessageBarItem for every item shown
The QgsMessageBar takes ownership