NixOS Packager Discussion Thread

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
User avatar
Kunda1
Posts: 6354
Joined: Thu Jan 05, 2017 9:03 pm

NixOS Packager Discussion Thread

Post by Kunda1 » Wed Jun 19, 2019 1:17 am

NixOS
Image
Image

References:
Build recipe: https://github.com/NixOS/nixpkgs/blob/m ... efault.nix

News:
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

User avatar
Kunda1
Posts: 6354
Joined: Thu Jan 05, 2017 9:03 pm

Re: NixOS Packager Discussion Thread

Post by Kunda1 » Thu Sep 19, 2019 5:10 pm

Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

User avatar
Kunda1
Posts: 6354
Joined: Thu Jan 05, 2017 9:03 pm

Re: NixOS Packager Discussion Thread

Post by Kunda1 » Wed Sep 25, 2019 10:01 pm

Code: Select all

How to reproduce:

Delete .config/.FreeCAD
Run FreeCAD
Open one of the sample projects
Go back to the start tab
Double-click another sample project
Repeat steps 4 and 5 until it crashes
Segfault:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.                                                                                                                [42/90]
#0  /nix/store/g2p6fwjc995jrq3d8vph7k45l9zhdf8f-glibc-2.27/lib/libc.so.6(+0x35c50) [0x7fe8726ecc50]
#1  0x7fe8739758e0 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) from /nix/store/jafn5liqv06f2cd6krwz00
hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0xc80
#2  0x7fe873976038 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore
*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x348
#3  0x7fe873974dde in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) from /nix/store/jafn5liqv06f2cd6krwz00
hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x17e
#4  0x7fe873976038 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore
*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x348
#5  0x7fe873974dde in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) from /nix/store/jafn5liqv06f2cd6krwz00
hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x17e
#6  0x7fe873976038 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore
*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x348
#7  0x7fe873974dde in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) from /nix/store/jafn5liqv06f2cd6krwz00
hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x17e
#8  0x7fe873976038 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore
*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x348
#9  0x7fe873974dde in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) from /nix/store/jafn5liqv06f2cd6krwz0$
hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x17e
#10  0x7fe873976038 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingSto$
e*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x348
#11  0x7fe8739761b9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingSto$
e*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x4c9
#12  0x7fe8739761b9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingSto$
e*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x4c9
#13  0x7fe8739761b9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingSto$
e*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x4c9
#14  0x7fe8739761b9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStor
e*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x4c9
#15  0x7fe873974dde in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) from /nix/store/jafn5liqv06f2cd6krwz0
0hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x17e
#16  /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5(+0x184bc4) [0x7fe87394bbc4]
#17  /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5(+0x184e6d) [0x7fe87394be6d]
#18  0x7fe8739641df in QWidgetPrivate::syncBackingStore() from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x4f
#19  0x7fe87397c198 in QWidget::event(QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x358
#20  0x7fe873a84250 in QMainWindow::event(QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x60
#21  0x7fe87621a34b in Gui::MainWindow::event(QEvent*) from /nix/store/8kibqvk2g58dxvil2ignwjf7088lz7di-freecad-0.18.2/lib/libFreeCADGui.so+0x18b
#22  0x7fe87393c17c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x9c
#23  0x7fe873943700 in QApplication::notify(QObject*, QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x2f0
#24  0x7fe875f3b098 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/8kibqvk2g58dxvil2ignwjf7088lz7di-freecad-0.18.2/lib/libFreeCADGui.so+0x88
#25  0x7fe872f367f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core.so.5+0x118
#26  0x7fe872f39357 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core
.so.5+0x1a7
#27  /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5(+0x477c82) [0x7fe873c3ec82]
#28  /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5(+0x47f299) [0x7fe873c46299]
#29  0x7fe872f670c2 in QObject::event(QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core.so.5+0xe2
#30  0x7fe873c51b6b in QGraphicsScene::event(QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x4db
#31  0x7fe87393c17c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x9c
#32  0x7fe873943700 in QApplication::notify(QObject*, QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Widgets.so.5+0x2f0
#33  0x7fe875f3b098 in Gui::GUIApplication::notify(QObject*, QEvent*) from /nix/store/8kibqvk2g58dxvil2ignwjf7088lz7di-freecad-0.18.2/lib/libFreeCADGui.so+0x88
#34  0x7fe872f367f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core.so.5+0x118
#35  0x7fe872f39357 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core
.so.5+0x1a7
#36  /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core.so.5(+0x2f81c3) [0x7fe872f941c3]
#37  /nix/store/bxf0g30v0z3hvimnxvrk2d2i43b52hdv-glib-2.60.3/lib/libglib-2.0.so.0(g_main_context_dispatch+0x317) [0x7fe86f7327d7]
#38  /nix/store/bxf0g30v0z3hvimnxvrk2d2i43b52hdv-glib-2.60.3/lib/libglib-2.0.so.0(+0x5fa80) [0x7fe86f732a80]
#39  /nix/store/bxf0g30v0z3hvimnxvrk2d2i43b52hdv-glib-2.60.3/lib/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fe86f732c5c]
#40  0x7fe872f937df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5
Core.so.5+0x5f
#41  0x7fe872f34b1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core.so.5+0x13a
#42  0x7fe872f3dff0 in QCoreApplication::exec() from /nix/store/jafn5liqv06f2cd6krwz00hd6v93hijc-qtbase-5.12.0/lib/libQt5Core.so.5+0x90
#43  0x7fe875ebe59a in Gui::Application::runApplication() from /nix/store/8kibqvk2g58dxvil2ignwjf7088lz7di-freecad-0.18.2/lib/libFreeCADGui.so+0x142a
#44  /run/current-system/sw/bin/FreeCAD(main+0x68d) [0x404add]
#45  /nix/store/g2p6fwjc995jrq3d8vph7k45l9zhdf8f-glibc-2.27/lib/libc.so.6(__libc_start_main+0xee) [0x7fe8726d9b8e]
#46  /run/current-system/sw/bin/FreeCAD(_start+0x2a) [0x4057aa]
Note: Downstream ticket was closed
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features

Post Reply