Segmentation fault with example B3

Hello.

I am a begginer in Geant4 and I was trying to compile some of the basic examples.
Examples B1 and B2a were ok.
However, examples B3a and B4a resulted in segmentation faults.
For instance, these examples open a visualization window but when I try to run events it closes due to the error.
Moreover, the number os errors changes if I change de perspective of the geometry.

CAUGHT SIGNAL: 11 ### address: 0x2b, signal = SIGSEGV, value = 11, description = segmentation violation. Address not mapped to object.

Backtrace:
[PID=30330, TID=-1][ 0/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4vis_management.so(_ZNSt10filesystem7__cxx114pathD1Ev+0xb) [0x7fc417c7d41b]
[PID=30330, TID=-1][ 1/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4analysis.so(ZN10G4Analysis12GetExtensionERK8G4StringS2+0x1cc) [0x7fc416ca9d4c]
[PID=30330, TID=-1][ 2/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4analysis.so(_ZN14G4VFileManager11SetFileNameERK8G4String+0x90) [0x7fc416d00110]
[PID=30330, TID=-1][ 3/43]> ./exampleB3a(+0xb989) [0x55f93a670989]
[PID=30330, TID=-1][ 4/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4run.so(_ZN12G4RunManager17RunInitializationEv+0x65e) [0x7fc41703918e]
[PID=30330, TID=-1][ 5/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4run.so(_ZN12G4RunManager6BeamOnEiPKci+0x51) [0x7fc417033e31]
[PID=30330, TID=-1][ 6/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4run.so(_ZN14G4RunMessenger11SetNewValueEP11G4UIcommand8G4String+0x53d) [0x7fc41706946d]
[PID=30330, TID=-1][ 7/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN11G4UIcommand4DoItE8G4String+0x357) [0x7fc416303ca7]
[PID=30330, TID=-1][ 8/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4intercoms.so(_ZN11G4UImanager12ApplyCommandEPKc+0x6a2) [0x7fc41631c452]
[PID=30330, TID=-1][ 9/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4interfaces.so(_ZN13G4VBasicShell14ExecuteCommandERK8G4String+0x2f) [0x7fc417a8912f]
[PID=30330, TID=-1][10/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4interfaces.so(ZN13G4VBasicShell17ApplyShellCommandERK8G4StringRbS3+0xe9f) [0x7fc417a8da4f]
[PID=30330, TID=-1][11/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4interfaces.so(_ZN6G4UIQt14ButtonCallbackERK7QString+0x11d) [0x7fc417a8117d]
[PID=30330, TID=-1][12/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x9b6) [0x7fc417342306]
[PID=30330, TID=-1][13/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN7QAction9triggeredEb+0x32) [0x7fc4135ff912]
[PID=30330, TID=-1][14/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN7QAction8activateENS_11ActionEventE+0x110) [0x7fc413601d30]
[PID=30330, TID=-1][15/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(+0x2496d0) [0x7fc4136ee6d0]
[PID=30330, TID=-1][16/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0xd5) [0x7fc4136ee7e5]
[PID=30330, TID=-1][17/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN11QToolButton17mouseReleaseEventEP11QMouseEvent+0xa) [0x7fc4137cd5ea]
[PID=30330, TID=-1][18/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0x1f0) [0x7fc413643650]
[PID=30330, TID=-1][19/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN11QToolButton5eventEP6QEvent+0x69) [0x7fc4137cd6b9]
[PID=30330, TID=-1][20/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c) [0x7fc4136058fc]
[PID=30330, TID=-1][21/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xe9f) [0x7fc41360d6cf]
[PID=30330, TID=-1][22/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x108) [0x7fc4173164e8]
[PID=30330, TID=-1][23/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb+0x1fa) [0x7fc41360bffa]
[PID=30330, TID=-1][24/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(+0x1b7f31) [0x7fc41365cf31]
[PID=30330, TID=-1][25/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(+0x1babf3) [0x7fc41365fbf3]
[PID=30330, TID=-1][26/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c) [0x7fc4136058fc]
[PID=30330, TID=-1][27/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x1f0) [0x7fc41360ca20]
[PID=30330, TID=-1][28/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x108) [0x7fc4173164e8]
[PID=30330, TID=-1][29/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE+0x63a) [0x7fc412d8f5ca]
[PID=30330, TID=-1][30/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate24processWindowSystemEventEPN29QWindowSystemInterfacePrivate17WindowSystemEventE+0x105) [0x7fc412d90b15]
[PID=30330, TID=-1][31/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Gui.so.5(_ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0xbb) [0x7fc412d6e02b]
[PID=30330, TID=-1][32/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5XcbQpa.so.5(+0x6bf0a) [0x7fc40f7acf0a]
[PID=30330, TID=-1][33/43]> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x27d) [0x7fc4108bf17d]
[PID=30330, TID=-1][34/43]> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x52400) [0x7fc4108bf400]
[PID=30330, TID=-1][35/43]> /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x33) [0x7fc4108bf4a3]
[PID=30330, TID=-1][36/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5f) [0x7fc41736d8ff]
[PID=30330, TID=-1][37/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xea) [0x7fc417314daa]
[PID=30330, TID=-1][38/43]> /home/cristiana/Qt5.12.10/5.12.10/gcc_64/lib/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x80) [0x7fc41731d7f0]
[PID=30330, TID=-1][39/43]> /home/cristiana/Software_MonteCarlo/geant4/geant4-v11.0.1-install/lib/libG4interfaces.so(_ZN6G4UIQt12SessionStartEv+0xf8) [0x7fc417a773e8]
[PID=30330, TID=-1][40/43]> ./exampleB3a(+0x9cc5) [0x55f93a66ecc5]
[PID=30330, TID=-1][41/43]> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fc415c020b3]
[PID=30330, TID=-1][42/43]> ./exampleB3a(+0xa6fe) [0x55f93a66f6fe]

: Segmentation fault (Address not mapped to object [0x2b])
Aborted (core dumped)

As I do not yet understand much of this, could someone help me?
Is this possibly related with the installation? (I followed the guide step by step).

Thanks in advance!
Cristiana

Did visualization work ok on B1 and B2?

Yes, it worked on both B1 and B2a and I was able to similate events and see the particles.