[Fixed]Bug #2816 [Part Design] Trimming tool crashes

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
Kunda1
Posts: 5759
Joined: Thu Jan 05, 2017 9:03 pm

[Fixed]Bug #2816 [Part Design] Trimming tool crashes

Postby Kunda1 » Sat Jan 14, 2017 12:36 pm

issue #2816 backtraces and even a macro are provide to reproduce the bug. Please discuss here.

Code: Select all

# -*- coding: utf-8 -*-

# Macro Begin: /home/egnyte/demo/freecad/macro/trimBug.FCMacro +++++++++++++++++++++++++++++++++++++++++++++++++
import FreeCAD
import Sketcher

App.ActiveDocument.Sketch.addGeometry(Part.Circle(App.Vector(-60.776348,29.000000,0),App.Vector(0,0,1),24.450798),False)
App.ActiveDocument.recompute()
App.ActiveDocument.Sketch.addGeometry(Part.Circle(App.Vector(-60.483448,28.704008,0),App.Vector(0,0,1),18.345344),False)
App.ActiveDocument.Sketch.addConstraint(Sketcher.Constraint('Coincident',1,3,0,3))
App.ActiveDocument.recompute()
App.ActiveDocument.Sketch.addGeometry(Part.Circle(App.Vector(-39.000000,28.000000,0),App.Vector(0,0,1),13.995712),False)
App.ActiveDocument.recompute()
App.ActiveDocument.Sketch.trim(1,App.Vector(-42.000000,28.704008,0))
App.ActiveDocument.recompute()
App.ActiveDocument.Sketch.trim(2,App.Vector(-43.495361,15.000000,0))
App.ActiveDocument.recompute()
App.ActiveDocument.Sketch.trim(0,App.Vector(-37.000000,20.502863,0))
App.ActiveDocument.recompute()
# Macro End: /home/egnyte/demo/freecad/macro/trimBug.FCMacro +++++++++++++++++++++++++++++++++++++++++++++++++
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
nemesis
Posts: 344
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: Bug #2816 [Part Design] Trimming tool crashes

Postby nemesis » Sat Jan 14, 2017 4:47 pm

on
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9586 (Git)
Build type: Release
Branch: (detached from 0e2cf2e)
Hash: 0e2cf2ebcaaa50723de608cf030af740cb6ad548
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 7.0.0

FreeCad Doesn't Crash but trimming is not always the one expected
wmayer
Site Admin
Posts: 14879
Joined: Thu Feb 19, 2009 10:32 am

Re: Bug #2816 [Part Design] Trimming tool crashes

Postby wmayer » Mon Jan 23, 2017 6:10 pm