[Gate-users] Segmentation violation for water geometry

Matthew Strugari matthew.strugari at dal.ca
Thu Jun 27 20:33:21 CEST 2019


Hi everyone,

I am not sure if this is a bug, but I am having difficulty defining a water phantom. In short, I am able to visualize basic geometries such as a sphere, box, or cylinder using the Qt viewer. However, when the material is set to Water, the viewer exits with the segmentation violation as shown below.

To diagnose, I've found that:

  1.  The fault doesn't appear to happen with G4_WATER or any other materials.
  2.  Water appears to be properly defined in the GateMaterials.db file.
  3.  If all three geometries are enabled, sometimes the viewer exits without the fault and other times with the fault.

Please let me know if you have any ideas on the issue.

Cheers,
Matthew


--

Matthew Strugari

Biomedical Translational Imaging Centre - BIOTIC,
5890 University Ave,
Halifax, NS, B3K 6R8



 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f09e9b26687 in __GI___waitpid (pid=14368, stat_loc=stat_loc
entry=0x7ffd32063968, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007f09e9a91067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007f09f41200d3 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x55f88c467c50) at /home/matthew/Programs/root/root-6.14.04/core/unix/src/TUnixSystem.cxx:2119
#3  TUnixSystem::StackTrace (this=0x55f88c467c50) at /home/matthew/Programs/root/root-6.14.04/core/unix/src/TUnixSystem.cxx:2413
#4  0x00007f09f4122ac4 in TUnixSystem::DispatchSignals (this=0x55f88c467c50, sig=kSigSegmentationViolation) at /home/matthew/Programs/root/root-6.14.04/core/unix/src/TUnixSystem.cxx:3644
#5  <signal handler called>
#6  0x000055f88a6b5805 in GateMaterialDatabase::~GateMaterialDatabase() ()
#7  0x000055f88a64b88e in GateDetectorConstruction::~GateDetectorConstruction() ()
#8  0x000055f88a64b8a9 in GateDetectorConstruction::~GateDetectorConstruction() ()
#9  0x00007f09f0d04496 in G4RunManager::DeleteUserInitializations() () from /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so
#10 0x00007f09f0d056b0 in G4RunManager::~G4RunManager() () from /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so
#11 0x000055f88a602179 in GateRunManager::~GateRunManager() ()
#12 0x000055f88a241ae6 in main ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x000055f88a6b5805 in GateMaterialDatabase::~GateMaterialDatabase() ()
#7  0x000055f88a64b88e in GateDetectorConstruction::~GateDetectorConstruction() ()
#8  0x000055f88a64b8a9 in GateDetectorConstruction::~GateDetectorConstruction() ()
#9  0x00007f09f0d04496 in G4RunManager::DeleteUserInitializations() () from /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so
#10 0x00007f09f0d056b0 in G4RunManager::~G4RunManager() () from /home/matthew/Programs/geant4/geant4.10.05-install/lib/libG4run.so
#11 0x000055f88a602179 in GateRunManager::~GateRunManager() ()
#12 0x000055f88a241ae6 in main ()
===========================================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20190627/8359414e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: water_geometry_test.mac
Type: application/octet-stream
Size: 2601 bytes
Desc: water_geometry_test.mac
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20190627/8359414e/attachment.obj>


More information about the Gate-users mailing list