Hello all! I just installed G4_10_05 and I tested my old application. I use primary particle: CARBON ION G4int fAtomicNumber = 6; G4int fAtomicMass = 12; G4double fIonExciteEnergy = 0.0; G4int fIonCharge = 6; with initial energy: 200MeV * 12 that hits Ti foils and stops in the water phantom. I use factory generated physics "QGSP_BIC_AllHP". Sometimes G4 crash with a message: G4IonTable:GetIon(): illegal atomic number mass Z=0 A=4 E=0 at line 278 in a file G4ParticleHPFinalState.cc additionally, I see a lot of messages: More that one neutron is required for the balance of baryon number!
Created attachment 527 [details] print screen
Looks like a ParticleHP problem.
Dear Porosev, Thank you for reporting this issue. I have been checking the code and reproducing more or less your problem, and I found a bug there. The point was that G4ParticleHPFinalState sometimes try to "adjust the final state", which means that tries to conserve energy, momentum ... event-by-event. In some situations this is quite complex since the databases used in this model do not conserve these quantities event-by-event, and this caused the crash and the "lots of messages". I fixed the problem and the fix will be available with the next geant4 public release. Regards, Emilio