makeFilledFace crashing FreeCAD

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
nmt
Posts: 29
Joined: Sun Feb 19, 2017 2:45 pm

makeFilledFace crashing FreeCAD

Post by nmt »

The following very short script is crashing FreeCAD for me at the makeFilledFace line. Any ideas?

Code: Select all

import Part
v1 = App.Vector(0.0,0.0,0.0)
v2 = App.Vector(10.0,0.0,0.0)
v3 = App.Vector(10.0,0.0,10.0)
v4 = App.Vector(0.0,0.0,10.0)
edge1 = Part.makeLine(v1, v2)
edge2 = Part.makeLine(v2, v3)
edge3 = Part.makeLine(v3, v4)
edge4 = Part.makeLine(v4, v1)
result = Part.makeFilledFace([edge1,edge2,edge3,edge4])
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: makeFilledFace crashing FreeCAD

Post by triplus »

Hi @nmt.

I can not confirm the crash.
User avatar
Chris_G
Veteran
Posts: 2579
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: makeFilledFace crashing FreeCAD

Post by Chris_G »

Hi,
Please post your FC info.
The script works fine for me :

Code: Select all

OS: Ubuntu Zesty Zapus (development branch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10634 (Git)
Build type: None
Branch: master
Hash: abe15bbd83671b24f9fadc7a064d8baf5aa52ff3
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
User avatar
nmt
Posts: 29
Joined: Sun Feb 19, 2017 2:45 pm

Re: makeFilledFace crashing FreeCAD

Post by nmt »

This is my FC info. I just tried it again and it is still a hard crash. And it does not crash until the last line is entered.

Code: Select all

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10163 (Git)
Build type: Release
Branch: (detached from 1f12a3f)
Hash: 1f12a3f65c474ddb1965626e96c26f40062ab6ac
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: makeFilledFace crashing FreeCAD

Post by chrisb »

nmt wrote: Version: 0.17.10163 (Git)
Please update your FreeCAD, it is almost 500 commits behind!

However, I tried with my brand new version and it crashed as well. Started from commandline it shows the not very informative message

Code: Select all

*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGILL 'illegal instruction' detected.
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10641 (Git)
Build type: Release
Branch: (detached from 3074c2e)
Hash: 3074c2e756b14c2f06ada11da14b1123e9ecd0f8
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
nmt
Posts: 29
Joined: Sun Feb 19, 2017 2:45 pm

Re: makeFilledFace crashing FreeCAD

Post by nmt »

Thank you for alerting me to update. I updated FreeCAD (see below) and ran the python script from the command line and received the same non-informative crash report as you. I have submitted a crash/bug report https://www.freecadweb.org/tracker/view.php?id=2985

Code: Select all

Nmt-MacBook-Pro:MacOS nmt$ ./FreeCADCmd "/Users/Nmt/Dropbox/CrashTest.py"
FreeCAD 0.17, Libs: 0.17R10641 (Git)
(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2017
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGILL 'illegal instruction' detected.
Nmt-MacBook-Pro:MacOS nmt$

Code: Select all

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10641 (Git)
Build type: Release
Branch: (detached from 3074c2e)
Hash: 3074c2e756b14c2f06ada11da14b1123e9ecd0f8
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: makeFilledFace crashing FreeCAD

Post by ulrich1a »

The script works here:
OS: Debian GNU/Linux 8.7 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10643 (Git) (Two extra commits)
Build type: Release
Branch: Rueck6
Hash: 5bead9d4f418d22e09b0d0b5d1724e4aecfbedbd
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0

Looking at all the version information given, it could be QT 5.6 related.

Ulrich
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: makeFilledFace crashing FreeCAD

Post by wmayer »

Looking at all the version information given, it could be QT 5.6 related.
I cannot image this.
I wonder if it could be related to OCC 7.1 (and its use on macOS).

@nmt are you able to let run it in the debugger? Then we know more where the crash actually happens.
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: makeFilledFace crashing FreeCAD

Post by chrisb »

ulrich1a wrote:Looking at all the version information given, it could be QT 5.6 related.
No, Chris_G has discovered it with QT4 and I checked as well.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
nmt
Posts: 29
Joined: Sun Feb 19, 2017 2:45 pm

Re: makeFilledFace crashing FreeCAD

Post by nmt »

@nmt are you able to let run it in the debugger? Then we know more where the crash actually happens.
Sorry, I am not set up to compile FreeCAD on my Mac. If someone can point me to an executable that has already been compiled with the debug flag, I can give it a try.
Post Reply