# Segmentation fault (core dumped) - error with Flair

**URL:** <https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978>\
**Category:** Installation\
**Created:** [7 October 2020 13:29 UTC](https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978 "2020-10-07T13:29:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiharden](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/9dc877/32.png) [@fiharden](https://fluka-forum.web.cern.ch/u/fiharden)\
**Post date:** [7 October 2020 13:29 UTC](https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978/1 "2020-10-07T13:29:14Z")

</div>

Hi

I am using Ubuntu on a VM.  
I had problems with flair crashing so decided to update to the newest version of Ubuntu - I still have the same issue…

I updated to Ubuntu20.4 and then had to reinstall flair. When I ran it, every time I opened geometry flair crashed with the error “Segmentation fault (core dumped)”

I uninstalled and tried to reinstall flair.  
However when I did this I got the following error message…

(Reading database … 206734 files and directories currently installed.)  
Preparing to unpack flair\_3.1-4\_ubuntu20.04\_all.deb …  
Unpacking flair (3.1-4) over (3.1-4) …  
Preparing to unpack flair-geoviewer\_3.1-4\_ubuntu20.04\_amd64.deb …  
Unpacking flair-geoviewer (3.1-4) over (3.1-4) …  
dpkg: dependency problems prevent configuration of flair:  
flair depends on python3-scipy; however:  
Package python3-scipy is not installed.

dpkg: error processing package flair (–install):  
dependency problems - leaving unconfigured  
dpkg: dependency problems prevent configuration of flair-geoviewer:  
flair-geoviewer depends on flair (= 3.1-4); however:  
Package flair is not configured yet.

dpkg: error processing package flair-geoviewer (–install):  
dependency problems - leaving unconfigured  
Processing triggers for shared-mime-info (1.15-1) …  
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …  
Processing triggers for desktop-file-utils (0.24-1ubuntu3) …  
Processing triggers for mime-support (3.64ubuntu1) …  
Processing triggers for hicolor-icon-theme (0.17-2) …  
Errors were encountered while processing:  
flair  
flair-geoviewer

…I am guessing there is an issue with python3-scipy in the flair code?

I am totally new to this so any help would be appreciated.  
Thanks  
Fiona

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [7 October 2020 14:01 UTC](https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978/2 "2020-10-07T14:01:01Z")

</div>

Dear Fiona,

we are currently investigating the issue which causes Flair to crash in a virtual machine.

There is two workaround at the moment:

1. Increase the number of CPUs assigned to the virtual machine to at least 4, or
2. Set the number CPUs used by Geoviewer to 1. (Click the wrench icon at the bottom right corner, select 1 CPU/core on the Geomertry page, and finally restart Flair)

Doing one of them should prevent the crash.

Flair only uses scipy for the Dicom related functions, and it will show a clear error message if it is missing. This is unrelated to the crash.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![fiharden](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/9dc877/32.png) [@fiharden](https://fluka-forum.web.cern.ch/u/fiharden)\
**Post date:** [7 October 2020 14:20 UTC](https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978/3 "2020-10-07T14:20:24Z")

</div>

Hi David

Ok, thank you. I have adjusted the CPUs and hopefully this will work.

For the error with python3-scipy is there anything I should do for this?

Thanks  
Fiona

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [7 October 2020 14:25 UTC](https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978/4 "2020-10-07T14:25:20Z")

</div>

Dear Fiona,

you can simply install the python3-scipy package manually using apt.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![fiharden](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/9dc877/32.png) [@fiharden](https://fluka-forum.web.cern.ch/u/fiharden)\
**Post date:** [7 October 2020 14:43 UTC](https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978/5 "2020-10-07T14:43:30Z")

</div>

OK thanks, much appreciated

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [7 October 2020 15:01 UTC](https://fluka-forum.web.cern.ch/t/segmentation-fault-core-dumped-error-with-flair/978/6 "2020-10-07T15:01:02Z")

</div>


