View Issue Details

IDProjectCategoryView StatusLast Update
0004354FreeCADBugpublic2020-09-24 08:23
Reporternikto_b Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
Status feedbackResolutionopen 
PlatformLinux WaylandOSArch LinuxOS VersionLinux 5.6.12
Product Version0.19 
Summary0004354: Native run on wayland?
DescriptionCrashes at opening of any .FCStd file when QT_QPA_PLATFORM set to wayland-egl
Fixes by setting that to xcb (running via xwayland)
There is stacktrace

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3c3e0) [0x7fc47a9213e0]
#1  /usr/lib/libX11.so.6(XDefaultScreenOfDisplay+0) [0x7fc476ae9200]
0000002  /usr/lib/libCoin.so.80(+0x448c4f) [0x7fc47a44fc4f]
0000003  /usr/lib/libCoin.so.80(glxglue_init+0x3d) [0x7fc47a4506ad]
0000004  /usr/lib/libCoin.so.80(cc_glglue_instance+0x243) [0x7fc47a448c63]
0000005  0x7fc47a2c49f9 in SoGLRenderActionP::isDirectRendering(SoState const*) const from /usr/lib/libCoin.so.80+0x49
0000006  0x7fc47a2c6e1d in SoGLRenderActionP::render(SoNode*) from /usr/lib/libCoin.so.80+0xcd
0000007  0x7fc47a2c7072 in SoGLRenderAction::beginTraversal(SoNode*) from /usr/lib/libCoin.so.80+0xa2
0000008  0x7fc47a2c02ea in SoAction::apply(SoNode*) from /usr/lib/libCoin.so.80+0x2ea
0000009  0x7fc47d18857a in Gui::SoBoxSelectionRenderAction::apply(SoNode*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x2a
0000010  0x7fc47d23e316 in Gui::View3DInventorViewer::renderScene() from /usr/lib/freecad/lib/libFreeCADGui.so+0x156
0000011  0x7fc47d1fe4ed in SIM::Coin3D::Quarter::QuarterWidget::paintEvent(QPaintEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x33d
0000012  0x7fc47d208d15 in SIM::Coin3D::Quarter::SoQTQuarterAdaptor::paintEvent(QPaintEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x45
0000013  0x7fc47ba360ce in QWidget::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x1ce
0000014  0x7fc47bae0adf in QFrame::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x1f
0000015  0x7fc47af4cfeb in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x8b
0000016  0x7fc47b9f4641 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x71
0000017  0x7fc47cf1ecb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
0000018  0x7fc47af4d2d2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x182
0000019  0x7fc47ba2e108 in QWidgetPrivate::sendPaintEvent(QRegion const&) from /usr/lib/libQt5Widgets.so.5+0x38
0000020  0x7fc47ba2e97c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x81c
0000021  0x7fc47ba2fd40 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x510
0000022  0x7fc47ba2e68d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x52d
0000023  0x7fc47ba2fd40 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x510
0000024  0x7fc47ba2e68d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x52d
0000025  0x7fc47ba2fd40 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x510
0000026  0x7fc47ba2e68d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x52d
0000027  0x7fc47ba2fd40 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x510
0000028  0x7fc47ba2e68d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) from /usr/lib/libQt5Widgets.so.5+0x52d
0000029  /usr/lib/libQt5Widgets.so.5(+0x16c7d6) [0x7fc47ba057d6]
0000030  0x7fc47ba3681b in QWidget::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x91b
0000031  0x7fc47b9f4652 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x82
0000032  0x7fc47cf1ecb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
0000033  0x7fc47af4d2d2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x182
0000034  0x7fc47af4fce3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /usr/lib/libQt5Core.so.5+0x173
0000035  /usr/lib/libQt5Widgets.so.5(+0x47bd17) [0x7fc47bd14d17]
0000036  0x7fc47af79142 in QObject::event(QEvent*) from /usr/lib/libQt5Core.so.5+0x292
0000037  0x7fc47b9f4652 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x82
0000038  0x7fc47cf1ecb9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
#39  0x7fc47af4d2d2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x182
#40  0x7fc47af4fce3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /usr/lib/libQt5Core.so.5+0x173
0000041  /usr/lib/libQt5Core.so.5(+0x301ab4) [0x7fc47afa4ab4]
0000042  /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x25c) [0x7fc478c7b43c]
0000043  /usr/lib/libglib-2.0.so.0(+0x9ffa9) [0x7fc478cc8fa9]
0000044  /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x31) [0x7fc478c7a221]
0000045  0x7fc47afa4101 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x61
0000046  0x7fc47af4bc0c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x12c
0000047  0x7fc47af540a6 in QCoreApplication::exec() from /usr/lib/libQt5Core.so.5+0x96
0000048  0x7fc47ce86e53 in Gui::Application::runApplication() from /usr/lib/freecad/lib/libFreeCADGui.so+0x19a3
0000049  freecad(+0x45e0) [0x5640082b35e0]
0000050  /usr/lib/libc.so.6(__libc_start_main+0xf2) [0x7fc47a90c002]
0000051  freecad(+0x48ee) [0x5640082b38ee]
Additional InformationRunning on Sway 1.4 with Intel UHD 620
Tags0.19, linux, Qt5
FreeCAD InformationOS: Arch Linux (Unity)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21329 (Git)
Build type: Release
Branch: master
Hash: 2330eef823b32ac412d839031cc174353a76b013
Python version: 3.8.3
Qt version: 5.14.2
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Russian/Russia (ru_RU)

Activities

openBrain

2020-05-31 10:33

developer   ~0014451

@nikto_b : please address your issue following our reporting guidelines by opening first a topic in our forum. Thx
Also a basic search would have pointed this topic

Kunda1

2020-06-07 14:21

administrator   ~0014497

@nikto_b please open a forum thread

fourbytes

2020-09-24 08:22

reporter   ~0014766

Last edited: 2020-09-24 08:23

View 3 revisions

With my recent pull request, FreeCAD now compiles with the git version of Coin3D. Running the latest version of Coin3D results in functional native Wayland support (Arch Linux, Sway 1.5). A caveat is that the freecad-git AUR package requires 'coin', not 'coin-git', so I had to modify the PKGBUILD for coin-git and rename it to coin.

The only major issue I have come across is that at some point, my scroll wheel stopped working to zoom, and a week or so later the middle click panning also stopped working. When I get some time, I'll try and trace this issue.

Issue History

Date Modified Username Field Change
2020-05-31 09:17 nikto_b New Issue
2020-05-31 09:17 nikto_b Tag Attached: 0.19
2020-05-31 09:17 nikto_b Tag Attached: linux
2020-05-31 09:17 nikto_b Tag Attached: Qt5
2020-05-31 10:33 openBrain Status new => feedback
2020-05-31 10:33 openBrain Note Added: 0014451
2020-06-07 14:21 Kunda1 Note Added: 0014497
2020-09-24 08:22 fourbytes Note Added: 0014766
2020-09-24 08:23 fourbytes Note Edited: 0014766 View Revisions
2020-09-24 08:23 fourbytes Note Edited: 0014766 View Revisions