View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001327 | Sketcher | Bug | public | 2013-12-08 12:10 | 2013-12-09 12:44 |
Reporter | wmayer | Assigned To | wmayer | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | 64-bit | OS | Windows | OS Version | 7 |
Product Version | 0.14 | ||||
Summary | 0001327: Crash in System::initSolution() | ||||
Description | There 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. | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
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 |