linux segfault crash AMD

Having trouble installing or compiling FreeCAD? Get help here.
zlice0
Posts: 4
Joined: Mon Apr 26, 2021 9:26 pm

linux segfault crash AMD

Postby zlice0 » Tue May 04, 2021 1:30 am

Trying to run FreeCAD on void linux and immediately get a segfault crash.

It runs on others' systems and my other machine.

The only main difference I can tell between my working and non-working machine is Intel vs AMD. I saw others have AMD specific issues but not a full of crash.

Interestingly, running when "all tests" the GUI does come up to do the tests. (See attached - sluggish, idk if that's normal)

Have tried a few of the "Known OS specific issues" fixes but none seem relevant.

Is there any way to disable the splash screen? I was going to try that but didn't find a way.

Any ideas?

Code: Select all

$ FreeCAD

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3d000) [0x7f36c20bf000]
#1  0x7f36c2d749cf in QBackingStore::beginPaint(QRegion const&) from /usr/lib/libQt5Gui.so.5+0xcf
#2  /usr/lib/libQt5Widgets.so.5(+0x1736c2) [0x7f36c32b06c2]
#3  0x7f36c32e0767 in QWidget::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x8f7
#4  0x7f36c32a017f in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x7f
#5  0x7f36c47d82e8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib64/libFreeCADGui.so+0x88
#6  0x7f36c2779f3a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x12a
#7  /usr/lib/libQt5Widgets.so.5(+0x1746f5) [0x7f36c32b16f5]
#8  /usr/lib/libQt5Widgets.so.5(+0x1770f0) [0x7f36c32b40f0]
#9  0x7f36c32c8d42 in QWidget::repaint(QRect const&) from /usr/lib/libQt5Widgets.so.5+0x82
#10  0x7f36c32c8daa in QWidget::repaint() from /usr/lib/libQt5Widgets.so.5+0x3a
#11  0x7f36c34428a9 in QSplashScreen::repaint() from /usr/lib/libQt5Widgets.so.5+0x9
#12  0x7f36c4b659a5 in Gui::SplashObserver::Log(char const*) from /usr/lib/freecad/lib64/libFreeCADGui.so+0x115
#13  0x7f36c3c36a3e in Base::ConsoleSingleton::NotifyLog(char const*) from /usr/lib/freecad/lib64/libFreeCADBase.so+0xae
#14  0x7f36c3c36c9b in Base::ConsoleSingleton::Log(char const*, ...) from /usr/lib/freecad/lib64/libFreeCADBase.so+0x20b
#15  0x7f36c4740bc0 in messageHandler(QtMsgType, QMessageLogContext const&, QString const&) from /usr/lib/freecad/lib64/libFreeCADGui.so+0x50
#16  /usr/lib/libQt5Core.so.5(+0xc4b38) [0x7f36c258fb38]
#17  /usr/lib/libQt5Core.so.5(+0xc4c59) [0x7f36c258fc59]
#18  0x7f36c255c516 in QMessageLogger::warning(char const*, ...) const from /usr/lib/libQt5Core.so.5+0xb6
#19  /usr/lib/qt5/plugins/platforms/../../../libQt5XcbQpa.so.5(+0x57680) [0x7f36bd050680]
#20  /usr/lib/qt5/plugins/platforms/../../../libQt5XcbQpa.so.5(+0x5865e) [0x7f36bd05165e]
#21  /usr/lib/qt5/plugins/platforms/../../../libQt5XcbQpa.so.5(+0x5a2fb) [0x7f36bd0532fb]
#22  0x7f36c2d7440f in QBackingStore::resize(QSize const&) from /usr/lib/libQt5Gui.so.5+0xaf
#23  /usr/lib/libQt5Widgets.so.5(+0x172c61) [0x7f36c32afc61]
#24  /usr/lib/libQt5Widgets.so.5(+0x1740cb) [0x7f36c32b10cb]
#25  /usr/lib/libQt5Widgets.so.5(+0x1be66f) [0x7f36c32fb66f]
#26  0x7f36c32a017f in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x7f
#27  0x7f36c47d82e8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib64/libFreeCADGui.so+0x88
#28  0x7f36c2779f3a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x12a
#29  0x7f36c2ba79fd in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) from /usr/lib/libQt5Gui.so.5+0x8d
#30  0x7f36c2b7c6bc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Gui.so.5+0xac
#31  /usr/lib/qt5/plugins/platforms/../../../libQt5XcbQpa.so.5(+0x633fa) [0x7f36bd05c3fa]
#32  /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x25b) [0x7f36c010e6fb]
#33  /usr/lib/libglib-2.0.so.0(+0x539a8) [0x7f36c010e9a8]
#34  /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x2f) [0x7f36c010ea5f]
#35  0x7f36c27d1390 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0xd0
#36  0x7f36c4b659a5 in Gui::SplashObserver::Log(char const*) from /usr/lib/freecad/lib64/libFreeCADGui.so+0x115
#37  0x7f36c3c36a3e in Base::ConsoleSingleton::NotifyLog(char const*) from /usr/lib/freecad/lib64/libFreeCADBase.so+0xae
#38  0x7f36c3c36c9b in Base::ConsoleSingleton::Log(char const*, ...) from /usr/lib/freecad/lib64/libFreeCADBase.so+0x20b
#39  0x7f36c3c373eb in Base::ConsoleSingleton::sPyLog(_object*, _object*) from /usr/lib/freecad/lib64/libFreeCADBase.so+0x6b
#40  /usr/lib/libpython3.9.so.1.0(+0xe3c54) [0x7f36c38aac54]
#41  /usr/lib/libpython3.9.so.1.0(_PyObject_MakeTpCall+0x9d) [0x7f36c386f67d]
#42  /usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x67b6) [0x7f36c3834116]
#43  /usr/lib/libpython3.9.so.1.0(+0x16d42d) [0x7f36c393442d]
#44  /usr/lib/libpython3.9.so.1.0(_PyEval_EvalCodeWithName+0x4e) [0x7f36c393477e]
#45  /usr/lib/libpython3.9.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f36c39347ce]
#46  /usr/lib/libpython3.9.so.1.0(PyEval_EvalCode+0x1b) [0x7f36c39347fb]
#47  /usr/lib/libpython3.9.so.1.0(+0x1a992a) [0x7f36c397092a]
#48  /usr/lib/libpython3.9.so.1.0(+0x1a9b37) [0x7f36c3970b37]
#49  /usr/lib/libpython3.9.so.1.0(PyRun_StringFlags+0x93) [0x7f36c3972953]
#50  0x7f36c3c49d96 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib/freecad/lib64/libFreeCADBase.so+0x66
#51  0x7f36c4742fcf in Gui::Application::runInitGuiScript() from /usr/lib/freecad/lib64/libFreeCADGui.so+0x3f
#52  0x7f36c474d82e in Gui::Application::runApplication() from /usr/lib/freecad/lib64/libFreeCADGui.so+0x122e
#53  FreeCAD(+0x4954) [0x560c5376b954]
#54  /usr/lib/libc.so.6(__libc_start_main+0xea) [0x7f36c20a9e0a]
#55  FreeCAD(+0x4c4a) [0x560c5376bc4a]

Attachments
freecad_tests.txt
(168.62 KiB) Downloaded 1 time
chrisb
Posts: 34282
Joined: Tue Mar 17, 2015 9:14 am

Re: linux segfault crash AMD

Postby chrisb » Tue May 04, 2021 6:26 am

I guess you have already tried to reset the config directory.
zlice0 wrote:
Tue May 04, 2021 1:30 am
Is there any way to disable the splash screen? I was going to try that but didn't find a way.
There is a setting in General>Preferences. Use one of your working machines, take a plain vanilla config and change it. Then transfer the config file to the linux machine.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
zlice0
Posts: 4
Joined: Mon Apr 26, 2021 9:26 pm

Re: linux segfault crash AMD

Postby zlice0 » Tue May 04, 2021 12:05 pm

Wow, that did it.

100% the splashscreen. Not sure what's going on there.

added showsplasher = 0 and in my broken config and it runs

Code: Select all

  <FCParamGroup Name="General">
    <FCBool Name="ShowSplasher" Value="0"/>

Thanks!
chrisb
Posts: 34282
Joined: Tue Mar 17, 2015 9:14 am

Re: linux segfault crash AMD

Postby chrisb » Tue May 04, 2021 4:20 pm

zlice0 wrote:
Tue May 04, 2021 12:05 pm
Wow, that did it.
You're welcome! I am myself pleasantly surprised, because I couldn't really test it.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.