View Issue Details

IDProjectCategoryView StatusLast Update
0002841FreeCADPatchpublic2017-01-11 17:03
Reportertobycz Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
OSUbuntuOS Version16.04.1 LTS 
Product Version0.16 
Summary0002841: Draft.makeWire gives error message from Coin
DescriptionCalls to Draft.makeWire give error messages from Coin.
Coin error in SoGroup::removeChild(): tried to remove non-existent child 0x2e21e00 (Sphere)
Coin error in SoGroup::removeChild(): tried to remove non-existent child 0x2e21a00 (Separator)

The problem is in the _ViewProviderWire class.
This lines are problematic, children are removed without checking if they exist.
self.pt.removeChild(self.symbol)
rn.removeChild(self.pt)

I have attached a patch which works for me.
Maybe there is a more elegant solution to check whether children exist.
Additional InformationOS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
TagsNo tags attached.
FreeCAD Information

Activities

tobycz

2017-01-11 05:32

reporter  

Draft.py.patch (Attachment missing)

yorik

2017-01-11 17:02

administrator   ~0007635

Thanks for the patch, but this is fixed in master already,

Issue History

Date Modified Username Field Change
2017-01-11 05:32 tobycz New Issue
2017-01-11 05:32 tobycz File Added: Draft.py.patch
2017-01-11 17:02 yorik Note Added: 0007635
2017-01-11 17:03 yorik Status new => closed
2017-01-11 17:03 yorik Assigned To => yorik
2017-01-11 17:03 yorik Resolution open => no change required