View Issue Details

IDProjectCategoryView StatusLast Update
0000554FreeCADBugpublic2011-12-29 17:26
ReporternormandcAssigned Tologari81 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionFixed in Version0.13 
Summary0000554: Sketcher: adding angle constraint on a single line crashes FreeCAD
DescriptionThe Sketcher angle constraint works fine if two lines are selected. But if a single line is selected, FreeCAD immediately quits.

It used to be that if only one line was selected, the angle constraint was added between the line and a standard axis.

Steps to reproduce:

1 - In Sketcher workbench, create new sketch
2 - Draw a line without vertical or horizontal constraint
3 - Select it
4 - Click on the angle constraint tool
Additional InformationFreeCAD version 0.13-bzr4989 on Ubuntu 11.10 64-Bit
TagsNo tags attached.

Activities

wmayer

2011-12-29 10:51

administrator   ~0001515

This happens in ViewProviderSketch::draw(bool) in line 2210. The second assert() there fails with the condition Constr->Second=-2000 and extGeoCount=2 and intGeoCount=1

logari81

2011-12-29 15:27

developer   ~0001518

yes, it was a too strict assertion, thanks for the report, it is fixed now.

wmayer

2011-12-29 17:26

administrator   ~0001520

Fixed in rev 5358

Issue History

Date Modified Username Field Change
2011-12-29 00:52 normandc New Issue
2011-12-29 10:51 wmayer Note Added: 0001515
2011-12-29 10:51 wmayer Assigned To => logari81
2011-12-29 10:51 wmayer Status new => confirmed
2011-12-29 15:27 logari81 Note Added: 0001518
2011-12-29 15:27 logari81 Resolution open => fixed
2011-12-29 17:26 wmayer Note Added: 0001520
2011-12-29 17:26 wmayer Status confirmed => closed
2011-12-29 17:26 wmayer Fixed in Version => 0.13