FreeCAD full crash on mesh generation (OS X Mojave)

About the development of the FEM module/workbench.

Moderator: bernd

jbm1991
Posts: 2
Joined: Sat Mar 09, 2019 5:57 pm

FreeCAD full crash on mesh generation (OS X Mojave)

Post by jbm1991 »

Hi, I've only been using FreeCAD for a couple of days and it's great - big thank you to any of you who have contributed to this software in any way.

On to my problem: I've created a very basic part (a wooden craft stick) and then using the a2plus workbench to "stick" 7 of them together to make a sort of squared figure 8 shape. I've then grouped these 7 items together into a compound in the Part workbench. I then went to the FEM workbench, created an Analysis, and then tried to generate a Netgen mesh which proceeds to hang FreeCAD for a few seconds before the application force closes itself. I've also tried with Gmsh masher which doesn't crash FreeCAD, however it doesn't appear to generate a mesh either, it just does nothing apart from create a node in the model hierarchy.

To summarise:
1 - Netgen mesh crashes FreeCAD every time
2 - Gmsh doesn't appear to do anything

Any help would be much appreciated, and I'm aware I've possibly done plenty of things wrong as I've pieced together information from the Wiki, YouTube videos and this forum.

One thing I did try as another forum post suggested was to run FreeCAD from the Terminal, and it still gave me the exact same problems as above, however when it crashed in the Terminal it reported "Segmentation fault: 11"

Code: Select all

OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15525 (Git)
Build type: Release
Branch: master
Hash: 1a7d3d9a37fe43468c8ac84590c1db53e2b2000a
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)

Code: Select all

Mac OS X Mojave
10.14.3 (18D109)
Attachments
test box.FCStd
(30.73 KiB) Downloaded 46 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by Kunda1 »

Should be moved to FEM
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by looo »

Can confirm with:

Code: Select all

OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15525 (Git)
Build type: Release
Branch: master
Hash: 1a7d3d9a37fe43468c8ac84590c1db53e2b2000a
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
I guess a incompatible netgen is bundled in this package.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by bernd »

jbm1991 wrote: Sat Mar 09, 2019 6:13 pm 2 - Gmsh doesn't appear to do anything
To be able to use the gmsh mesh object in FreeCAD FEM gmsh binary needs to be installed, and the path to the binary needs to be set in FEM preferences.
jbm1991
Posts: 2
Joined: Sat Mar 09, 2019 5:57 pm

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by jbm1991 »

looo wrote: Tue Mar 12, 2019 3:46 pm Can confirm with:

Code: Select all

OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15525 (Git)
Build type: Release
Branch: master
Hash: 1a7d3d9a37fe43468c8ac84590c1db53e2b2000a
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
I guess a incompatible netgen is bundled in this package.
Thanks for confirming my suspicions - good to know I'm not going mad!
bernd wrote: Tue Mar 12, 2019 10:21 pm
jbm1991 wrote: Sat Mar 09, 2019 6:13 pm 2 - Gmsh doesn't appear to do anything
To be able to use the gmsh mesh object in FreeCAD FEM gmsh binary needs to be installed, and the path to the binary needs to be set in FEM preferences.
Thanks for that information, I didn't know that. I'll download one now and give it a go.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by bernd »

@jbm1991:

since there are not many osx users for FreeCAD FEM arount it would be cool if you could give some feedback.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by looo »

This is a packaging-issue and should work with a more recent build on my dropbox (at least the netgen-meshing):
https://www.dropbox.com/sh/tcpg7xrvjdun ... Oteia?dl=0

But there is still a problem with calling claculix.
steve123
Posts: 149
Joined: Fri Sep 04, 2015 8:58 pm

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by steve123 »

Has this issue been addressed? I tried to generate a mesh today and the Mesh Design workbench causes FreeCAD to crash when you "create mesh from shape".

OS: macOS Mojave (10.14)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19323 (Git)
Build type: Release
Branch: master
Hash: 1b198453b8eb6aa2eaca4e4be4b49fee74e9de6e
Python version: 3.8.1
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Canada (en_CA)
steve123
Posts: 149
Joined: Fri Sep 04, 2015 8:58 pm

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by steve123 »

Update to this. If the default mesh options is used (Netgen), the crash occurs. Using the "standard" or "Mefisto" options, the crash does not occur.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: FreeCAD full crash on mesh generation (OS X Mojave)

Post by vocx »

steve123 wrote: Thu Feb 06, 2020 6:25 am ..."create mesh from shape".
...
Mesh FromPartShape calls internal code that is not at all related to the FEM Workbench. It doesn't generate a finite element mesh, it's a different type of mesh so to speak.

One of the meshers is in fact "Netgen". Netgen is a program or a library that can be compiled together with FreeCAD. However, if your version of FreeCAD does not have Netgen support, that is, it wasn't compiled with Netgen, then this method cannot be used. As I understand it, Netgen support was disabled in various versions because there were incompatibilities with other libraries. Maybe your MacOS version is not compiled against Netgen.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply