Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FreeCAD 0.20.2 seg. fault at startup / QT5 issue?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
DZoom
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2010
Posts: 79

PostPosted: Thu Apr 13, 2023 7:17 am    Post subject: FreeCAD 0.20.2 seg. fault at startup / QT5 issue? Reply with quote

Hi there,

My system is up todate and consistent (nothing to depclean, revdep-rebuild is happy) and I emerged freecad 0.20.2 successfully.
But when starting it from console, I receive a seg. fault:

Code:
$ freecad
FreeCAD 0.20.2, Libs: 0.20.2RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   #### 
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Program received signal SIGSEGV, Segmentation fault.
#0  /lib64/libc.so.6(+0x37fb0) [0x7fc62e3c4fb0]
#1  0x7fc62f054b60 in QBackingStore::beginPaint(QRegion const&) from /usr/lib64/libQt5Gui.so.5+0xd0
#2  /usr/lib64/libQt5Widgets.so.5(+0x176781) [0x7fc62f571781]
#3  0x7fc62f5a7178 in QWidget::event(QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x4d8
#4  0x7fc62f55f38e in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x7e
#5  0x7fc630ceeca8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x88
#6  0x7fc62ea58498 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib64/libQt5Core.so.5+0x138
#7  /usr/lib64/libQt5Widgets.so.5(+0x177e85) [0x7fc62f572e85]
#8  /usr/lib64/libQt5Widgets.so.5(+0x17a703) [0x7fc62f575703]
#9  0x7fc62f58f381 in QWidget::repaint(QRect const&) from /usr/lib64/libQt5Widgets.so.5+0x81
#10  0x7fc62f58f3ea in QWidget::repaint() from /usr/lib64/libQt5Widgets.so.5+0x3a
#11  0x7fc62f737d29 in QSplashScreen::repaint() from /usr/lib64/libQt5Widgets.so.5+0x9
#12  0x7fc631163bbb in Gui::SplashObserver::SendLog(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Base::LogStyle) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x16b
#13  0x7fc62ffd0edd in Base::ConsoleSingleton::NotifyLog(char const*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0xbd
#14  0x7fc62ffd11d3 in Base::ConsoleSingleton::Log(char const*, ...) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x233
#15  0x7fc630c2e841 in messageHandler(QtMsgType, QMessageLogContext const&, QString const&) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x51
#16  /usr/lib64/libQt5Core.so.5(+0xc7320) [0x7fc62e864320]
#17  /usr/lib64/libQt5Core.so.5(+0xc7438) [0x7fc62e864438]
#18  0x7fc62e82d703 in QMessageLogger::warning(char const*, ...) const from /usr/lib64/libQt5Core.so.5+0xb7
#19  /usr/lib64/libQt5XcbQpa.so.5(+0x5ccab) [0x7fc6289ebcab]
#20  /usr/lib64/libQt5XcbQpa.so.5(+0x5dd32) [0x7fc6289ecd32]
#21  /usr/lib64/libQt5XcbQpa.so.5(+0x6022a) [0x7fc6289ef22a]
#22  0x7fc62f054667 in QBackingStore::resize(QSize const&) from /usr/lib64/libQt5Gui.so.5+0xa7
#23  /usr/lib64/libQt5Widgets.so.5(+0x175a47) [0x7fc62f570a47]
#24  /usr/lib64/libQt5Widgets.so.5(+0x17760a) [0x7fc62f57260a]
#25  /usr/lib64/libQt5Widgets.so.5(+0x1cc0ba) [0x7fc62f5c70ba]
#26  0x7fc62f55f38e in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x7e
#27  0x7fc630ceeca8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x88
#28  0x7fc62ea58498 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib64/libQt5Core.so.5+0x138
#29  0x7fc62ee7a45d in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) from /usr/lib64/libQt5Gui.so.5+0x8d
#30  0x7fc62ee4cf4b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib64/libQt5Gui.so.5+0xab
#31  /usr/lib64/libQt5XcbQpa.so.5(+0x6ca3a) [0x7fc6289fba3a]
#32  /usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x298) [0x7fc62c8261d8]
#33  /usr/lib64/libglib-2.0.so.0(+0x5b468) [0x7fc62c826468]
#34  /usr/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fc62c8264fc]
#35  0x7fc62eab3d96 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib64/libQt5Core.so.5+0x66
#36  0x7fc631163bbb in Gui::SplashObserver::SendLog(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Base::LogStyle) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x16b
#37  0x7fc62ffd0edd in Base::ConsoleSingleton::NotifyLog(char const*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0xbd
#38  0x7fc62ffd11d3 in Base::ConsoleSingleton::Log(char const*, ...) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x233
#39  0x7fc62ffd184a in Base::ConsoleSingleton::sPyLog(_object*, _object*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x6a
#40  /usr/lib64/libpython3.10.so.1.0(+0x111ab3) [0x7fc62fc1dab3]
#41  /usr/lib64/libpython3.10.so.1.0(_PyObject_MakeTpCall+0x90) [0x7fc62fbd32c0]
#42  /usr/lib64/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x85fd) [0x7fc62fb79b6d]
#43  /usr/lib64/libpython3.10.so.1.0(PyEval_EvalCode+0xd2) [0x7fc62fccf352]
#44  /usr/lib64/libpython3.10.so.1.0(+0x209429) [0x7fc62fd15429]
#45  /usr/lib64/libpython3.10.so.1.0(PyRun_StringFlags+0x75) [0x7fc62fd16e05]
#46  0x7fc62ffec1f8 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x68
#47  0x7fc630c30dff in Gui::Application::runInitGuiScript() from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x3f
#48  0x7fc630c3a4fe in Gui::Application::runApplication() from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x10de
#49  freecad(+0x5de5) [0x55d70928ede5]
#50  /lib64/libc.so.6(+0x232ca) [0x7fc62e3b02ca]
#51  /lib64/libc.so.6(__libc_start_main+0x85) [0x7fc62e3b0385]
#52  freecad(+0x6121) [0x55d70928f121]


I tried with the downloadable appimage from freecad github (https://github.com/FreeCAD/FreeCAD/releases#installation_instructions), but that gives quite a similar stack trace:
Code:
$ ./FreeCAD_0.20.2-2022-12-27-conda-Linux-x86_64-py310.AppImage
FreeCAD 0.20.2, Libs: 0.20.2R29603 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   #### 
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Program received signal SIGSEGV, Segmentation fault.
#0  /lib64/libc.so.6(+0x37fb0) [0x7feee72fffb0]
#1  0x7feee7cfaebe in QBackingStore::beginPaint(QRegion const&) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Gui.so.5+0xb2
#2  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5(+0x1742ec) [0x7feee80e32ec]
#3  0x7feee8103c1d in QWidget::event(QEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5+0x905
#4  0x7feee80d90f7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5+0xd9
#5  0x7feee9423da9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADGui.so+0x89
#6  0x7feee7849608 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Core.so.5+0x8e
#7  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5(+0x174e59) [0x7feee80e3e59]
#8  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5(+0x177039) [0x7feee80e6039]
#9  0x7feee80f31f0 in QWidget::repaint(QRect const&) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5+0x70
#10  0x7feee80f321f in QWidget::repaint() from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5+0x27
#11  0x7feee81e6808 in QSplashScreen::repaint() from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5+0x6
#12  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADGui.so(+0x8f3f34) [0x7feee988af34]
#13  0x7feee857ab25 in Base::ConsoleSingleton::NotifyLog(char const*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADBase.so+0xc5
#14  0x7feee857ae24 in Base::ConsoleSingleton::Log(char const*, ...) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADBase.so+0x234
#15  0x7feee93859a2 in messageHandler(QtMsgType, QMessageLogContext const&, QString const&) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADGui.so+0x52
#16  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Core.so.5(+0xa59d7) [0x7feee772c9d7]
#17  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Core.so.5(+0xa5a7c) [0x7feee772ca7c]
#18  0x7feee771f52d in QMessageLogger::warning(char const*, ...) const from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Core.so.5+0xa1
#19  /tmp/.mount_FreeCAI7jYGH/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x4d2f3) [0x7feee25702f3]
#20  /tmp/.mount_FreeCAI7jYGH/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x4da5f) [0x7feee2570a5f]
#21  /tmp/.mount_FreeCAI7jYGH/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x4eea5) [0x7feee2571ea5]
#22  0x7feee7cfaa4f in QBackingStore::resize(QSize const&) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Gui.so.5+0x7f
#23  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5(+0x173bfd) [0x7feee80e2bfd]
#24  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5(+0x1746fa) [0x7feee80e36fa]
#25  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5(+0x1a499f) [0x7feee811399f]
#26  0x7feee80d90f7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Widgets.so.5+0xd9
#27  0x7feee9423da9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADGui.so+0x89
#28  0x7feee7849608 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Core.so.5+0x8e
#29  0x7feee7c12e3d in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Gui.so.5+0xef
#30  0x7feee7bfef29 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Gui.so.5+0x57
#31  /tmp/.mount_FreeCAI7jYGH/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x55294) [0x7feee2578294]
#32  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x25c) [0x7feee3d761bc]
#33  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/./libglib-2.0.so.0(+0x58489) [0x7feee3d76489]
#34  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x31) [0x7feee3d76551]
#35  0x7feee787a3f3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libQt5Core.so.5+0x5b
#36  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADGui.so(+0x8f3f34) [0x7feee988af34]
#37  0x7feee857ab25 in Base::ConsoleSingleton::NotifyLog(char const*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADBase.so+0xc5
#38  0x7feee857ae24 in Base::ConsoleSingleton::Log(char const*, ...) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADBase.so+0x234
#39  0x7feee857b4be in Base::ConsoleSingleton::sPyLog(_object*, _object*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADBase.so+0x6e
#40  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(+0x1480d2) [0x7feee8d2e0d2]
#41  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(_PyObject_MakeTpCall+0x2bb) [0x7feee8d26fdb]
#42  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x4d8a) [0x7feee8d223aa]
#43  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(+0x1ed6a2) [0x7feee8dd36a2]
#44  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(PyEval_EvalCode+0x8c) [0x7feee8dd35ec]
#45  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(+0x21f43d) [0x7feee8e0543d]
#46  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(+0x219e1b) [0x7feee8dffe1b]
#47  /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libpython3.10.so.1.0(PyRun_StringFlags+0x7d) [0x7feee8df809d]
#48  0x7feee8597ccc in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADBase.so+0x6c
#49  0x7feee9388933 in Gui::Application::runInitGuiScript() from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADGui.so+0x43
#50  0x7feee93a7f26 in Gui::Application::runApplication() from /tmp/.mount_FreeCAI7jYGH/usr/bin/../lib/libFreeCADGui.so+0x12d6
#51  /tmp/.mount_FreeCAI7jYGH/usr/bin/freecad(+0x68e5) [0x564bf66c68e5]
#52  /lib64/libc.so.6(+0x232ca) [0x7feee72eb2ca]
#53  /lib64/libc.so.6(__libc_start_main+0x85) [0x7feee72eb385]
#54  /tmp/.mount_FreeCAI7jYGH/usr/bin/freecad(+0x6c29) [0x564bf66c6c29]


From my guess it might be a qt5 problem?
qtchooser gives the following outputs:
Code:
$ qtchooser -list-versions
5
default
qt5-x86_64-pc-linux-gnu
qt5
$ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib64/qt5/bin"
QTLIBDIR="/usr/lib64"

and those directories exist with content. Anything I can try / re-emerge to get freecad running?

Digging deeper I found another maybe unrelated issue or even an issue of its own:

Running the freecad tests, errors regarding numpy turn up. From what I can tell: functions that were deprecated in numpy 1.24 are used, and numpy 1.24 is the most recent / installed version.
The full freecad tests log is here: https://pastebin.com/yiHcSq3K
Back to top
View user's profile Send private message
cyril42e
n00b
n00b


Joined: 10 Oct 2014
Posts: 3

PostPosted: Fri Jun 30, 2023 1:02 am    Post subject: Reply with quote

Hi, I have exactly the same problem of immediate crash, and I think I found a workaround.

By default I have a sligthly different stack, calling Gui::MainWindow::startSplasher instead of Gui::Application::runInitGuiScript :
Code:
$ freecad --verbose
FreeCAD 0.20.2, Libs: 0.20.2RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   #### 
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib64/libc.so.6(+0x385d0) [0x7f14ad3f65d0]
#1  0x7f14adfbb7a2 in QBackingStore::beginPaint(QRegion const&) from /usr/lib64/libQt5Gui.so.5+0xb2
#2  /usr/lib64/libQt5Widgets.so.5(+0x173d6c) [0x7f14ae415d6c]
#3  0x7f14ae447251 in QWidget::event(QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x461
#4  0x7f14ae404fbe in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x7e
#5  0x7f14afc92a28 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x88
#6  0x7f14ada480b8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib64/libQt5Core.so.5+0x118
#7  /usr/lib64/libQt5Widgets.so.5(+0x174eb5) [0x7f14ae416eb5]
#8  /usr/lib64/libQt5Widgets.so.5(+0x1778c3) [0x7f14ae4198c3]
#9  0x7f14ae430af1 in QWidget::repaint(QRect const&) from /usr/lib64/libQt5Widgets.so.5+0x81
#10  0x7f14ae430b5a in QWidget::repaint() from /usr/lib64/libQt5Widgets.so.5+0x3a
#11  0x7f14ae5b48f9 in QSplashScreen::repaint() from /usr/lib64/libQt5Widgets.so.5+0x9
#12  0x7f14b00cd0a4 in Gui::SplashObserver::Log(char const*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x144
#13  0x7f14aefd1990 in Base::ConsoleSingleton::NotifyLog(char const*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0xa0
#14  0x7f14aefd1c23 in Base::ConsoleSingleton::Log(char const*, ...) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x233
#15  0x7f14afbd4e91 in messageHandler(QtMsgType, QMessageLogContext const&, QString const&) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x51
#16  /usr/lib64/libQt5Core.so.5(+0xc30d8) [0x7f14ad8920d8]
#17  /usr/lib64/libQt5Core.so.5(+0xc31e8) [0x7f14ad8921e8]
#18  0x7f14ad8605bd in QMessageLogger::warning(char const*, ...) const from /usr/lib64/libQt5Core.so.5+0xb7
#19  /usr/lib64/libQt5XcbQpa.so.5(+0x599ea) [0x7f14a81149ea]
#20  /usr/lib64/libQt5XcbQpa.so.5(+0x5a9c2) [0x7f14a81159c2]
#21  /usr/lib64/libQt5XcbQpa.so.5(+0x5c7db) [0x7f14a81177db]
#22  0x7f14adfbb555 in QBackingStore::resize(QSize const&) from /usr/lib64/libQt5Gui.so.5+0xa5
#23  /usr/lib64/libQt5Widgets.so.5(+0x1730e9) [0x7f14ae4150e9]
#24  /usr/lib64/libQt5Widgets.so.5(+0x1747aa) [0x7f14ae4167aa]
#25  /usr/lib64/libQt5Widgets.so.5(+0x1c147b) [0x7f14ae46347b]
#26  0x7f14ae404fbe in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x7e
#27  0x7f14afc92a28 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x88
#28  0x7f14ada480b8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib64/libQt5Core.so.5+0x118
#29  0x7f14ade3b2a1 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) from /usr/lib64/libQt5Gui.so.5+0x91
#30  0x7f14ade19a2b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib64/libQt5Gui.so.5+0xab
#31  /usr/lib64/libQt5XcbQpa.so.5(+0x660aa) [0x7f14a81210aa]
#32  /usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x2ac) [0x7f14ab8f026c]
#33  /usr/lib64/libglib-2.0.so.0(+0x5a508) [0x7f14ab8f0508]
#34  /usr/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f14ab8f059c]
#35  0x7f14ada98476 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib64/libQt5Core.so.5+0x66
#36  0x7f14ae443da7 in QWidgetPrivate::show_helper() from /usr/lib64/libQt5Widgets.so.5+0x277
#37  0x7f14ae446b03 in QWidgetPrivate::setVisible(bool) from /usr/lib64/libQt5Widgets.so.5+0x193
#38  0x7f14b00a05ea in Gui::MainWindow::startSplasher() from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x22a
#39  0x7f14afbe1e4d in Gui::Application::runApplication() from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x256d
#40  freecad(+0x5886) [0x56524d1a0886]
#41  /usr/lib64/libc.so.6(+0x238ca) [0x7f14ad3e18ca]
#42  /usr/lib64/libc.so.6(__libc_start_main+0x85) [0x7f14ad3e1985]
#43  freecad(+0x5b41) [0x56524d1a0b41]
zsh: exit 1     freecad --verbose


But if I change the Qt theme I get exactly the same stack (with python 11):
Code:
$ QT_QPA_PLATFORMTHEME= freecad --verbose
FreeCAD 0.20.2, Libs: 0.20.2RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   #### 
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib64/libc.so.6(+0x385d0) [0x7f11261785d0]
#1  0x7f1126d3d7a2 in QBackingStore::beginPaint(QRegion const&) from /usr/lib64/libQt5Gui.so.5+0xb2
#2  /usr/lib64/libQt5Widgets.so.5(+0x173d6c) [0x7f1127197d6c]
#3  0x7f11271c9251 in QWidget::event(QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x461
#4  0x7f1127186fbe in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x7e
#5  0x7f1128a14a28 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x88
#6  0x7f11267ca0b8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib64/libQt5Core.so.5+0x118
#7  /usr/lib64/libQt5Widgets.so.5(+0x174eb5) [0x7f1127198eb5]
#8  /usr/lib64/libQt5Widgets.so.5(+0x1778c3) [0x7f112719b8c3]
#9  0x7f11271b2af1 in QWidget::repaint(QRect const&) from /usr/lib64/libQt5Widgets.so.5+0x81
#10  0x7f11271b2b5a in QWidget::repaint() from /usr/lib64/libQt5Widgets.so.5+0x3a
#11  0x7f11273368f9 in QSplashScreen::repaint() from /usr/lib64/libQt5Widgets.so.5+0x9
#12  0x7f1128e4f0a4 in Gui::SplashObserver::Log(char const*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x144
#13  0x7f1127d53990 in Base::ConsoleSingleton::NotifyLog(char const*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0xa0
#14  0x7f1127d53c23 in Base::ConsoleSingleton::Log(char const*, ...) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x233
#15  0x7f1128956e91 in messageHandler(QtMsgType, QMessageLogContext const&, QString const&) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x51
#16  /usr/lib64/libQt5Core.so.5(+0xc30d8) [0x7f11266140d8]
#17  /usr/lib64/libQt5Core.so.5(+0xc31e8) [0x7f11266141e8]
#18  0x7f11265e25bd in QMessageLogger::warning(char const*, ...) const from /usr/lib64/libQt5Core.so.5+0xb7
#19  /usr/lib64/libQt5XcbQpa.so.5(+0x599ea) [0x7f1120e969ea]
#20  /usr/lib64/libQt5XcbQpa.so.5(+0x5a9c2) [0x7f1120e979c2]
#21  /usr/lib64/libQt5XcbQpa.so.5(+0x5c7db) [0x7f1120e997db]
#22  0x7f1126d3d555 in QBackingStore::resize(QSize const&) from /usr/lib64/libQt5Gui.so.5+0xa5
#23  /usr/lib64/libQt5Widgets.so.5(+0x1730e9) [0x7f11271970e9]
#24  /usr/lib64/libQt5Widgets.so.5(+0x1747aa) [0x7f11271987aa]
#25  /usr/lib64/libQt5Widgets.so.5(+0x1c147b) [0x7f11271e547b]
#26  0x7f1127186fbe in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib64/libQt5Widgets.so.5+0x7e
#27  0x7f1128a14a28 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x88
#28  0x7f11267ca0b8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib64/libQt5Core.so.5+0x118
#29  0x7f1126bbd2a1 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) from /usr/lib64/libQt5Gui.so.5+0x91
#30  0x7f1126b9ba2b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib64/libQt5Gui.so.5+0xab
#31  /usr/lib64/libQt5XcbQpa.so.5(+0x660aa) [0x7f1120ea30aa]
#32  /usr/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x2ac) [0x7f112467226c]
#33  /usr/lib64/libglib-2.0.so.0(+0x5a508) [0x7f1124672508]
#34  /usr/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f112467259c]
#35  0x7f112681a476 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib64/libQt5Core.so.5+0x66
#36  0x7f1128e4f0a4 in Gui::SplashObserver::Log(char const*) from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x144
#37  0x7f1127d53990 in Base::ConsoleSingleton::NotifyLog(char const*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0xa0
#38  0x7f1127d53c23 in Base::ConsoleSingleton::Log(char const*, ...) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x233
#39  0x7f1127d5429a in Base::ConsoleSingleton::sPyLog(_object*, _object*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x6a
#40  /usr/lib64/libpython3.11.so.1.0(+0x18d7b1) [0x7f11278577b1]
#41  /usr/lib64/libpython3.11.so.1.0(_PyObject_MakeTpCall+0x8b) [0x7f112781643b]
#42  /usr/lib64/libpython3.11.so.1.0(_PyEval_EvalFrameDefault+0x67e9) [0x7f11277ca2e9]
#43  /usr/lib64/libpython3.11.so.1.0(+0x21ed20) [0x7f11278e8d20]
#44  /usr/lib64/libpython3.11.so.1.0(PyEval_EvalCode+0xa4) [0x7f11278e8dd4]
#45  /usr/lib64/libpython3.11.so.1.0(+0x25f513) [0x7f1127929513]
#46  /usr/lib64/libpython3.11.so.1.0(+0x25f736) [0x7f1127929736]
#47  /usr/lib64/libpython3.11.so.1.0(PyRun_StringFlags+0x6b) [0x7f112792c8eb]
#48  0x7f1127d6cf08 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib64/freecad/lib64/libFreeCADBase.so+0x68
#49  0x7f11289594cf in Gui::Application::runInitGuiScript() from /usr/lib64/freecad/lib64/libFreeCADGui.so+0x3f
#50  0x7f11289628ca in Gui::Application::runApplication() from /usr/lib64/freecad/lib64/libFreeCADGui.so+0xfea
#51  freecad(+0x5886) [0x55f3885f7886]
#52  /usr/lib64/libc.so.6(+0x238ca) [0x7f11261638ca]
#53  /usr/lib64/libc.so.6(__libc_start_main+0x85) [0x7f1126163985]
#54  freecad(+0x5b41) [0x55f3885f7b41]


With --write-log I got a few more lines before the crash:
Code:

$ freecad --verbose --write-log
Log: Init: App::FreeCADInit.py done
Log: Init: Creating Gui::Application and QApplication
Log: Local server 'FreeCAD' started
Log: OpenGL version is: 4.3 (4.3 (Compatibility Profile) Mesa 23.0.3)
Log: xcb_shm_create_segment() can't be called for size 17179344900, maximumallowed size is 4294967295
Err: Program received signal SIGSEGV, Segmentation fault.


Looking for the xcb_shm_create_segment error, I ended up on this thread about keepassxc, and this worked:
Code:
QT_AUTO_SCREEN_SCALE_FACTOR=0 freecad


I'm also wondering if it could be related to fluxbox, because I'm using it, and a few pages that mention this issue also explicitly mention fluxbox. As it is not widely used, I find it suspicious...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum