Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!
_Geant4 Version:_9.2
_Operating System:_Sent-OS
_Compiler/Version:_gcc-11.2.0
CMake Version:
Hello
I am new to using GEANT4 and GATE9.2. I am trying to run a simulation but my job crashes immediately when the simulation starts.
here is the error I am getting by looking at the log output file
Idle> /gate/application/setTimeSlice 1.00 s
Idle> /gate/application/setTimeStart 0.00 s
Idle> /gate/application/setTimeStop / 7000.00 s
Idle>
Idle> /gate/application/startDAQ
[Acquisition-0]
[Acquisition-0] ============= Source initialization =============
[Acquisition-0]
[Acquisition-0] ============= Acquisition starts! =============
[Acquisition-0] Simulation start time = 0 sec
[Acquisition-0] Simulation end time = 1 sec
[Acquisition-0] Simulation will have = 1 run(s)
[Acquisition-0] Slice 0 from 0 to 1 s [slice=1 s]
G4VisManager: Using G4TrajectoryDrawByCharge as fallback trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
WARNING: Scene “none” not found. /vis/scene/list to see scenes.
When the simulation crashes it gives me an ‘std::bad_alloc’ error. More specifically this is what I get on my screen when the job crashes.
$ [G4-cerr] /: double value expected.
[G4-cerr] Parameter is wrong type and/or is not omittable (index 0)
terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc
CAUGHT SIGNAL: 6 ### address: 0x19350000cfcb, signal = SIGABRT, value = 6, description = abort program (formerly SIGIOT).
Backtrace:
[PID=53195, TID=-2][ 0/22]> /lib64/libc.so.6(gsignal+0x37) [0x7f22c3873387]
[PID=53195, TID=-2][ 1/22]> /lib64/libc.so.6(abort+0x148) [0x7f22c3874a78]
[PID=53195, TID=-2][ 2/22]> /apps/gcc/gcc-11.2.0/lib64/libstdc++.so.6(+0x9c4ee) [0x7f22c3ec04ee]
[PID=53195, TID=-2][ 3/22]> /apps/gcc/gcc-11.2.0/lib64/libstdc++.so.6(+0xa7856) [0x7f22c3ecb856]
[PID=53195, TID=-2][ 4/22]> /apps/gcc/gcc-11.2.0/lib64/libstdc++.so.6(+0xa78c1) [0x7f22c3ecb8c1]
[PID=53195, TID=-2][ 5/22]> /apps/gcc/gcc-11.2.0/lib64/libstdc++.so.6(+0xa7b45) [0x7f22c3ecbb45]
[PID=53195, TID=-2][ 6/22]> /apps/gcc/gcc-11.2.0/lib64/libstdc++.so.6(+0x9c12b) [0x7f22c3ec012b]
[PID=53195, TID=-2][ 7/22]> Gate(ZNSt6vectorIP18G4VTrajectoryPointSaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT+0x11e) [0x8a432e]
[PID=53195, TID=-2][ 8/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4tracking.so(_ZN12G4Trajectory10AppendStepEPK6G4Step+0x105) [0x7f22e24d0675]
[PID=53195, TID=-2][ 9/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4tracking.so(_ZN17G4TrackingManager15ProcessOneTrackEP7G4Track+0x11a) [0x7f22e24cdf2a]
[PID=53195, TID=-2][10/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4event.so(_ZN14G4EventManager12DoProcessingEP7G4Event+0x88a) [0x7f22e27083fa]
[PID=53195, TID=-2][11/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4run.so(_ZN12G4RunManager15ProcessOneEventEi+0x25) [0x7f22e29b4115]
[PID=53195, TID=-2][12/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4run.so(_ZN12G4RunManager11DoEventLoopEiPKci+0x172) [0x7f22e29b4312]
[PID=53195, TID=-2][13/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4run.so(_ZN12G4RunManager6BeamOnEiPKci+0x5e) [0x7f22e29b1f0e]
[PID=53195, TID=-2][14/22]> Gate() [0x917ac7]
[PID=53195, TID=-2][15/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4intercoms.so(_ZN11G4UIcommand4DoItE8G4String+0x7bd) [0x7f22de64243d]
[PID=53195, TID=-2][16/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4intercoms.so(_ZN11G4UImanager12ApplyCommandEPKc+0xd70) [0x7f22de660fc0]
[PID=53195, TID=-2][17/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4interfaces.so(_ZN12G4UIterminal14ExecuteCommandERK8G4String+0x28) [0x7f22e39344d8]
[PID=53195, TID=-2][18/22]> /apps/geant4/geant4-11.0.3-gcc-11.2.0/lib64/libG4interfaces.so(_ZN12G4UIterminal12SessionStartEv+0x43) [0x7f22e3935ac3]
[PID=53195, TID=-2][19/22]> Gate() [0x4d0d50]
[PID=53195, TID=-2][20/22]> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f22c385f555]
[PID=53195, TID=-2][21/22]> Gate() [0x507a86]
: Aborted (Signal sent by tkill() 53195 6453)
have I forgotten to initialize any parameter. It seems to me that it is a memory allocation error but I am unable to figure out where it is coming from.
Could anyone suggest possible solution?