Alxaline / Easy-GATE-Installation

Simplify the installation of GATE (an advanced opensource software developed by the international OpenGATE collaboration and dedicated to numerical simulations in medical imaging and radiotherapy)
MIT License
7 stars 5 forks source link

Error in running gjs #1

Closed msarvi closed 3 years ago

msarvi commented 3 years ago

Hi, As i run gjs command in shell i have an error core dump. I think the problem is about gjs path for GATE

Alxaline commented 3 years ago

Hello,

To find the issue and replicate the error:

1) What is your distro? cat /proc/version

2) Do you have any issues during the easy_gate.sh run?

3) Did you run the installation of cluster tools (HTcondor) at the end?

4) Do you have any display executing gjs -h

5) If the error appear for splitting job, do you properly export the two needed environment variable: export GC_DOT_GATE_DIR=/somedir/ export GC_GATE_EXE_DIR=/usr/local/GATE/Gate-9.0-install/bin

Thank you

msarvi commented 3 years ago

Dear Alxaline, My linux version 5.4.0-58-generic and gcc version is 9.3.0 ubuntu 9.3.0-17 ubuntu1~20.04 . I had no problem in running easy_gate.sh in shell then i run HTcondor correctlly same as you but when i run gjs -h in shell i see # 16091423175686286816043085571500 At the end, i export both path correctly. It make me confuse.

Alxaline commented 3 years ago

Dear msarvi,

Thank for you reply. In order to investigate more, can you post a screenshot with the two export variable in terminal and the command line use for splitting job. Then the explicit error.

Best regards

msarvi commented 3 years ago

Dear Alxaline,

First of all, I just say Thank you for your help with my issue. I have a GATE code that is in a ghaebi folder which is on the desktop. I wanted to execute this code in the cluster so I had put the path of my GATE code as an "export GC_DOT_GATE_DIR ". Then change a path of "export GC_GATE_EXE_DIR" same as you. The picture below is about this part. Screenshot from 2020-12-29 10-47-53 After, I changed my path to the job splitter folder and use your instruction like below. Screenshot from 2020-12-29 10-55-42 But, I have faced this problem again. Screenshot from 2020-12-29 10-56-37

Many thanks, M.sarvi

Alxaline commented 3 years ago

Dear msarvi,

1) In top of your condor.script, do you have the variable getenv = true? :
gedit /usr/local/GATE/Gate-9.0/cluster_tools/jobsplitter/script/condor.script

if not add the variable getenv = true:

##############################################################
#
#  Standard script for Condor in ClusterGATE 
#  Supply this script to the job splitter command line.
#  following keywords 
#   GC_EXEC
#   GC_MACRO
#  will be replaced by actual values.
#  Do not remove any of them! 
#
#  The user can edit anything before the "#GJS PART"  
#  except the line with $GC_EXEC
#
#  JDB 3.8.2005
#    
############################################################## 
getenv         = true                                                                     
Executable     = $GC_EXEC                                                   
universe       = vanilla
request_memory   = 2G
......

2) Is your holeGeo.mac inside your jobsplitter directory? If not put the full path.

Try again the gjs command line and tell me if it has changed.

Best regards

msarvi commented 3 years ago

Dear Alaxline,

  1. That's true, I checked the condor. script and add getenv = true to the first line.

Screenshot from 2020-12-30 11-21-56

  1. I used the full path of my macro, then I faced to issue again.

Screenshot from 2020-12-30 11-19-51

I have searched Mailing List on the opengate website it was a command : export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/gate/Progs/Gate/gate_v6.0_p01/cluster_tools/jobsplitter/tmp/Linux-g++/gjs. I think the problem is the gjs path. when we use the gjs command the shell didn't run the gjs file which is located in the jobsplitter folder. would you mind, please take a look at this?.

sincerely, msarvi

Alxaline commented 3 years ago

Hello msarvi,

you forgot the ./ before the gjs command line for exec the Gate splitter. Here a small example:

without : ./ Screenshot from 2020-12-30 18-39-10

with correct execution: ./ Screenshot from 2020-12-30 18-42-13

Best regards

msarvi commented 3 years ago

Dear Alxaline,

first of all, I just can say thank you. I correct my mistake in ./gjs. after execution again I have (core dump) although I set environment variables as your order and add startDAQCluster to my macro. Screenshot from 2020-12-30 15-10-54 Screenshot from 2020-12-30 15-17-16

Best regards

Alxaline commented 3 years ago

Dear msarvi

1) First screenshot means you don't have set the variable (maybe do not have source GC_GATE_EXE_DIR or GC_DOT_GATE_DIR. You use openmosix instead of condor and no script is used. Bad test maybe

2) Second one your right with the ./gjs for exec gjs but you set a . for the condorscript. So the result is an floating point exception. It's not an exec, you need the path to the script. So no . and just the path -condorscript /script/condor.script From what i see, the command line need to be:

./gjs -numberofsplits 8 -clusterplatform condor -condorscript /script/condor.script /home/messi/Desktop/ghaebi/holeGeo.mac

Best regards

msarvi commented 3 years ago

Dear Alxaline,

Many thanks for your replies. I used your command line but again the Floating point exception (core dumped) pops.

Screenshot from 2021-01-02 17-45-04

I must note that I used /gate/application/startDAQCluster but I didn't used /gate/cluster/setTimeSplitHalflife because the isotope half-life is larger than acquisition time and I simulate many CTscan systems.

sincerely, msarvi

Alxaline commented 3 years ago

Dear msarvi,

The problem is inherent to the Gate macro. Maybe something with the definition of the beginning and the end of the acquisition. Ask on the OpenGate mailing list to have help with your macro.

Best regards,

Alxaline commented 3 years ago

Issue is closed due to inactivity.

Feel free to re-open.