View Issue Details

IDProjectCategoryView StatusLast Update
0001452FreeCADBugpublic2014-02-28 09:39
Reportershoogen Assigned Toshoogen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Versiontrunk 
Summary0001452: JSON serialisation fails
DescriptionJSON serialisation fails for objects neither implemention __getstate__ nor __dict__
in src/App/PropertyPythonObject.cpp:100 the plain object is passed to json.dump but the exeception is not catched.
TagsNo tags attached.
FreeCAD Information

Activities

shoogen

2014-02-28 09:24

developer   ~0004328

In App::PropertyPythonObject::fromString(std::string const&)
the ValueError in json.loads in the first try block prevents the ViewProvider to be attached.

wmayer

2014-02-28 09:32

administrator   ~0004330

git show 849e39f

shoogen

2014-02-28 09:39

developer   ~0004331

the ticket wasn't about the involute gear failing.
It was about every ViewProvider failing which doesn't implement __setstate__
the commit did not fix that issue

Issue History

Date Modified Username Field Change
2014-02-28 09:17 shoogen New Issue
2014-02-28 09:18 shoogen Description Updated
2014-02-28 09:24 shoogen Note Added: 0004328
2014-02-28 09:26 shoogen Status new => closed
2014-02-28 09:26 shoogen Assigned To => wmayer
2014-02-28 09:26 shoogen Resolution open => fixed
2014-02-28 09:26 shoogen Fixed in Version => 0.14
2014-02-28 09:29 shoogen Assigned To wmayer =>
2014-02-28 09:29 shoogen Status closed => feedback
2014-02-28 09:29 shoogen Resolution fixed => reopened
2014-02-28 09:30 shoogen Assigned To => shoogen
2014-02-28 09:30 shoogen Status feedback => new
2014-02-28 09:30 shoogen Assigned To shoogen =>
2014-02-28 09:31 shoogen Steps to Reproduce Updated
2014-02-28 09:32 wmayer Note Added: 0004330
2014-02-28 09:32 wmayer Status new => closed
2014-02-28 09:32 wmayer Resolution reopened => fixed
2014-02-28 09:39 shoogen Assigned To => shoogen
2014-02-28 09:39 shoogen Note Added: 0004331
2014-02-28 09:39 shoogen Status closed => feedback
2014-02-28 09:39 shoogen Resolution fixed => reopened
2014-02-28 09:39 shoogen Status feedback => closed
2014-02-28 09:39 shoogen Resolution reopened => won't fix
2014-02-28 09:39 shoogen Status closed => feedback
2014-02-28 09:39 shoogen Resolution won't fix => reopened
2014-02-28 09:39 shoogen Status feedback => closed
2014-02-28 09:39 shoogen Resolution reopened => won't fix
2014-02-28 09:39 shoogen Fixed in Version 0.14 =>