View Issue Details

IDProjectCategoryView StatusLast Update
0002980File formatsGeneralpublic2017-04-28 15:41
Reportervejmarie Assigned Tovejmarie  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformMacbookProOSMacOSOS VersionElCapitan
Summary0002980: Moving an Object with Part Design next and master crash
DescriptionWhile migrating STEP reader to new Part Design, I am getting a crash with master while my old branch was working.

I roughly create the tree, by parsing the STEP assembly, create a bunch of leaf, and a bunch of node, then interconnect everything by moving the object tree from a place to another

This is the backtrace I got on MacOS.

You can reproduce the bug by opening a STEP file which contain multiple level assembly and using my step branch from my github repo (http://github.com/vejmarie/FreeCAD). It was working like a charm before rebasing. I am perhaps using the object the wrong way.


(lldb) bt
* thread #1: tid = 0xbdb885, 0x000000010108d38d libFreeCADApp.dylib`App::OriginGroupExtension::relinkToOrigin(App::DocumentObject*) + 413, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x000000010108d38d libFreeCADApp.dylib`App::OriginGroupExtension::relinkToOrigin(App::DocumentObject*) + 413
    frame #1: 0x000000010108ed9f libFreeCADApp.dylib`App::OriginGroupExtension::addObject(App::DocumentObject*) + 47
    frame 0000002: 0x0000000118e2e8f0 Import.so`Import::ImportOCAF::loadShapes(TDF_Label const&, TopLoc_Location const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::vector<App::DocumentObject*, std::__1::allocator<App::DocumentObject*> >&) + 6848
    frame 0000003: 0x0000000118e2da31 Import.so`Import::ImportOCAF::loadShapes(TDF_Label const&, TopLoc_Location const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::vector<App::DocumentObject*, std::__1::allocator<App::DocumentObject*> >&) + 3073
    frame 0000004: 0x0000000118e2e599 Import.so`Import::ImportOCAF::loadShapes(TDF_Label const&, TopLoc_Location const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::vector<App::DocumentObject*, std::__1::allocator<App::DocumentObject*> >&) + 5993
    frame 0000005: 0x0000000118e2e599 Import.so`Import::ImportOCAF::loadShapes(TDF_Label const&, TopLoc_Location const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::vector<App::DocumentObject*, std::__1::allocator<App::DocumentObject*> >&) + 5993
    frame 0000006: 0x0000000118e2e599 Import.so`Import::ImportOCAF::loadShapes(TDF_Label const&, TopLoc_Location const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::vector<App::DocumentObject*, std::__1::allocator<App::DocumentObject*> >&) + 5993
    frame 0000007: 0x0000000118e2cc7c Import.so`Import::ImportOCAF::loadShapes() + 588
TagsSTEP
FreeCAD Information

Activities

vejmarie

2017-03-23 10:49

developer   ~0008691

Ok, I found a bad pointer into my code which led to this crash. I am closing the bug as of now ;), sorry for the inconvenience

Kunda1

2017-04-28 15:41

administrator   ~0008803

@vejmarie I'm closing this ticket based on your previous comment.

Issue History

Date Modified Username Field Change
2017-03-22 22:13 vejmarie New Issue
2017-03-22 22:13 vejmarie Status new => assigned
2017-03-22 22:13 vejmarie Assigned To => ickby
2017-03-23 08:59 Kunda1 Tag Attached: STEP
2017-03-23 10:49 vejmarie Note Added: 0008691
2017-04-28 15:41 Kunda1 Assigned To ickby => vejmarie
2017-04-28 15:41 Kunda1 Status assigned => closed
2017-04-28 15:41 Kunda1 Resolution open => no change required
2017-04-28 15:41 Kunda1 Note Added: 0008803