# Geoviewer tab-Segmentation fault

**URL:** <https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689>\
**Category:** Installation\
**Created:** [13 July 2020 11:57 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689 "2020-07-13T11:57:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [13 July 2020 11:57 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/1 "2020-07-13T11:57:16Z")

</div>

Dear all,  
Recently I have switched to UBUNTU 20.04 LTS. After installation of the most recent version of FLAIR, whenever I click on the geometry tab, I get **segmentation fault.** I have used the 20.04 debian version of FLAIR for installation. Rest of the tabs seems to be running, as I could run the file, post process it and even plot the results. I have removed and reinstalled the same. But the problem remains.  
Thanks for your kind help in this regard.

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [13 July 2020 14:40 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/2 "2020-07-13T14:40:03Z")

</div>

Hi @sujoy  
does it create a **core** file?  
If yes open the core with the debugger and like  
`$ gdb /usr/bin/python3 core`  
and issue the command  
`bt`  
to see where it fails.

If you don’t have a coredump maybe you can try the command  
`ulimit -c unlimited`  
before launching flair to generate it

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [14 July 2020 06:10 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/3 "2020-07-14T06:10:48Z")

</div>

Dear Vasilis,  
Thank you for the reply. No core dump file was generated. But I could locate a python crash report. As the file is huge, I am sending you first few lines towards the beginning and end of the file.  
**Towards the beginning:**  
ProblemType: Crash  
Architecture: amd64  
CrashCounter: 1  
CurrentDesktop: ubuntu:GNOME  
Date: Mon Jul 13 22:34:54 2020  
DistroRelease: Ubuntu 20.04  
ExecutablePath: /usr/bin/python3.8  
ExecutableTimestamp: 1588002814  
ProcCmdline: python3 -O -W ignore /usr/local/flair/flair.py  
ProcCwd: /home/sujoy/fluka\_work/example  
ProcEnviron:  
LANGUAGE=en\_IN:en  
TERM=xterm-256color  
PATH=(custom, user)  
XDG\_RUNTIME\_DIR=  
LANG=en\_IN  
SHELL=/bin/bash  
ProcMaps:  
00400000-00423000 r–p 00000000 08:05 93591328 /usr/bin/python3.8  
00423000-006b0000 r-xp 00023000 08:05 93591328 /usr/bin/python3.8  
006b0000-008ed000 r–p 002b0000 08:05 93591328 /usr/bin/python3.8  
008ed000-008ee000 r–p 004ec000 08:05 93591328 /usr/bin/python3.8  
008ee000-00935000 rw-p 004ed000 08:05 93591328 /usr/bin/python3.8  
00935000-00958000 rw-p 00000000 00:00 0  
016fb000-03c98000 rw-p 00000000 00:00 0 [heap]  
7f76bdffc000-7f76bdffd000 —p 00000000 00:00 0  
7f76bdffd000-7f76be7fd000 rw-p 00000000 00:00 0  
7f76be7fd000-7f76be7fe000 —p 00000000 00:00 0  
7f76be7fe000-7f76beffe000 rw-p 00000000 00:00 0  
7f76beffe000-7f76befff000 —p 00000000 00:00 0  
7f76befff000-7f76bf7ff000 rw-p 00000000 00:00 0  
7f76bf7ff000-7f76bf800000 —p 00000000 00:00 0  
7f76bf800000-7f76c0000000 rw-p 00000000 00:00 0  
7f76c0000000-7f76c255f000 rw-p 00000000 00:00 0  
7f76c255f000-7f76c4000000 —p 00000000 00:00 0  
7f76c4000000-7f76c40ff000 rw-p 00000000 00:00 0  
7f76c40ff000-7f76c8000000 —p 00000000 00:00 0  
7f76c8000000-7f76c80ff000 rw-p 00000000 00:00 0  
7f76c80ff000-7f76cc000000 —p 00000000 00:00 0  
7f76cc7f9000-7f76cc7fa000 —p 00000000 00:00 0  
7f76cc7fa000-7f76ccffa000 rw-p 00000000 00:00 0  
7f76ccffa000-7f76ccffb000 —p 00000000 00:00 0  
7f76ccffb000-7f76cd7fb000 rw-p 00000000 00:00 0  
7f76cd7fb000-7f76cd7fc000 —p 00000000 00:00 0  
7f76cd7fc000-7f76cdffc000 rw-p 00000000 00:00 0  
7f76cdffc000-7f76cdffd000 —p 00000000 00:00 0  
7f76cdffd000-7f76ce7fd000 rw-p 00000000 00:00 0  
7f76ce7fd000-7f76ce7fe000 —p 00000000 00:00 0  
7f76ce7fe000-7f76ceffe000 rw-p 00000000 00:00 0  
7f76ceffe000-7f76cefff000 —p 00000000 00:00 0  
7f76cefff000-7f76cf7ff000 rw-p 00000000 00:00 0  
7f76cf7ff000-7f76cf800000 —p 00000000 00:00 0  
7f76cf800000-7f76d0000000 rw-p 00000000 00:00 0  
7f76d0000000-7f76d0203000 rw-p 00000000 00:00 0  
7f76d0203000-7f76d4000000 —p 00000000 00:00 0  
7f76d477b000-7f76d477c000 —p 00000000 00:00 0  
7f76d477c000-7f76d50bc000 rw-p 00000000 00:00 0  
7f76d50bc000-7f76d50bd000 —p 00000000 00:00 0  
7f76d50bd000-7f76d58bd000 rw-p 00000000 00:00 0  
7f76d58bd000-7f76d58be000 —p 00000000 00:00 0

**Towards the end:**  
ProcStatus:  
Name: python3  
Umask: 0002  
State: D (disk sleep)  
Tgid: 13334  
Ngid: 0  
Pid: 13334  
PPid: 13332  
TracerPid: 0  
Uid: 1000 1000 1000 1000  
Gid: 1000 1000 1000 1000  
FDSize: 64  
Groups: 4 24 27 30 46 120 131 132 1000  
NStgid: 13334  
NSpid: 13334  
NSpgid: 13331  
NSsid: 8508  
VmPeak: 631956 kB  
VmSize: 631956 kB  
VmLck: 0 kB  
VmPin: 0 kB  
VmHWM: 184108 kB  
VmRSS: 184108 kB  
RssAnon: 152488 kB  
RssFile: 31620 kB  
RssShmem: 0 kB  
VmData: 328052 kB  
VmStk: 132 kB  
VmExe: 2752 kB  
VmLib: 38620 kB  
VmPTE: 576 kB  
VmSwap: 0 kB  
HugetlbPages: 0 kB  
CoreDumping: 1  
THP\_enabled: 1  
Threads: 13  
SigQ: 0/15467  
SigPnd: 0000000000000000  
ShdPnd: 0000000000000000  
SigBlk: 0000000000000000  
SigIgn: 0000000001001000  
SigCgt: 0000000180000002  
CapInh: 0000000000000000  
CapPrm: 0000000000000000  
CapEff: 0000000000000000  
CapBnd: 0000003fffffffff  
CapAmb: 0000000000000000  
NoNewPrivs: 0  
Seccomp: 0  
Speculation\_Store\_Bypass: vulnerable  
Cpus\_allowed: f  
Cpus\_allowed\_list: 0-3  
Mems\_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001  
Mems\_allowed\_list: 0  
voluntary\_ctxt\_switches: 5052  
nonvoluntary\_ctxt\_switches: 3832  
Signal: 11  
Uname: Linux 5.4.0-40-generic x86\_64  
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo  
CoreDump: base64  
H4sICAAAAAAC/0NvcmVEdW1wAA==  
7H0JnFTFtX71TDMOS0iDiLgkuSAiog23l+npMYqXbcS93ZAkL6F3QAfoDANqNi+IBJWYdgnZY7uEGN97eZ2YR1Zja5RnVlujiFvSmhez/9NmIeZl4V/d9Z07c6tvMX1xMGC6fhRnTt36aq9Ty719ztWLzult83gYOS+bywY5xgzW6AwWZX9oo/jCrfisQ0TuXpntcQz3ELZCz6WcfKB6m42vxR5V+6MKnD7fOePyzAacdyiOXa7AHbdvXPlG53JKtBa7o/4Xyl+RcDmvncq4nECz2C12HLWHQ7vUEYVOEVBcY2/48tvabHQITpQjKcJLe+9bfzVrdKr6Ea4s40w7bcjvReCu/pa7/ICryLjh8ku2C9xel/kBV5Vxw+X3InBX3++yfu1I9/5m80M5aSqWbLjqJW02Kpcz/tUOPH

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [14 July 2020 07:39 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/4 "2020-07-14T07:39:44Z")

</div>

Unfortunately I cannot understand from this file the cause.  
You could try the following

1. start **flair**
2. find the process number (PID) with the command  
`ps ax | grep flair.py`
3. run the debugger with that process  
`gdb /usr/bin/python PID`
4. enter **c** in the debugger to continue running
5. click on the geometry editor tab in flair, and when it crashes the debugger should show the problematic line
6. You can issue a command **bt** in the debugger to show the backtrace (stack of calls)

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [14 July 2020 09:00 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/5 "2020-07-14T09:00:20Z")

</div>

Dear Vasilis,  
The following I get on the prompt after issuing the commands which you have sent.

Attaching to program: /usr/bin/python, process 17335  
[New LWP 17337]  
0x00007fd9e8aaa376 in ?? ()  
(gdb) c  
Continuing.  
[New LWP 17347]  
[New LWP 17348]  
[New LWP 17349]  
[New LWP 17350]  
[New LWP 17351]  
[New LWP 17352]  
[New LWP 17353]  
[New LWP 17354]  
[New LWP 17355]  
[LWP 17355 exited]  
[New LWP 17356]  
[LWP 17356 exited]  
[New LWP 17357]  
[LWP 17357 exited]  
[New LWP 17358]  
[LWP 17358 exited]  
[New LWP 17359]  
[New LWP 17360]  
[New LWP 17361]  
[New LWP 17362]  
[LWP 17359 exited]  
[LWP 17361 exited]  
[LWP 17362 exited]  
[New LWP 17363]  
[New LWP 17364]  
[LWP 17363 exited]  
[LWP 17364 exited]  
[New LWP 17365]  
[New LWP 17366]  
–Type for more, q to quit, c to continue without paging–

Thread 21 “python3” received signal SIGSEGV, Segmentation fault.  
[Switching to LWP 17365]  
0x00007fd9e1ecdcb7 in ?? ()  
(gdb) bt  
#0 0x00007fd9e1ecdcb7 in ?? ()  
#1 0x0000000000000000 in ?? ()  
(gdb)

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [14 July 2020 09:12 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/6 "2020-07-14T09:12:16Z")

</div>

Thanks @sujoy  
also that didn’t provide much information.  
I would suggest if you could download the **.tgz** packages of both flair and geoviewer and make a local installation, compiling yourself the geoviewer code with DEBUG information enabled so maybe we can get something more.

The instructions are written on the download page of flair on how to compile manually.

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [14 July 2020 09:16 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/7 "2020-07-14T09:16:15Z")

</div>

Thanks Vasilis,  
I did the same. I have downloaded the .tgz file. Installation was smooth. But while running, I am getting the same error. Should I do the compilation again of flair-geoviewer with DEBUG information enabled. How do I do it ?  
I have put **make\*\* and \*\* make install** command for compiling the flair-geoviewer.

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [14 July 2020 15:42 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/8 "2020-07-14T15:42:54Z")

</div>

To enable debug information for geoviewer do the following  
`make -B -j 8 DEBUG=yes`  
followed by  
`make install`

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [15 July 2020 04:41 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/9 "2020-07-15T04:41:15Z")

</div>

Dear Vailis,  
Today I have again tried the deb version. I could get the most recent trace back of the fault.  
**Traceback (most recent call last):**  
\*\* File “/usr/local/flair/tkFlair.py”, line 1278, in **call** \*\*  
\*\* return self.func(_args)_\*  
\*\* File “/usr/local/flair/flair.py”, line 1920, in preferences\_fluka\*\*  
\*\* def preferences\_fluka(self): self.preferences(page=“Fluka”)\*\*  
\*\* File “/usr/local/flair/flair.py”, line 1915, in preferences\*\*  
\*\* if tkFlair.preferences(self, page):\*\*  
\*\* File “/usr/local/flair/tkFlair.py”, line 1475, in preferences\*\*  
\*\* if cd.show(page):\*\*  
\*\* File “/usr/local/flair/ConfigDialog.py”, line 216, in show\*\*  
\*\* self.grab\_set()\*\*  
\*\* File “/usr/lib/python3.8/tkinter/ **init**.py”, line 902, in grab\_set\*\*  
\*\* self.tk.call(‘grab’, ‘set’, self.\_w)\*\*  
**\_tkinter.TclError: grab failed: window not viewable**  
**Segmentation fault (core dumped)**  
Pl let me know if it helps. If not, I will again try the .tgz installation with the commands given by you.  
With regards,  
Sujoy Chatterjee

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [15 July 2020 07:20 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/10 "2020-07-15T07:20:19Z")

</div>

Hi Sujoy,

this traceback is something different from the coredump you have. Please try with my instructions

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [15 July 2020 09:16 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/11 "2020-07-15T09:16:24Z")

</div>

Dear @vasilis  
I have done the compilation with your instructions. The installation was smooth, although the problem persists. Pl let me know which file is required and its location for debugging purpose.  
With Regards,  
Sujoy Chatterjee

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [16 July 2020 14:34 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/12 "2020-07-16T14:34:16Z")

</div>

Did it generate any file named **core**?  
If yes then you can open it with the **gdb** as I mentioned before  
`gdb /usr/bin/python core`  
and give the command **bt**  
to show the location of the problem

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [17 July 2020 04:51 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/13 "2020-07-17T04:51:19Z")

</div>

Dear @vasilis,  
This time also, no core file was generated, although flair stopped with **Segmentation fault (core dumped)**. I have followed all the commands you have written earlier while compiling. I do not know how to proceed further.

With regards,  
Sujoy Chatterjee

---

<div class="post-metadata">

**Author:** ![froeschl](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/2acd7d/32.png) [@froeschl](https://fluka-forum.web.cern.ch/u/froeschl)\
**Post date:** [17 July 2020 06:34 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/14 "2020-07-17T06:34:09Z")

</div>

Dear Vasilis and Sujoy,

I could reproduce the problem (on the RP cluster). I only appears if a 3D panel is open on the screen.

Attached you find the text file with the gbd output. No core dump file in the given directory (somewhere else?) is produced although the program quits with  
[froeschl@pcscrpd3 SHiP\_mu] /cluster/temp/Software/FLAIR/default\_cluster\_flair/flair: line 14: 7782 Segmentation fault (core dumped) {PYTHON} -O -W ignore {DIR}/flair.py "@"

Cheers,  
Robert  
[geoviewer\_debug.txt](https://fluka-forum.web.cern.ch/uploads/short-url/jWnhc8XIv5jFINZ8h3c4HFOqUlS.txt) (32.5 KB)

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [17 July 2020 07:35 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/15 "2020-07-17T07:35:38Z")

</div>

@froeschl the problem you have is with the implementation of std::async functionality, I believe linked with the g++ version.  
You can try to disable it by compiling with the option SLOWAA=yes as  
`make clean; make SLOWAA=yes`  
I don’t know if it is related with the problem of @sujoy

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [20 July 2020 04:51 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/16 "2020-07-20T04:51:19Z")

</div>

Dear @vasilis  
I changed my OS to Ubuntu 18.04 LTS. Unfortunately I am getting same error with geoviewer tab. With debugger , I recently got the following lines. I do not know, whether they are pointing towards the problem or not.

Thread 21 “python3” received signal SIGSEGV, Segmentation fault.  
[Switching to Thread 0x7f1db2ffd700 (LWP 4108)]  
GeometryEngine::fillIRURegionAccel (this=this@entry=0x1cbcc68,  
ray=ray@entry=0x7f1db2ffcae0) at engine.cc:361  
361 engine.cc: No such file or directory.

With regards,  
Sujoy Chatterjee

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [20 July 2020 07:00 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/17 "2020-07-20T07:00:11Z")

</div>

further to bt command following are the output:  
(gdb) bt  
#0 0x00007fb43f125e4e in GeometryEngine::whereRay (this=0x1467dc8,  
x=-2.5204261724202199, y=-2.8217033541586969, z=-0.051172923850019814,  
dx=0.49999999999999994, dy=-0.4330127018922193, dz=-0.75000000000000011,  
t=1e-10, zone=0x0, body=0x0) at engine.cc:314  
#1 0x00007fb43f0c9a2c in GeometryEngine::whereRay (this=0x1467dc8, p=…,  
d=…, t=1e-10, zone=0x0, body=0x0) at …/geometry/engine.h:212  
#2 0x00007fb43f0cf157 in D3Layer::shootRay (this=0x2f8ac18,  
u=-2.185324873504054, v=-3.0889369975561385, pixelRay=…,  
pEngine=0x1467dc8, pZone=0x0, step=1) at d3layer.cc:556  
#3 0x00007fb43f0d177a in D3Layer::\<lambda(D3Layer&, double, double, Ray, GeometryEngine&, VZone&)\>::operator()(D3Layer &, double, double, Ray, GeometryEngine &, VZone &) const (\_\_closure=0x7fb43102c9d8, d3=…, curU=-2.185324873504054,  
curV=-3.0889369975561385, curRay=…, geoEngine=…, curZone=…)  
at d3layer.cc:1097  
#4 0x00007fb43f0d28d4 in std::\_\_invoke\_impl\<unsigned int, D3Layer::superSamplePixel(int, int, ZBuffer&, int)::\<lambda(D3Layer&, double, double, Ray, GeometryEngine&, VZone&)\>, std::reference\_wrapper, double, double, Ray, std::reference\_wrapper, std::reference\_wrapper \>(std::\_\_invoke\_other, D3Layer::\<lambda(D3Layer&, double, double, Ray, GeometryEngine&, VZone&)\> &&) (\_\_f=…) at /usr/include/c++/7/bits/invoke.h:60  
#5 0x00007fb43f0d2212 in std::\_\_invoke\<D3Layer::superSamplePixel(int, int, ZBuffer&, int)::\<lambda(D3Layer&, double, double, Ray, GeometryEngine&, VZone&)\>, std::reference\_wrapper, double, double, Ray, std::reference\_wrapper\<Geome—Type to continue, or q —Type to continue, or q to quit-

---

<div class="post-metadata">

**Author:** ![ctheis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ctheis/32/10734_2.png) [@ctheis](https://fluka-forum.web.cern.ch/u/ctheis)\
**Post date:** [31 July 2020 16:55 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/18 "2020-07-31T16:55:16Z")

</div>

Hi,

does this happen with a specific geometry or with all input files, including the example ones?

The back trace shows that the ray tracer has a problem localizing a position in the geometry. To ensure that this could not be due to a tricky error in the your geometry definition it would be good to know if this is a specific or a general issue.

In addition some other infos would be of interest:

- Do you run Ubuntu in a virtual machine or is it a native installation?
- Which version of g++ do you use?

I would also suggest rebuild your geoeditor with the following command  
make SLOWAA=yes

and check if the issue persists. It might be that there is an issue in the multithreading implementation of your compiler that could cause this crash.

Cheers  
Chris

---

<div class="post-metadata">

**Author:** ![sujoy](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/sujoy/32/563_2.png) [@sujoy](https://fluka-forum.web.cern.ch/u/sujoy)\
**Post date:** [3 August 2020 07:48 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/19 "2020-08-03T07:48:36Z")

</div>

Dear Chris

The problem is happening with all input file, even with the sample input file. I am using native Ubuntu installation. I have tried with command SLOWAA=yes, but the problem persists. What I have found is that my PC being old one is having Core2 duo processor and the “geoviewer” crashes with any version of linux. I have tried with fedora32, ubuntu 18.04 and Ubuntu 20.04. In new machines starting from i3 processors, the problem goes away. This is my personal view, may be I am wrong.

With regards,

Sujoy Chatterjee

---

<div class="post-metadata">

**Author:** ![ctheis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ctheis/32/10734_2.png) [@ctheis](https://fluka-forum.web.cern.ch/u/ctheis)\
**Post date:** [3 August 2020 15:55 UTC](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689/20 "2020-08-03T15:55:45Z")

</div>

Hi Sujoy,

I think I have identified the issue which is bound to show up only with certain CPUs under specific circumstances as well as some types of virtual machines.

Could you please try to replace the file d3layer.cc in the sub-directory “viewer” of geoviewer with the following version and recompile it.

In my test setup this resolved the issue but I cannot guarantee because it was very tricky to reproduce the issue you were encountering. Therefore, it would be great if you could try the patch.

@fferrull could you please try as well? In your environment the patch is already installed. So you would just need to start flair and try the 3D view.

Cheers  
Chris

[Next page](https://fluka-forum.web.cern.ch/t/geoviewer-tab-segmentation-fault/689.md?page=2)
