View Issue Details

IDProjectCategoryView StatusLast Update
0001327SketcherBugpublic2013-12-09 12:44
Reporterwmayer Assigned Towmayer  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platform64-bitOSWindowsOS Version7
Product Version0.14 
Summary0001327: Crash in System::initSolution()
DescriptionThere is a critical bug in this method where when creating a new sketch the Graph 'g' is empty and thus has no components. The line
> VEC_I components(boost::num_vertices(g));
creates an empty vector. However, in the next line the first element of it is tried to access which is an error.

Until now I was using boost 1.41 and never got it crashing there. But now I switched to boost 1.54 and it promptly crashes here.

However, when checking the stack trace it doesn't seem to be boost-related but there is a difference of handling the error in vector's [] operator. Now it raises an assert dialog and closes the application while before it didn't do that. That's a bit weird because I still use the same compiler and only upgraded some libraries.

But nevertheless it's a bug in System::initSolution() and I think just checking if the vector is empty and returning should fix this.

TagsNo tags attached.
FreeCAD Information

Activities

There are no notes attached to this issue.

Related Changesets

FreeCAD: master 5e628aed

2013-12-09 13:41:38

wmayer

Details Diff
+ fixes 0001327: Crash in System::initSolution() Affected Issues
0001327
mod - src/Mod/Sketcher/App/freegcs/GCS.cpp Diff File

Issue History

Date Modified Username Field Change
2013-12-08 12:10 wmayer New Issue
2013-12-08 12:10 wmayer Status new => assigned
2013-12-08 12:10 wmayer Assigned To => logari81
2013-12-09 12:44 wmayer Changeset attached => FreeCAD Master master 5e628aed
2013-12-09 12:44 wmayer Assigned To logari81 => wmayer
2013-12-09 12:44 wmayer Status assigned => closed
2013-12-09 12:44 wmayer Resolution open => fixed