Geoviewer tab - segmentation fault

Dear all, I have a problem with the geometry tab in flair
I saw that there are several similar posts, but I was not hable to find a solution
I’m using fluka+flair on a windows 10 OS.
I followed this guide https://fluka.cern/documentation/installation/fluka-flair-windows10-wsl
everything seems to work, I can run and plot the results of a simulation, but as the title suggest, if I click on the geometry tab the program crash.
If I try to open a void file, I can enter into the geometry tab avoiding crash

I wasn’t able to find the d3layer.cc file, as suggest in

any suggestion?
best
andrea

Dear Andrea,

please have a look on this topic:

Cheers,
David

I tried to follow it, but i failed
Is this the correct way?
uninstall geoviewer
sudo apt-get remove flair-geoviewer

Download flair-geoviewer-3.1.4.tgz
untar it and then build it manually (according to https://flair.web.cern.ch/flair/download.html)

$ tar xvf flair-geoviewer-X-XX.tgz
$ cd flair-geoviewer-X-XX
$ make -j 8
$ make install install-bin install-mime THREAD=no

right? or I missing something? Should I uninstall flair too?

Hi Andrea,

first uninstall Flair and Geoviewer with the command:

sudo apt remove flair flair-geoviewer

The you need to install Flair from the .tgz first, then the Geoviewer with the commands you posted, except use make instead of make -j 8.

Cheers,
David

sorry if it is trivial, but
tar xvf flair-3.1-4.tgz
cd flair-3.1
make
and then
make install
seems to work

if I try the same with flai-geoviewer it fail in the first make
-Wwrite-strings -Wshadow -pipe -pthread -fwrapv -fstack-protector -fpic -fno-strict-aliasing -I. -I… -I/usr/include/tcl8.6
geometryobject.cc:12:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
makefile:312: recipe for target ‘geometryobject.o’ failed
make: *** [geometryobject.o] Error 1

but
which python
/usr/bin/python
python --version
Python 2.7.17

Dear Andrea,

you need to install the following packages as well:

sudo apt install ed g++ tk-dev python3-dev

Plus run the make clean command before make in case of the geoviewer installation.

Cheers,
David

sorry to bother you again, but still I’m not hable to solve it
I install flair, then make on flair-geoviewer everything seems fine, but if i run
sudo make install install-bin install-mine THREAD=no

for f in AUTHORS BUGS README LICENSE; do
install -m 644 $f /usr/local/flair/$f.geoviewer;
done
for f in fonts/*.tga;do
install -m 644 $f /usr/local/flair/fonts;
done
make: * No rule to make target ‘install-bin’. Stop.

Hi Andrea,

please try the following commands:

make clean
make THREAD=no
make install

Cheers,
David

Thanks, now seems to work :slight_smile:

Dear @andrea_russomando and @horvathd,

I had a look and it seems that due to a hick-up during the merging of different development branches the original patch which had fixed the bug addressed in Geoviewer tab-Segmentation fault, did not make it into this release.

One solution is indeed to compile with THREAD=no but in that case you will lose quite a bit of performance. Therefore, I suggest to replace the file d3layer.cc in the sub-directory viewer of the geoeditor with this version (compatible with FLAIR 3.1-4a)

d3layer.cc (38.8 KB)

and recompile with

make clean
make 
make install

Sorry for the trouble.

Cheers
Chris