Gate icon indicating copy to clipboard operation
Gate copied to clipboard

gjs executable crash - Gate9

Open ACTIVgroup opened this issue 2 years ago • 4 comments

Execution of gjs crashes with Gate9 but not with Gate8

  • OS: Ubuntu 20.04,
  • Gate versions: v8.2, v9.0, v9.1, v9.3
  • Geant4 versions: 10.05.p01, 10.6.3, 10.7.4, 11.1.2
  • Root version: v6-26-06
  • compiler version: gcc 9.4.0

Minimal example main.mac:

############# WORLD ###############
/gate/geometry/setMaterialDatabase ../GateMaterials.db

########### ACQUISITION ###############
/control/execute acquisition.mac

############## OUTPUT ################
/gate/output/imageCT/enable
/gate/output/imageCT/setFileName test

exit

terminal:

➜  localadmin✗ source gate_env_8.2.sh                                                 
➜  localadmin ✗ ./gjs_Gate8.2 -numberofsplits 2 -cs condor.script -v 3 main.mac
Information : using  condor as default cluster platform!
Information : using  condor as cluster platform!
Summary of all outputs:
  ROOT       output is disabled
  ASCII      output is disabled
  ARF        output is disabled
  PROJECTION output is disabled
  ECAT7      output is disabled
  SINOGRAM   output is disabled
  SINOACCEL  output is disabled
  LMF        output is disabled
  CT         output is disabled
  GPUSPECT   output is disabled
Summary of all actors:
  ~~~
Number of enabled output: 1
Number of enabled actors: 0
➜  localadmin ✗ source gate_env_9.3.sh                                         
➜  localadmin ✗ ./gjs_Gate9.3 -numberofsplits 2 -cs condor.script -v 3 main.mac
Information : using  condor as default cluster platform!
Information : using  condor as cluster platform!
Summary of all outputs:
  ROOT       output is disabled
  ASCII      output is disabled
  ARF        output is disabled
  PROJECTION output is disabled
  ECAT7      output is disabled
  SINOGRAM   output is disabled
  SINOACCEL  output is disabled
  LMF        output is disabled
  CT         output is disabled
  GPUSPECT   output is disabled
Summary of all actors:
  ~~~
Number of enabled output: 1
Number of enabled actors: 0
[1]    1417745 floating point exception (core dumped)  ./gjs_Gate9.3 -numberofsplits 2 -cs condor.script -v 3 main.mac

gate_env_8.2.sh:

#!/bin/zsh

### ROOT ###
source /home/localadmin/workspace/root/root_cxx17_install/bin/thisroot.sh

### GEANT4 ###
temp="$(pwd)"
cd /home/localadmin/workspace/geant4/geant4_10/geant4.10.05.p01_OPENGL_install/bin
source geant4.sh
cd $temp

### GATE ###
export PATH=$PATH:/home/localadmin/workspace/gate/Gate8.2-install/bin
export GC_DOT_GATE_DIR=/home/localadmin/PycharmProjects/ct-scripts/open_gate/phase_contrast
export GC_GATE_EXE_DIR=/home/localadmin/workspace/gate/Gate8.2-install/bin
export GC_EXEC=/home/localadmin/workspace/gate/Gate9.3-G4DATA-install/bin

gate_env_9.3.sh:

#!/bin/zsh

### ROOT ###
source /home/localadmin/workspace/root/root_cxx17_install/bin/thisroot.sh

### GEANT4 ###
temp="$(pwd)"
cd /home/localadmin/workspace/geant4/geant4_11.1.2/geant4-v11.1.2-DATA-install/bin
source geant4.sh
cd $temp

### GATE ###
export PATH=$PATH:/home/localadmin/workspace/gate/Gate9.3-G4DATA-install/bin
export GC_DOT_GATE_DIR=/home/localadmin/PycharmProjects/ct-scripts/open_gate/phase_contrast
export GC_GATE_EXE_DIR=/home/localadmin/workspace/gate/Gate9.3-G4DATA-install/bin
export GC_EXEC=/home/localadmin/workspace/gate/Gate9.3-G4DATA-install/bin

Additional context

  • Problem occurs with bash and zsh
  • Problem also occurs with Gate9.0 and Gate9.1
  • Problem occurs with all my other (complete) .mac files
  • Geant4 was installed with flags -DGEANT4_INSTALL_DATA=ON -DGEANT4_BUILD_MULTITHREADED=OFF

ACTIVgroup avatar Jul 20 '23 10:07 ACTIVgroup

in gate_env_8.2.sh the last line should be with Gate8.2, sorry. Same problem after correction ;)

ACTIVgroup avatar Jul 20 '23 11:07 ACTIVgroup

did you solve this problem?

Lsman0211 avatar May 29 '24 03:05 Lsman0211

nope...

ACTIVgroup avatar Jun 10 '24 08:06 ACTIVgroup

The same problem for me. Does anyone have a solution?

jasqs avatar Jun 14 '24 09:06 jasqs