G4ProcessManager::GetAttribute(): particle[gamma] index out of range #processes[6] index [-1]

hi geant usere

i use this UI comment" /process/inactivate phot " in my code and when run it ,this error is appeared
G4ProcessManager::GetAttribute(): particle[gamma]
index out of range
#processes[6] index [-1]
Segmentation fault (core dumped)

do anybody know what is the paroblem??

Hello,

this is not normal situation when a particle or interaction inactivated. I basically do not know any useful reason. However, if the command is there, it should work.

Please, try to reproduce the problem in any EM extended example and show macro file which provoke the crash.
Also specify Geant4 version.

Vi

Hi, I have also had this problem, did you resolve it yet?