# Crash on Slicer Startup on Qt5 Linux Mint

**URL:** <https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774>\
**Category:** Development\
**Tags:** bug, nightlybuild\
**Created:** [February 1, 2021, 2:09pm UTC](https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774 "2021-02-01T14:09:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobinMontferme](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/robinmontferme/32/9720_2.png) [@RobinMontferme](https://discourse.slicer.org/u/RobinMontferme)\
**Post date:** [February 1, 2021, 2:09pm UTC](https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774/1 "2021-02-01T14:09:44Z")

</div>

Hello, I have recently tried to build the latest version of Slicer4 (4.13.0-2021-01-30).

I am using Linux Mint 20.1 (based on Ubuntu 20.04 Focal Fossa)

I also opened a github issue related to said problem [here](https://github.com/Slicer/Slicer/issues/5420).

After building from source using the nightly development guide, the application crashes after the startup splash screen. After some debugging with gdb, I’ve found out that the program `SlicerApp-real` in the `bin` dir of the build segfaults.

Here is the stack trace from gdb (which can also be found on the github issue linked):

```auto
#1 0x00007fffe1fa8c3c in QDialogButtonBox::setStandardButtons(QFlags<QDialogButtonBox::StandardButton>) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#2 0x00007ffff73f080f in Ui_ctkSettingsDialog::setupUi(QDialog*) (this=0x555556d0e740, ctkSettingsDialog=0x555556cd1510) at /home/robin/work/Projet/3D_slicer/Slicer-SuperBuild-Debug/CTK-build/CTK-build/Libs/Widgets/ui_ctkSettingsDialog.h:57
#3 0x00007ffff73edbfb in ctkSettingsDialogPrivate::init() (this=0x555556d0e740) at /home/robin/work/Projet/3D_slicer/Slicer-SuperBuild-Debug/CTK/Libs/Widgets/ctkSettingsDialog.cpp:75
#4 0x00007ffff73ee9e4 in ctkSettingsDialog::ctkSettingsDialog(QWidget*) (this=0x555556cd1510, _parent=0x0) at /home/robin/work/Projet/3D_slicer/Slicer-SuperBuild-Debug/CTK/Libs/Widgets/ctkSettingsDialog.cpp:187
#5 0x00007ffff7b98ba1 in qSlicerApplicationPrivate::init() (this=0x555555adbb40) at /home/robin/work/Projet/3D_slicer/Slicer/Base/QTGUI/qSlicerApplication.cxx:267
#6 0x00007ffff7b999a1 in qSlicerApplication::qSlicerApplication(int&, char**) (this=0x7fffffffda90, _argc=@0x7fffffffda3c: 1, _argv=0x7fffffffdc08) at /home/robin/work/Projet/3D_slicer/Slicer/Base/QTGUI/qSlicerApplication.cxx:373
#7 0x000055555555cfc6 in (anonymous namespace)::SlicerAppMain(int, char**) (argc=1, argv=0x7fffffffdc08) at /home/robin/work/Projet/3D_slicer/Slicer/Applications/SlicerApp/Main.cxx:40
#8 0x000055555555d2fe in main(int, char**) (argc=1, argv=0x7fffffffdc08) at /home/robin/work/Projet/3D_slicer/Slicer/Base/QTApp/qSlicerApplicationMainWrapper.cxx:56

```

Chances are that it might be related to Qt only, I’ve tried re-installing the lib and I might try recompiling the super-build again. Aside that I really don’t know where to look.

**EDIT**  
I forgot to add that a colleague managed to get it working on it’s own machine which actually runs Ubuntu 20.04 and it works for him.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 1, 2021, 2:39pm UTC](https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774/2 "2021-02-01T14:39:17Z")

</div>

Yes, Qt have lots of issues on Ubuntu 20. Until a linux expert comes to help, you might check out notes in [Slicer install instructions for linux](https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#linux) and still open Linux issues (such as [5286](https://github.com/Slicer/Slicer/issues/5286) or [5228](https://github.com/Slicer/Slicer/issues/5228)).

---

<div class="post-metadata">

**Author:** ![RobinMontferme](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/robinmontferme/32/9720_2.png) [@RobinMontferme](https://discourse.slicer.org/u/RobinMontferme)\
**Post date:** [February 1, 2021, 2:49pm UTC](https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774/3 "2021-02-01T14:49:44Z")

</div>

I forgot to add that a colleague managed to get it working on it’s own machine which actually runs Ubuntu 20.04 and it works for him.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 1, 2021, 3:04pm UTC](https://discourse.slicer.org/t/crash-on-slicer-startup-on-qt5-linux-mint/15774/4 "2021-02-01T15:04:59Z")

</div>

Yes, Ubuntu 20.04 works very well for me, but 20.10 still has trouble.
