Repeatable crash when opening a specific file

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
MichaelF
Posts: 2
Joined: Wed Aug 17, 2022 6:19 am

Repeatable crash when opening a specific file

Post by MichaelF »

This is my first bug report, I hope I did it right..:

When i try to open the File from attachment, FreeCAD repeatable crashes with SIGSEGV.
Output from Console:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/x86_64-linux-gnu/libc.so.6(+0x39510) [0x7f0d23fab510]
#1  0x7f0cc5f5f270 in BRepMesh_Delaun::Contains(int, BRepMesh_Vertex const&, double, int&) const from /app/lib/libTKMesh.so.7+0x220
#2  0x7f0cc5f673af in BRepMesh_Delaun::createTrianglesOnNewVertices(NCollection_Shared<NCollection_Vector<int>, void>&, Message_ProgressRange const&) from /app/lib/libTKMesh.so.7+0x49f
#3  0x7f0cc5f6850c in BRepMesh_Delaun::compute(NCollection_Shared<NCollection_Vector<int>, void>&) from /app/lib/libTKMesh.so.7+0x19c
#4  0x7f0cc5f689bb in BRepMesh_Delaun::perform(NCollection_Shared<NCollection_Vector<int>, void>&, int, int) from /app/lib/libTKMesh.so.7+0x2cb
#5  0x7f0cc5f68eab in BRepMesh_Delaun::BRepMesh_Delaun(opencascade::handle<BRepMesh_DataStructureOfDelaun> const&, NCollection_Shared<NCollection_Vector<int>, void>&, int, int) from /app/lib/libTKMesh.so.7+0x1fb
#6  0x7f0cc5f6c004 in BRepMesh_DelaunayBaseMeshAlgo::generateMesh(Message_ProgressRange const&) from /app/lib/libTKMesh.so.7+0x194
#7  0x7f0cc5f4e378 in BRepMesh_BaseMeshAlgo::Perform(opencascade::handle<IMeshData_Face> const&, IMeshTools_Parameters const&, Message_ProgressRange const&) from /app/lib/libTKMesh.so.7+0x3b8
#8  0x7f0cc5f89bbb in BRepMesh_NodeInsertionMeshAlgo<BRepMesh_CylinderRangeSplitter, BRepMesh_DelaunayBaseMeshAlgo>::Perform(opencascade::handle<IMeshData_Face> const&, IMeshTools_Parameters const&, Message_ProgressRange const&) from /app/lib/libTKMesh.so.7+0xab
#9  0x7f0cc5f77174 in BRepMesh_FaceDiscret::process(int, Message_ProgressRange const&) const from /app/lib/libTKMesh.so.7+0x134
#10  0x7f0cc5f779c7 in BRepMesh_FaceDiscret::FaceListFunctor::operator()(int) const from /app/lib/libTKMesh.so.7+0x107
#11  0x7f0cc6085500 in tbb::interface9::internal::do_iteration_task_iter<OSD_Parallel::UniversalIterator, tbb::internal::parallel_for_each_body_do<OSD_Parallel::FunctorInterface, OSD_Parallel::UniversalIterator>, OSD_Parallel::UniversalIterator>::execute() from /app/lib/libTKernel.so.7+0x20
#12  /app/lib/libtbb.so.2(+0x29d55) [0x7f0cc4723d55]
#13  /app/lib/libtbb.so.2(+0x2a0a7) [0x7f0cc47240a7]
#14  0x7f0cc608573b in tbb::interface9::internal::do_group_task_forward<OSD_Parallel::UniversalIterator, tbb::internal::parallel_for_each_body_do<OSD_Parallel::FunctorInterface, OSD_Parallel::UniversalIterator>, OSD_Parallel::UniversalIterator>::execute() from /app/lib/libTKernel.so.7+0xeb
#15  /app/lib/libtbb.so.2(+0x29d55) [0x7f0cc4723d55]
#16  /app/lib/libtbb.so.2(+0x2a0a7) [0x7f0cc47240a7]
#17  0x7f0cc608573b in tbb::interface9::internal::do_group_task_forward<OSD_Parallel::UniversalIterator, tbb::internal::parallel_for_each_body_do<OSD_Parallel::FunctorInterface, OSD_Parallel::UniversalIterator>, OSD_Parallel::UniversalIterator>::execute() from /app/lib/libTKernel.so.7+0xeb
#18  /app/lib/libtbb.so.2(+0x29d55) [0x7f0cc4723d55]
#19  /app/lib/libtbb.so.2(+0x2a0a7) [0x7f0cc47240a7]
#20  /app/lib/libtbb.so.2(+0x2479f) [0x7f0cc471e79f]
#21  /app/lib/libtbb.so.2(+0x22f58) [0x7f0cc471cf58]
#22  /app/lib/libtbb.so.2(+0x1f374) [0x7f0cc4719374]
#23  /app/lib/libtbb.so.2(+0x1f5ed) [0x7f0cc47195ed]
#24  /usr/lib/x86_64-linux-gnu/libpthread.so.0(+0x83ba) [0x7f0d234c83ba]
#25  /usr/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f0d240757a3]
Version Info:

Code: Select all

OS: KDE Flatpak runtime (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.9.9, Qt 5.15.5, Coin 4.0.0, Vtk 8.2.0, OCC 7.6.2
Locale: German/Germany (de_DE)
Attachments
Luefterhalter_liegend.FCStd
(382.58 KiB) Downloaded 19 times
chrisb
Veteran
Posts: 53927
Joined: Tue Mar 17, 2015 9:14 am

Re: Repeatable crash when opening a specific file

Post by chrisb »

Works here without issues:

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.29997 (Git)
Build type: Release
Branch: master
Hash: b52967d52ac46eff7c59e74d991f3f5b298944ef
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * FeedsAndSpeeds 0.4.0
  * fcgear 1.0.0
  * fasteners 0.3.51
  * sheetmetal 0.2.56
  * ExplodedAssembly
  * Curves 0.5.4
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: Repeatable crash when opening a specific file

Post by balrobs »

Works here without issues too!

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: German/Germany (de_DE)
Installed mods: 
  * Assembly3 0.11.3
  * BIM 2021.12.0
  * ExtremeProDark 1.0.0
  * FreeCAD_SketchArch
  * Help 1.0.3
  * ProDarkThemePreferencePack 1.0.0
chrisb
Veteran
Posts: 53927
Joined: Tue Mar 17, 2015 9:14 am

Re: Repeatable crash when opening a specific file

Post by chrisb »

@thomas-neemann, care to test on Linux?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
mfro
Posts: 663
Joined: Sat Sep 23, 2017 8:15 am

Re: Repeatable crash when opening a specific file

Post by mfro »

Bleeding edge FreeCAD on Linux doesn't crash but doesn't load either (FreeCAD hangs with spinning cursor and 100% busy on one core). After like 5 minutes I decided to kill the process.

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30065 (Git)
Build type: Release
Branch: attach_to_wire
Hash: bbc18c227c2293f5758f7fea0025cc443b011f1a
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.1
Locale: German/Germany (de_DE)
Cheers,
Markus
demonlibra
Posts: 79
Joined: Tue Jan 21, 2020 1:11 pm

Re: Repeatable crash when opening a specific file

Post by demonlibra »

Open without problem.

Linux Mint 21
FreeCAD_weekly-builds-29865-2022-07-31-conda-Linux-x86_64-py310.AppImage

Code: Select all

OS: Linux Mint 21 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.29865 (Git) AppImage
Build type: Release
Branch: master
Hash: fb5c731847398c5bfbc37468ba851e70860a86d5
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
jeno
Veteran
Posts: 1820
Joined: Sun Jun 29, 2014 10:41 am

Re: Repeatable crash when opening a specific file

Post by jeno »

MichaelF wrote: Wed Aug 17, 2022 6:47 am This is my first bug report, I hope I did it right..:

When i try to open the File from attachment, FreeCAD repeatable crashes with SIGSEGV.
...
Here immediate crash with

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.30029 (Git)
Build type: Release
Branch: makepkg
Hash: 7f23e793eb136def6aee0f0ce8131bbbb6cd21e6
Python 3.10.5, Qt 5.15.5, Coin 4.0.1, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Installed mods: 
  * Defeaturing
  * sheetmetal 0.2.49
It opens with

Code: Select all

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.29923 (Git) AppImage
Build type: Release
Branch: master
Hash: 30cb46cc5f630c97311162413b68edcff95db481
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Germany (de_DE)
Installed mods: 
  * Defeaturing
  * sheetmetal 0.2.49
but the last fillet shows errors when checking with BOP check included.
Workaround: do secondlast and last fillet in one step.

cheers
User avatar
mfro
Posts: 663
Joined: Sat Sep 23, 2017 8:15 am

Re: Repeatable crash when opening a specific file

Post by mfro »

mfro wrote: Wed Aug 17, 2022 9:08 am Bleeding edge FreeCAD on Linux doesn't crash but doesn't load either (FreeCAD hangs with spinning cursor and 100% busy on one core). After like 5 minutes I decided to kill the process.

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30065 (Git)
Build type: Release
Branch: attach_to_wire
Hash: bbc18c227c2293f5758f7fea0025cc443b011f1a
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.7.0.dev
Locale: German/Germany (de_DE)
Upgraded OCC to latest git and the file loads without any problems.
Cheers,
Markus
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Repeatable crash when opening a specific file

Post by thomas-neemann »

chrisb wrote: Wed Aug 17, 2022 8:03 am ...

no problems here

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30058 (Git) AppImage
Build type: Release
Branch: master
Hash: cb96332a64db8ae855ca700212eebb0f5151230a
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Germany (de_DE)

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2022.709.28846 (Git) AppImage
Build type: Release
Branch: LinkStage3
Hash: c880c050c5f7601e4bae6740de71500edf2be0c7
Python version: 3.9.13
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Repeatable crash when opening a specific file

Post by thomas-neemann »

chrisb wrote: Wed Aug 17, 2022 8:03 am @thomas-neemann, care to test on Linux?
btw

Bildschirmfoto_2022-08-17_12-26-28.png
Bildschirmfoto_2022-08-17_12-26-28.png (3.18 KiB) Viewed 500 times

did not generate an email notification, I happened to see it
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply