G4Exception : had006 : unrecoverable error in method ApplyYourseld of protonInelastic after a big number of event

Geant4 Version:4.11.1
Operating System:linux rh8
Compiler/Version:13.2.0
CMake Version:4.1.1

Crash after a large number of source particles (targer is 2e9)

..


G4WT1 > → Event 1710500000 starts with initial seeds (98690883,88786379).
G4WT10 >
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : had006
issued by : G4HadronicProcess::PostStepDoIt
Call for ProtonHPInelastic
Target element Pb Z= 82 A= 207
Unrecoverable error in the method ApplyYourself of protonInelastic
TrackID= 1 ParentID= 0 proton
Ekin(GeV)= 0.00446966; direction= (-0.133352,-0.0118565,0.990998)
Position(mm)= (-2570.73,-749.256,-1125.96); material G4_Pb
PhysicalVolume
ApplyYourself does not completed after 100 attempts

*** Fatal Exception *** core dump ***
G4WT10 > G4Track (0x14cddc68b590) - track ID = 1, parent ID = 0
G4WT10 > Particle type : proton - creator process : not available
G4WT10 > Kinetic energy : 4.46966 MeV - Momentum direction : (-0.133352,-0.0118565,0.990998)
G4WT10 > Step length : 42.8446 um - total energy deposit : 1.35246 MeV
G4WT10 > Pre-step point : (-2570.72,-749.257,-1126) - Physical volume : physTarget2 (G4_Pb)
G4WT10 > - defined by : hIoni - step status : 3
G4WT10 > Post-step point : (-2570.73,-749.256,-1125.96) - Physical volume : physTarget2 (G4_Pb)

note that there is also a message

*** Note: Step information might not be properly updated.”

note also that we just change from Geant4 11.3.2 to Geant4 11.4.1

Dear All,

I checked I have the same Pb with Geant4 11.3.2

thanks for help and feedback

The event id in Geant4 is an int, and so it is limited to 2,147,483,647.

If you need to run more events you should probably divide them in different runs (calling /run/beamOn multiple times with a smaller number of events)

2 Likes

Hi Davide

Thanks for your help

but I asked beamOn 2e9 so below the limit 2,147,483,647.