FreeCAD crashing often when recomputing
- Dominant language
- C++
- Stars
- 33.6k
- Forks
- 6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 196
Description
### Problem description
It crashes, but after loading it again, it works normally until another recomputation eventually causes it to crash again.
```
Ultra/Agres/Design …
➜ fcad Parts/Housing.FCStd
Using /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/AppRun
Session log: /tmp/freecad_log_2026-05-06_01:01:44.log
01:01:44 FreeCAD 1.2.0, Libs: 1.2.0devR20260505 (Git shallow)
01:01:44 11ms (C) 2001-2026 FreeCAD contributors
01:01:44 10ms FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
01:01:44 10ms
01:01:54 9s 40 AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
01:02:42 47s 1.9e-08 Document.cpp(2852): Recursive calling of recompute for document Housing
01:10:26 7min 0h08 463.57 Document.cpp(2852): Recursive calling of recompute for document Housing
01:10:40 14s Program received signal SIGSEGV, Segmentation fault.
01:10:40 10ms #0 /usr/lib/x86_64-linux-gnu/libc.so.6(+0x45cb0) [0x7c7d8c645cb0]
01:10:40 7ms #1 0x7c7d8d1663a5 in QMetaObject::indexOfProperty(char const*) const from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6+0x15
01:10:40 9ms #2 0x7c7d8d14ed1f in QObject::doSetProperty(char const*, QVariant const*, QVariant*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6+0x5f
01:10:40 9ms #3 0x7c7d930f3872 in Gui::TaskView::TaskView::accept(App::Document*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libFreeCADGui.so+0xc2
01:10:40 7ms #4 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6(+0x31684a) [0x7c7d8d11684a]
01:10:40 9ms #5 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6(+0x3d86f9) [0x7c7d8e3d86f9]
01:10:40 7ms #6 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6(+0x31684a) [0x7c7d8d11684a]
01:10:40 9ms #7 0x7c7d8e456727 in QAbstractButton::clicked(bool) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6+0x47
01:10:40 8ms #8 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6(+0x47be80) [0x7c7d8e47be80]
01:10:40 8ms #9 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6(+0x4adba7) [0x7c7d8e4adba7]
01:10:40 8ms #10 0x7c7d8e4add6d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6+0xbd
01:10:40 9ms #11 0x7c7d8e5c3864 in QWidget::event(QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6+0xa64
01:10:40 8ms #12 0x7c7d8e5b3e48 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6+0x88
01:10:40 8ms #13 0x7c7d8e5b4cbd in QApplication::notify(QObject*, QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6+0xdad
01:10:40 8ms #14 0x7c7d92ce6818 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libFreeCADGui.so+0x78
01:10:40 8ms #15 0x7c7d8d15fb8a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6+0x17a
01:10:40 8ms #16 0x7c7d8e5bbe7c in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6+0x1ec
01:10:40 8ms #17 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6(+0x5be8c7) [0x7c7d8e5be8c7]
01:10:40 8ms #18 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6(+0x5c5440) [0x7c7d8e5c5440]
01:10:40 7ms #19 0x7c7d8e5b3e48 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Widgets.so.6+0x88
01:10:40 7ms #20 0x7c7d92ce6818 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libFreeCADGui.so+0x78
01:10:40 8ms #21 0x7c7d8d15fb8a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6+0x17a
01:10:40 8ms #22 0x7c7d8d7d1970 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Gui.so.6+0x810
01:10:40 8ms #23 0x7c7d8d831e14 in QWindowSystemInterface::sendWindowSystemEvents(QFlags) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Gui.so.6+0xb4
01:10:40 8ms #24 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/lib/qt6/plugins/platforms/../../../libQt6XcbQpa.so.6(+0x58f90) [0x7c7d81eaef90]
01:10:40 7ms #25 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/./libglib-2.0.so.0(+0x5bde6) [0x7c7d8a706de6]
01:10:40 7ms #26 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/./libglib-2.0.so.0(+0x5f0a7) [0x7c7d8a70a0a7]
01:10:40 8ms #27 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7c7d8a70a81e]
01:10:40 10ms #28 0x7c7d8cef6b12 in QEventDispatcherGlib::processEvents(QFlags) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6+0x72
01:10:40 9ms #29 0x7c7d8d19747c in QEventLoop::exec(QFlags) from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6+0x25c
01:10:40 8ms #30 0x7c7d8d1977da in QCoreApplication::exec() from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libQt6Core.so.6+0x9a
01:10:40 8ms #31 0x7c7d92c5040c in Gui::Application::runApplication() from /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/../lib/libFreeCADGui.so+0xc4c
01:10:40 8ms #32 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/freecad(+0xa0bf) [0x6143851170bf]
01:10:40 8ms #33 /usr/lib/x86_64-linux-gnu/libc.so.6(+0x2a601) [0x7c7d8c62a601]
01:10:40 9ms #34 /usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x88) [0x7c7d8c62a718]
01:10:40 8ms #35 /home/lheck/Applications/FreeCAD/weekly/2026.05.06/squashfs-root/usr/bin/freecad(+0x9189) [0x614385116189]
```
### Workbench affected?
Core
### Development version About Info (in Safe Mode)
```shell
OS: Ubuntu 26.04 LTS (ubuntu:GNOME/ubuntu/wayland)
Architecture: x86_64
Version: 1.2.0dev.20260505 (Git shallow)
Build date: 2026/05/05 22:34:03
Build type: Release
Branch: (HEAD detached at 08cacbbc2)
Hash: 08cacbbc27421e769be4ec423f9815a01e51e533
Python 3.11.14, Qt 6.8.3, Coin 4.0.8, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: OpenDark.qss/OpenDark/fusion
Navigation Style/Orbit Style/Rotation Mode: Touchpad/Trackball/Drag at cursor
Logical DPI/Physical DPI/Pixel Ratio: 96/94.485/1
```
### Last known good version (optional)
```shell
I started to notice this in the latest weekly `FreeCAD/weekly/2026.04.29`.
```
Contributor guide
Assessment
This issue has not been assessed yet.