You are not logged in.

#1 2025-07-25 17:11:29

OpusOne
Member
Registered: 2023-05-31
Posts: 184

[SOLVED] FreeCAD 1.0.1 crashes when opening any file

Looks like FreeCAD 1.0.1 now crashes every time one opens a file - seemingly from any format (tried opening FreeCAD files, importing DXF, importing OpenSCAD..., same crash.)

It segfaults.
Here's the backtrace:

==== backtrace (tid:1485165) ====
 0 0x000000000004ddf3 ucs_rcache_distribution_get_num_bins()  ???:0
 1 0x000000000004dfbd ucs_rcache_distribution_get_num_bins()  ???:0
 2 0x000000000003def0 __sigaction()  ???:0
 3 0x0000000000027744 XDefaultScreenOfDisplay()  ???:0
 4 0x0000000000461949 cc_glglue_context_destruct()  ???:0
 5 0x00000000004627d3 glxglue_init()  ???:0
 6 0x00000000004635f6 cc_glglue_instance()  ???:0
 7 0x00000000002b800d SoGLRenderActionP::isDirectRendering()  ???:0
 8 0x00000000002bd2c5 SoGLRenderActionP::render()  ???:0
 9 0x00000000002bcedc SoAction::apply()  ???:0
10 0x0000000000abe33e Gui::SoBoxSelectionRenderAction::apply()  ???:0
11 0x0000000000bdf87d Gui::View3DInventorViewer::renderScene()  ???:0
12 0x0000000000b8c655 SIM::Coin3D::Quarter::QuarterWidget::paintEvent()  ???:0
13 0x0000000000b9b6fa SIM::Coin3D::Quarter::SoQTQuarterAdaptor::paintEvent()  ???:0
14 0x000000000015b3f3 QWidget::event()  ???:0
15 0x00000000001c7a76 QFrame::event()  ???:0
16 0x00000000001675dc QCoreApplicationPrivate::sendThroughObjectEventFilters()  ???:0
17 0x0000000000101c60 QApplicationPrivate::notify_helper()  ???:0
18 0x00000000006c3eb9 Gui::GUIApplication::notify()  ???:0
19 0x0000000000168118 QCoreApplication::notifyInternal2()  ???:0
20 0x000000000014c2de QWidgetPrivate::sendPaintEvent()  ???:0
21 0x00000000000099a3 QOpenGLWidget::event()  ???:0
22 0x0000000000101c70 QApplicationPrivate::notify_helper()  ???:0
23 0x00000000006c3eb9 Gui::GUIApplication::notify()  ???:0
24 0x0000000000168118 QCoreApplication::notifyInternal2()  ???:0
25 0x0000000000157c4d QWidgetPrivate::show_helper()  ???:0
26 0x0000000000158093 QWidgetPrivate::setVisible()  ???:0
27 0x00000000001576c2 QWidgetPrivate::showChildren()  ???:0
28 0x0000000000157ad4 QWidgetPrivate::show_helper()  ???:0
29 0x0000000000157955 QWidgetPrivate::showChildren()  ???:0
30 0x0000000000157ad4 QWidgetPrivate::show_helper()  ???:0
31 0x0000000000158093 QWidgetPrivate::setVisible()  ???:0
32 0x00000000001576c2 QWidgetPrivate::showChildren()  ???:0
33 0x0000000000157ad4 QWidgetPrivate::show_helper()  ???:0
34 0x0000000000157955 QWidgetPrivate::showChildren()  ???:0
35 0x0000000000157ad4 QWidgetPrivate::show_helper()  ???:0
36 0x0000000000158093 QWidgetPrivate::setVisible()  ???:0
37 0x0000000000300a11 QMdiSubWindow::eventFilter()  ???:0
38 0x00000000001675dc QCoreApplicationPrivate::sendThroughObjectEventFilters()  ???:0
39 0x0000000000101c60 QApplicationPrivate::notify_helper()  ???:0
40 0x00000000006c3eb9 Gui::GUIApplication::notify()  ???:0
41 0x0000000000168118 QCoreApplication::notifyInternal2()  ???:0
42 0x000000000015815a QWidgetPrivate::setVisible()  ???:0
43 0x000000000064db9c Gui::Document::createView()  ???:0
44 0x00000000005c22c8 Gui::Application::slotNewDocument()  ???:0
45 0x00000000002eb1aa 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()()  ???:0
46 0x000000000057a9a4 App::Application::newDocument()  ???:0
47 0x000000000059e25c App::Application::sNewDocument()  ???:0
48 0x0000000000194a8c PyObject_GenericGetAttr()  ???:0
49 0x0000000000160e3b _PyObject_MakeTpCall()  ???:0
50 0x00000000001752be _PyEval_EvalFrameDefault()  ???:0
51 0x000000000024c8b9 PyEval_EvalCode()  ???:0
52 0x000000000028af5c _Py_write()  ???:0
53 0x000000000028801b PyUnicode_GetLength()  ???:0
54 0x000000000028335e PyUnicode_AsUTF8String()  ???:0
55 0x0000000000160290 Base::InterpreterSingleton::runString[abi:cxx11]()  ???:0
56 0x000000000073063c Gui::Command::_runCommand()  ???:0
57 0x00000000005b7a28 Gui::Application::open()  ???:0
58 0x00000000006d8439 Gui::ModuleIO::openFile()  ???:0
59 0x00000000000431c8 StartGui::StartView::fileCardSelected()  ???:0
=================================
Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3def0) [0x7fd90f04def0]
#1  /usr/lib/libX11.so.6(XDefaultScreenOfDisplay+0x4) [0x7fd90dee6744]
#2  /usr/lib/libCoin.so.80(+0x461949) [0x7fd90ea61949]
#3  /usr/lib/libCoin.so.80(glxglue_init+0x43) [0x7fd90ea627d3]
#4  /usr/lib/libCoin.so.80(cc_glglue_instance+0x826) [0x7fd90ea635f6]
#5  0x7fd90e8b800d in SoGLRenderActionP::isDirectRendering(SoState const*) const from /usr/lib/libCoin.so.80+0x4d
#6  0x7fd90e8bd2c5 in SoGLRenderActionP::render(SoNode*) from /usr/lib/libCoin.so.80+0xc5
#7  0x7fd90e8bcedc in SoAction::apply(SoNode*) from /usr/lib/libCoin.so.80+0xcc
#8  0x7fd912cbe33e in Gui::SoBoxSelectionRenderAction::apply(SoNode*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x2e
#9  0x7fd912ddf87d in Gui::View3DInventorViewer::renderScene() from /usr/lib/freecad/lib/libFreeCADGui.so+0x17d
#10  0x7fd912d8c655 in SIM::Coin3D::Quarter::QuarterWidget::paintEvent(QPaintEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x1d5
#11  0x7fd912d9b6fa in SIM::Coin3D::Quarter::SoQTQuarterAdaptor::paintEvent(QPaintEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x4a
#12  0x7fd91095b3f3 in QWidget::event(QEvent*) from /usr/lib/libQt6Widgets.so.6+0xab3
#13  0x7fd9109c7a76 in QFrame::event(QEvent*) from /usr/lib/libQt6Widgets.so.6+0x36
#14  0x7fd90f7675dc in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0xec
#15  0x7fd910901c60 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0x80
#16  0x7fd9128c3eb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0xd9
#17  0x7fd90f768118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0x158
#18  0x7fd91094c2de in QWidgetPrivate::sendPaintEvent(QRegion const&) from /usr/lib/libQt6Widgets.so.6+0x5e
#19  0x7fd9148849a3 in QOpenGLWidget::event(QEvent*) from /usr/lib/libQt6OpenGLWidgets.so.6+0x1a3
#20  0x7fd910901c70 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0x90
#21  0x7fd9128c3eb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0xd9
#22  0x7fd90f768118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0x158
#23  0x7fd910957c4d in QWidgetPrivate::show_helper() from /usr/lib/libQt6Widgets.so.6+0x1cd
#24  0x7fd910958093 in QWidgetPrivate::setVisible(bool) from /usr/lib/libQt6Widgets.so.6+0x1c3
#25  0x7fd9109576c2 in QWidgetPrivate::showChildren(bool) from /usr/lib/libQt6Widgets.so.6+0x102
#26  0x7fd910957ad4 in QWidgetPrivate::show_helper() from /usr/lib/libQt6Widgets.so.6+0x54
#27  0x7fd910957955 in QWidgetPrivate::showChildren(bool) from /usr/lib/libQt6Widgets.so.6+0x395
#28  0x7fd910957ad4 in QWidgetPrivate::show_helper() from /usr/lib/libQt6Widgets.so.6+0x54
#29  0x7fd910958093 in QWidgetPrivate::setVisible(bool) from /usr/lib/libQt6Widgets.so.6+0x1c3
#30  0x7fd9109576c2 in QWidgetPrivate::showChildren(bool) from /usr/lib/libQt6Widgets.so.6+0x102
#31  0x7fd910957ad4 in QWidgetPrivate::show_helper() from /usr/lib/libQt6Widgets.so.6+0x54
#32  0x7fd910957955 in QWidgetPrivate::showChildren(bool) from /usr/lib/libQt6Widgets.so.6+0x395
#33  0x7fd910957ad4 in QWidgetPrivate::show_helper() from /usr/lib/libQt6Widgets.so.6+0x54
#34  0x7fd910958093 in QWidgetPrivate::setVisible(bool) from /usr/lib/libQt6Widgets.so.6+0x1c3
#35  0x7fd910b00a11 in QMdiSubWindow::eventFilter(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0x271
#36  0x7fd90f7675dc in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0xec
#37  0x7fd910901c60 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0x80
#38  0x7fd9128c3eb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0xd9
#39  0x7fd90f768118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0x158
#40  0x7fd91095815a in QWidgetPrivate::setVisible(bool) from /usr/lib/libQt6Widgets.so.6+0x28a
#41  0x7fd91284db9c in Gui::Document::createView(Base::Type const&) from /usr/lib/freecad/lib/libFreeCADGui.so+0x55c
#42  0x7fd9127c22c8 in Gui::Application::slotNewDocument(App::Document const&, bool) from /usr/lib/freecad/lib/libFreeCADGui.so+0xd08
#43  0x7fd911ceb1aa 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 /usr/lib/freecad/lib/libFreeCADApp.so+0x2ba
#44  0x7fd911f7a9a4 in App::Application::newDocument(char const*, char const*, bool, bool) from /usr/lib/freecad/lib/libFreeCADApp.so+0x1924
#45  0x7fd911f9e25c in App::Application::sNewDocument(_object*, _object*, _object*) from /usr/lib/freecad/lib/libFreeCADApp.so+0xec
#46  /usr/lib/libpython3.13.so.1.0(+0x194a8c) [0x7fd911194a8c]
#47  /usr/lib/libpython3.13.so.1.0(_PyObject_MakeTpCall+0x2bb) [0x7fd911160e3b]
#48  /usr/lib/libpython3.13.so.1.0(_PyEval_EvalFrameDefault+0x408e) [0x7fd9111752be]
#49  /usr/lib/libpython3.13.so.1.0(PyEval_EvalCode+0xa9) [0x7fd91124c8b9]
#50  /usr/lib/libpython3.13.so.1.0(+0x28af5c) [0x7fd91128af5c]
#51  /usr/lib/libpython3.13.so.1.0(+0x28801b) [0x7fd91128801b]
#52  /usr/lib/libpython3.13.so.1.0(+0x28335e) [0x7fd91128335e]
#53  0x7fd911760290 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib/freecad/lib/libFreeCADBase.so+0x70
#54  0x7fd91293063c in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x9c
#55  0x7fd9127b7a28 in Gui::Application::open(char const*, char const*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x228
#56  0x7fd9128d8439 in Gui::ModuleIO::openFile(QString const&) from /usr/lib/freecad/lib/libFreeCADGui.so+0xe9
#57  0x7fd86eaf21c8 in StartGui::StartView::fileCardSelected(QModelIndex const&) from /usr/lib/freecad/lib/StartGui.so+0x68
#58  /usr/lib/libQt6Core.so.6(+0x1d37ef) [0x7fd90f7d37ef]
#59  0x7fd910c2ed42 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) from /usr/lib/libQt6Widgets.so.6+0x542
#60  0x7fd910c797e8 in QListView::mouseReleaseEvent(QMouseEvent*) from /usr/lib/libQt6Widgets.so.6+0x28
#61  0x7fd91095b6c7 in QWidget::event(QEvent*) from /usr/lib/libQt6Widgets.so.6+0xd87
#62  0x7fd9109c7a76 in QFrame::event(QEvent*) from /usr/lib/libQt6Widgets.so.6+0x36
#63  0x7fd90f7675dc in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0xec
#64  0x7fd910901c60 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0x80
#65  0x7fd910905c39 in QApplication::notify(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0xff9
#66  0x7fd9128c3eb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0xd9
#67  0x7fd90f768118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0x158
#68  0x7fd9108f7398 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /usr/lib/libQt6Widgets.so.6+0x5b8
#69  /usr/lib/libQt6Widgets.so.6(+0x176f13) [0x7fd910976f13]
#70  /usr/lib/libQt6Widgets.so.6(+0x1781d8) [0x7fd9109781d8]
#71  0x7fd910901c70 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0x90
#72  0x7fd9128c3eb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0xd9
#73  0x7fd90f768118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0x158
#74  0x7fd90ffa1217 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /usr/lib/libQt6Gui.so.6+0x3c7
#75  0x7fd9100248f4 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt6Gui.so.6+0x2f4
#76  0x7fd910013b27 in QWindowSystemInterface::flushWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt6Gui.so.6+0x197
#77  0x7fd90f7c0e34 in QObject::event(QEvent*) from /usr/lib/libQt6Core.so.6+0x144
#78  0x7fd910901c70 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt6Widgets.so.6+0x90
#79  0x7fd9128c3eb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0xd9
#80  0x7fd90f768118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt6Core.so.6+0x158
#81  0x7fd90f7684fb in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /usr/lib/libQt6Core.so.6+0x38b
#82  /usr/lib/libQt6Core.so.6(+0x43fcf8) [0x7fd90fa3fcf8]
#83  /usr/lib/libglib-2.0.so.0(+0x5e87d) [0x7fd90ddc787d]
#84  /usr/lib/libglib-2.0.so.0(+0x5fcd7) [0x7fd90ddc8cd7]
#85  /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x35) [0x7fd90ddc8ee5]
#86  0x7fd90fa3c5e2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt6Core.so.6+0x72
#87  0x7fd90f7744b6 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt6Core.so.6+0x206
#88  0x7fd90f76c7c1 in QCoreApplication::exec() from /usr/lib/libQt6Core.so.6+0xb1
#89  0x7fd9127c7bf5 in Gui::Application::runApplication() from /usr/lib/freecad/lib/libFreeCADGui.so+0x9b5
#90  freecad(+0x8276) [0x561e7a271276]
#91  /usr/lib/libc.so.6(+0x276b5) [0x7fd90f0376b5]
#92  /usr/lib/libc.so.6(__libc_start_main+0x89) [0x7fd90f037769]
#93  freecad(+0x8625) [0x561e7a271625]

Any idea what could be wrong?

Last edited by OpusOne (2025-07-25 21:02:19)

Offline

#2 2025-07-25 19:44:58

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,703

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

 2 0x000000000003def0 __sigaction()  ???:0
 3 0x0000000000027744 XDefaultScreenOfDisplay()  ???:0
 4 0x0000000000461949 cc_glglue_context_destruct()  ???:0
 5 0x00000000004627d3 glxglue_init()  ???:0

Wayland? SimpleDRM?

loginctl session-status
xdpyinfo

and please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Offline

#3 2025-07-25 20:11:44

OpusOne
Member
Registered: 2023-05-31
Posts: 184

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

Yes Wayland. Dual-monitor setup, if that could matter.

xdpyinfo
http://0x0.st/85AV.txt

Xorg.log:
http://0x0.st/85AJ.txt

(I suppose the Xorg log is generated by XWayland in my case?)

Offline

#4 2025-07-25 20:30:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,703

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

I suppose the Xorg log is generated by XWayland in my case?

Yup, but not that one:

[    16.715] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jul 19 04:43:21 2025

Why do you use xwayland itfp?

pacman -Qikk qt6-wayland
qtdiag6

Does freecad work on an X11 session?

Offline

#5 2025-07-25 20:33:46

phelgi
Member
Registered: 2025-07-24
Posts: 5

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

Maybe a downgrade of the recently shipped version of coin helps. I also had problems with it. FreeCAD seems to use quarter as Qt binding, whereas I struggled with soqt.

I have just tried FreeCAD on my laptop (KDE Plasma on Wayland) and it works fine with the previous version, as it looks.

Offline

#6 2025-07-25 20:58:33

OpusOne
Member
Registered: 2023-05-31
Posts: 184

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

phelgi wrote:

Maybe a downgrade of the recently shipped version of coin helps. I also had problems with it. FreeCAD seems to use quarter as Qt binding, whereas I struggled with soqt.

I have just tried FreeCAD on my laptop (KDE Plasma on Wayland) and it works fine with the previous version, as it looks.

Well spotted! coin was updated recently to coin 4.0.4-1.

I reverted back to coin-4.0.3-1 and FreeCAD doesn't crash anymore.

(I'll mark this 'solved', but there's definitely an unsolved problem with coin-4.0.4-1)

Last edited by OpusOne (2025-07-25 21:01:56)

Offline

#7 2025-07-25 21:20:39

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,703

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

https://github.com/coin3d/coin/issues but to re-interate: why is this on xwayland itfp? And does it work on X11?
https://wiki.archlinux.org/title/Waylan … plications - does freecad w/ the previous coin release run on Xwayland as well?

Offline

#8 2025-07-27 16:33:46

OpusOne
Member
Registered: 2023-05-31
Posts: 184

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

seth wrote:

https://github.com/coin3d/coin/issues but to re-interate: why is this on xwayland itfp? And does it work on X11?
https://wiki.archlinux.org/title/Waylan … plications - does freecad w/ the previous coin release run on Xwayland as well?

Regarding xwayland, not sure we understood each other. I mentioned it because you asked for a Xorg log, but that's it. I'm on Wayland only - just wasn't sure if FreeCAD supported Wayland natively or via xwayland.

Yes, qt6-wayland is installed on my system. No problem.

Yes, FreeCAD does work fine with the previous coin release. On Wayland. Again, the xwayland thing was probably just a misunderstanding.

I tried on a different machine (laptop, with Plasma/Wayland too), completely different hardware, but same version of all packages.
Got the exact same issue: FreeCAD crash with coin 4.0.4, works fine with coin 4.0.3.
Then switched to a X11 session (I don't have any X11 session set up on my other machine, but on this laptop, I do) and FreeCAD works with coin 4.0.4.

So, it seems like it's a issue specific to coin 4.0.4 on Wayland.

Last edited by OpusOne (2025-07-27 16:35:53)

Offline

#9 2025-07-27 21:53:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,703

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

Your backtrace goes through

3 0x0000000000027744 XDefaultScreenOfDisplay()  ???:0

what doesn't make much sense - except if that FreeCAD version ran on xwayland.

Offline

#10 2025-07-28 00:04:06

OpusOne
Member
Registered: 2023-05-31
Posts: 184

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

I have no clue. I didn't do anything specific. Installed the freecad package, didn't tweak it further.

$ pacman -Qikk qt6-wayland
Name            : qt6-wayland
Version         : 6.9.1-1
Description     : Provides APIs for Wayland
Architecture    : x86_64
URL             : https://www.qt.io
Licenses        : GPL-3.0-only  LGPL-3.0-only  LicenseRef-Qt-Commercial  Qt-GPL-exception-1.0
Groups          : qt6
Provides        : None
Depends On      : gcc-libs  glibc  libglvnd  libxkbcommon  qt6-base  qt6-declarative  qt6-svg  wayland
Optional Deps   : None
Required By     : gwenview  kguiaddons  krdc  kscreen  kwayland  kwindowsystem  layer-shell-qt  libkscreen  libplasma  plasma-desktop  plasma-integration
                  plasma-workspace  powerdevil  qcad  spectacle  xdg-desktop-portal-kde
Optional For    : kidletime  qt6-base  qtractor
Conflicts With  : None
Replaces        : None
Installed Size  : 8.13 MiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Tue Jun 3 09:52:21 2025
Install Date    : Wed Jun 4 21:18:35 2025
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

qt6-wayland: 913 total files, 0 altered files

Offline

#11 2025-07-28 06:46:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,703

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

seth wrote:

· why is this on xwayland itfp?
· And does it work on X11? "Yes"
· does freecad w/ the previous coin release run on Xwayland as well?

Checking https://wiki.archlinux.org/title/Waylan … plications on the running FreeCAD w/ the old coin version will answer both open questions.

qtdiag6

will expose problems w/ the Qt configuration (you might be using X11/xwayland via an environment variable, despite the intact qt6-wayland)

The current Xorg log (check the locations in https://wiki.archlinux.org/title/Xorg#General again, pay attention to the timestamps) might reveal X11 issues inhibiting xwayland (though since freecad w/ the updated coin runs fine in X11, this is actually less likely a problem)

Offline

#12 2025-07-29 12:58:50

OpusOne
Member
Registered: 2023-05-31
Posts: 184

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

I see zero problem with my Qt config and all Qt6 apps I have work fine so far.

FYI, the coin package has been downgraded yesterday to 4.0.3 by its maintainer: https://gitlab.archlinux.org/archlinux/ … /-/commits

So there must be a number of other people that have reported issues with coin-4.0.4. Unfortunately, I didn't see the rationale for the downgrade, but would be interesting to know exactly why the maintainer decided to downgrade it.

Offline

#13 2025-07-29 13:58:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,703

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

I see zero problem with my Qt config and all Qt6 apps I have work fine so far.

That's really not what I had asked…
https://gitlab.archlinux.org/archlinux/ … /issues/23
https://github.com/FreeCAD/FreeCAD/issues/22695

They're all on wayland and all they backtraces go through X11 - I'll assume that not everybody has botched their Qt/wayland installation but would advise to check whether freecad + coin 4.0.3 is running on xwayland.

Offline

#14 2025-08-04 14:30:52

OpusOne
Member
Registered: 2023-05-31
Posts: 184

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

I ran xlsclients just to see, but sure enough FreeCAD is not listed when it runs. (xlsclients does otherwise properly list other apps that run on XWayland).

So, that's puzzling. Now, that's with coin 4.0.3. I can't test with 4.0.4 again (at least without going through hoops I don't want to get into) now that it has been downgraded to 4.0.3 in the official Arch repo. So in any case, is there a specific issue with the way FreeCAD itself uses Qt, or is it possible that coin 4.0.4 inadvertently forces FreeCAD to run on XWayland? That would be something to investigate.

One thing I noticed, although possibly a red herring, is that while FreeCAD appears to be using Qt6, its file chooser dialog looks nothing like the standard Qt6 file chooser. It looks like a pretty old Qt file chooser. That may just be that they implemented a custom file chooser, or that they are passing an odd option to it. Not sure. Anyway, that was the case for a long time now and not related to the coin version whatsoever.

Another thing I noticed is that FreeCAD generates a lot of Qt message while running, pretty much all identical to this:

QObject::disconnect: wildcard call disconnects from destroyed signal of QObject::140070331314432

I don't know Qt enough to know what triggers that, and that's possibly benign and totally unrelated.

Offline

#15 2025-08-04 20:51:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,703

Re: [SOLVED] FreeCAD 1.0.1 crashes when opening any file

"Bad style", but it's not necessarily fatal. See eg. https://gitlab.com/wireshark/wireshark/ … ests/20330
FreeCAD seems to do that, https://bugzilla.suse.com/show_bug.cgi?id=1246903

its file chooser dialog looks nothing like the standard Qt6 file chooser

I assume that's w/ either coin version? Do you have a screenshot?
Could be caused by xdg-desktop-portal invocation.

On topic:
https://github.com/coin3d/coin/issues/5 … 3042499779 links to https://github.com/coin3d/coin/pull/550 … 3043447092 so it *seems* coin tries to work around EGL issues by forcing xwayland (explaining the appearance in the backtrace)

Offline

Board footer

Powered by FluxBB