Which Package for Freecad

There are 3 packages for Freecad:

https://search.nixos.org/packages?channel=25.05&from=0&size=50&sort=relevance&type=packages&query=freecad

Assuming that freecad-wayland is for GNOME.

But freecad-wayland and freecad crashes sooner or later…

Why do you assume that?

1 Like

It’s a Qt app.

Anyway, if it’s crashing, share the logs…

I think I am running into the same issue as they are. Regardless of which of the three freecad packages I use, the program crashes with a segmentation fault whenver I try to open a file or create a new project. One example for the crash is below. Here I started freecad and clicked on the first example project:

QObject::disconnect: wildcard call disconnects from destroyed signal of QObject::140651650613760
Migrating Start Workbench to Start command... done.
Program received signal SIGSEGV, Segmentation fault.
#0  /nix/store/g2jzxk3s7cnkhh8yq55l4fbvf639zy37-glibc-2.40-66/lib/libc.so.6(+0x419c0) [0x7fecb72419c0]
#1  /nix/store/pahwl2rq51dmwrn8czks27yy3sa3byg9-libX11-1.8.12/lib/libX11.so.6(XDefaultScreenOfDisplay+0) [0x7fecb74e84f0]
#2  /nix/store/ldgdkk1kwrm4a8klwn7cr2hmf8rdhmsq-coin-4.0.4/lib/libCoin.so.80(+0x4bf088) [0x7fecba0bf088]
#3  /nix/store/ldgdkk1kwrm4a8klwn7cr2hmf8rdhmsq-coin-4.0.4/lib/libCoin.so.80(glxglue_init+0x3e) [0x7fecba0bf26e]
#4  /nix/store/ldgdkk1kwrm4a8klwn7cr2hmf8rdhmsq-coin-4.0.4/lib/libCoin.so.80(cc_glglue_instance+0x79d) [0x7fecba0bc59d]
#5  0x7fecb9f1be68 in SoGLRenderActionP::isDirectRendering(SoState const*) const from /nix/store/ldgdkk1kwrm4a8klwn7cr2hmf8rdhmsq-coin-4.0.4/lib/libCoin.so.80+0x48
#6  0x7fecb9f1e225 in SoGLRenderActionP::render(SoNode*) from /nix/store/ldgdkk1kwrm4a8klwn7cr2hmf8rdhmsq-coin-4.0.4/lib/libCoin.so.80+0xc5
#7  0x7fecb9f17632 in SoAction::apply(SoNode*) from /nix/store/ldgdkk1kwrm4a8klwn7cr2hmf8rdhmsq-coin-4.0.4/lib/libCoin.so.80+0x412
#8  0x7fecbc8f2199 in Gui::SoBoxSelectionRenderAction::apply(SoNode*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0x29
#9  0x7fecbca09da5 in Gui::View3DInventorViewer::renderScene() from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0x155
#10  0x7fecbc9b8e85 in SIM::Coin3D::Quarter::QuarterWidget::paintEvent(QPaintEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0x1c5
#11  0x7fecbc9c7f11 in SIM::Coin3D::Quarter::SoQTQuarterAdaptor::paintEvent(QPaintEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0x41
#12  0x7fecb900d768 in QWidget::event(QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x2d8
#13  0x7fecb90677da in QFrame::event(QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x3a
#14  0x7fecb7bb7dce in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x8e
#15  0x7fecb8fa1c1d in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x7d
#16  0x7fecbc51b8a8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xd8
#17  0x7fecb7bb8098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x178
#18  0x7fecb9003c44 in QWidgetPrivate::sendPaintEvent(QRegion const&) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x64
#19  0x7fecbe479f50 in QOpenGLWidget::event(QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6OpenGLWidgets.so.6+0x1b0
#20  0x7fecb8fa1c2d in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x8d
#21  0x7fecbc51b8a8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xd8
#22  0x7fecb7bb8098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x178
#23  0x7fecb9008dbd in QWidgetPrivate::show_helper() from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x8d
#24  0x7fecb900ce83 in QWidgetPrivate::setVisible(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x1d3
#25  0x7fecb90088de in QWidgetPrivate::showChildren(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x1be
#26  0x7fecb9008d85 in QWidgetPrivate::show_helper() from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x55
#27  0x7fecb9008b25 in QWidgetPrivate::showChildren(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x405
#28  0x7fecb9008d85 in QWidgetPrivate::show_helper() from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x55
#29  0x7fecb900ce83 in QWidgetPrivate::setVisible(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x1d3
#30  0x7fecb90088de in QWidgetPrivate::showChildren(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x1be
#31  0x7fecb9008d85 in QWidgetPrivate::show_helper() from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x55
#32  0x7fecb9008b25 in QWidgetPrivate::showChildren(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x405
#33  0x7fecb9008d85 in QWidgetPrivate::show_helper() from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x55
#34  0x7fecb900ce83 in QWidgetPrivate::setVisible(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x1d3
#35  0x7fecb91ad37a in QMdiSubWindow::eventFilter(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x26a
#36  0x7fecb7bb7dce in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x8e
#37  0x7fecb8fa1c1d in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x7d
#38  0x7fecbc51b8a8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xd8
#39  0x7fecb7bb8098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x178
#40  0x7fecb900cfb4 in QWidgetPrivate::setVisible(bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x304
#41  0x7fecbc4a528b in Gui::Document::createView(Base::Type const&) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0x55b
#42  0x7fecbc424149 in Gui::Application::slotNewDocument(App::Document const&, bool) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xc59
#43  0x7fecbb8f4502 in boost::signals2::detail::signal_impl<void (App::Document const&, bool), boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void (App::Document const&, bool)>, boost::function<void (boost::signals2::connection const&, App::Document const&, bool)>, boost::signals2::mutex>::operator()(App::Document const&, bool) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADApp.so+0x2a2
#44  0x7fecbbb5f9a5 in App::Application::newDocument(char const*, char const*, bool, bool) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADApp.so+0x1825
#45  0x7fecbbb61936 in App::Application::openDocumentPrivate(char const*, char const*, char const*, bool, bool, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&&) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADApp.so+0x2c6
#46  0x7fecbbb627cd in App::Application::openDocuments(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*, bool) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADApp.so+0x74d
#47  0x7fecbbb646f3 in App::Application::openDocument(char const*, bool) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADApp.so+0xc3
#48  0x7fecbbb82307 in App::Application::sOpenDocument(_object*, _object*, _object*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADApp.so+0xf7
#49  /nix/store/djck7mx6jad1w0yy6zings96dyxanls6-python3-3.13.5/lib/libpython3.13.so.1.0(+0x2753ec) [0x7fecba8753ec]
#50  /nix/store/djck7mx6jad1w0yy6zings96dyxanls6-python3-3.13.5/lib/libpython3.13.so.1.0(_PyObject_MakeTpCall+0x1c6) [0x7fecba783546]
#51  /nix/store/djck7mx6jad1w0yy6zings96dyxanls6-python3-3.13.5/lib/libpython3.13.so.1.0(_PyEval_EvalFrameDefault+0x12a2) [0x7fecba9c3102]
#52  /nix/store/djck7mx6jad1w0yy6zings96dyxanls6-python3-3.13.5/lib/libpython3.13.so.1.0(PyEval_EvalCode+0x157) [0x7fecba9d4ae7]
#53  /nix/store/djck7mx6jad1w0yy6zings96dyxanls6-python3-3.13.5/lib/libpython3.13.so.1.0(+0x3dbc6a) [0x7fecba9dbc6a]
#54  /nix/store/djck7mx6jad1w0yy6zings96dyxanls6-python3-3.13.5/lib/libpython3.13.so.1.0(+0x3dbea7) [0x7fecba9dbea7]
#55  /nix/store/djck7mx6jad1w0yy6zings96dyxanls6-python3-3.13.5/lib/libpython3.13.so.1.0(PyRun_StringFlags+0x7c) [0x7fecba9dd4ec]
#56  0x7fecbb36d868 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADBase.so+0x68
#57  0x7fecbc586080 in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0x90
#58  0x7fecbc586210 in Gui::Command::_doCommand(char const*, int, Gui::Command::DoCmd_Type, char const*, ...) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xe0
#59  0x7fecbc41a56e in Gui::Application::open(char const*, char const*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0x4fe
#60  0x7fecbc530197 in Gui::ModuleIO::openFile(QString const&) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xe7
#61  0x7fec053c0613 in StartGui::StartView::fileCardSelected(QModelIndex const&) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/StartGui.so+0x63
#62  /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6(+0x225d6e) [0x7fecb7c25d6e]
#63  0x7fecb92ccb6c in QAbstractItemView::clicked(QModelIndex const&) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x3c
#64  0x7fecb92dadbf in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x3bf
#65  0x7fecb932fb88 in QListView::mouseReleaseEvent(QMouseEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x28
#66  0x7fecb900d768 in QWidget::event(QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x2d8
#67  0x7fecb90677da in QFrame::event(QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x3a
#68  0x7fecb7bb7dce in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x8e
#69  0x7fecb8fa1c1d in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x7d
#70  0x7fecb8facaeb in QApplication::notify(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0xf0b
#71  0x7fecbc51b8a8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xd8
#72  0x7fecb7bb8098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x178
#73  0x7fecb8fab439 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x5f9
#74  /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6(+0x222dff) [0x7fecb9022dff]
#75  /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6(+0x225930) [0x7fecb9025930]
#76  0x7fecb8fa1c2d in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x8d
#77  0x7fecbc51b8a8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xd8
#78  0x7fecb7bb8098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x178
#79  0x7fecb8407406 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Gui.so.6+0x3d6
#80  0x7fecb8476fb4 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Gui.so.6+0xb4
#81  0x7fecb84771f0 in QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Gui.so.6+0x1a0
#82  0x7fecb7c16f0a in QObject::event(QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x16a
#83  0x7fecb8fa1c2d in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Widgets.so.6+0x8d
#84  0x7fecbc51b8a8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xd8
#85  0x7fecb7bb8098 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x178
#86  0x7fecb7bbbf88 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x358
#87  /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6(+0x4e5f3f) [0x7fecb7ee5f3f]
#88  /nix/store/syzi2bpl8j599spgvs20xjkjzcw758as-glib-2.84.3/lib/libglib-2.0.so.0(+0x62f6d) [0x7fecb6703f6d]
#89  /nix/store/syzi2bpl8j599spgvs20xjkjzcw758as-glib-2.84.3/lib/libglib-2.0.so.0(+0x652b8) [0x7fecb67062b8]
#90  /nix/store/syzi2bpl8j599spgvs20xjkjzcw758as-glib-2.84.3/lib/libglib-2.0.so.0(g_main_context_iteration+0x2f) [0x7fecb6706b4f]
#91  0x7fecb7ee55d3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x73
#92  0x7fecb7bc6e4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0x1bb
#93  0x7fecb7bc1ea1 in QCoreApplication::exec() from /nix/store/v34x0870c3yh62r17hlzpngz5v1ab17m-qtbase-6.9.1/lib/libQt6Core.so.6+0xb1
#94  0x7fecbc429137 in Gui::Application::runApplication() from /nix/store/5gjp9ndmflhrs01dx88j7a2ks6g5kck6-freecad-1.0.1/lib/libFreeCADGui.so+0xa67
#95  freecad() [0x407fc0]
#96  /nix/store/g2jzxk3s7cnkhh8yq55l4fbvf639zy37-glibc-2.40-66/lib/libc.so.6(+0x2a4d8) [0x7fecb722a4d8]
#97  /nix/store/g2jzxk3s7cnkhh8yq55l4fbvf639zy37-glibc-2.40-66/lib/libc.so.6(__libc_start_main+0x8b) [0x7fecb722a59b]
#98  freecad() [0x408325]

Unfortunately, that backtrace is missing debug info. Try using enableDebugging for that package; see here: Debug Symbols - NixOS Wiki

Thanks for the information. I shall start debugging…

As a temporary solution I have activated Flatpak

{ config, pkgs, ... }:

{
  home.packages = [

    # Flatpak
    pkgs.flatpak
    pkgs.gnome-software

   ];
}

Just saw, that Freecad 1.0.2 is available. NixOS has version 1.0.1.

Does it make sense to wait with debugging?

https://search.nixos.org/packages?query=freecad

Looks like there’s already a bug report about this: freecad: segfault when opening file · Issue #429237 · NixOS/nixpkgs · GitHub

In the meantime, I found that running FreeCAD as COIN_EGL=1 freecad works for me.

Freecad 1.0.2 is drafted in freecad: 1.0.1 -> 1.0.2 by LordGrimmauld · Pull Request #431206 · NixOS/nixpkgs · GitHub.
The file opening issue has been fixed in freecad: apply patch fixing crash on wayland by NickCao · Pull Request #434105 · NixOS/nixpkgs · GitHub, in the meantime COIN_EGL=1 freecad should work (or forcing x11 via QT_QPA_PLATFORM=xcb freecad)

freecad used to default to the qt5 build (and still does on stable 25.05). On that build, it defaulted to x11 rendering. The three packages were qt5 (x11), qt5 (wayland), and qt6 (supported both). Because of the way stable works, we can’t backport the removal of the qt5 versions, but the qt6 version is arguably the one that should be used. The crashes need backporting of the coin fix, which i can look into.