<div dir="ltr"><font color="#073763"><font face="trebuchet ms,sans-serif"><div style><span style="font-size:x-small">Hello Gaters,</span><br></div><div><font size="1"><br></font></div><div><font size="1">  I'm trying to build a simulation of dosimetry in a simple water box hit by protons. All the macros seem to be written correctly, in fact the MC works if all the Actors are disabled and the "No Output Mode" (/gate/output/allowNoOutput) is selected. The same happens with the only SimulationStatisticActor activated. However a crash is registered when the DoseActor is enabled. Examples and RTbench by GATE work on my PC with the DoseActor enabled, so I tried a rough copy-&-paste on my own simulation (changing volume name and size), but this did not solve the problem! Here follow my actors.mac and the reported crash.</font></div>
<div><font size="1"><br></font></div><div><font size="1">Thanks for your help! </font></div><div><font size="1"><br></font></div><div style><font size="1">Regards.</font></div><div><br></div><div style><font size="1"><br>
</font></div><div style><font size="1">actors.mac</font></div><div style><font size="1"><br></font></div><div style><font size="1"><div>/gate/actor/addActor DoseActor doseDistribution<br></div><div>/gate/actor/doseDistribution/save output/protonDose.root<br>
</div><div>/gate/actor/doseDistribution/attachTo UserBox<br></div><div>/gate/actor/doseDistribution/stepHitType random<br></div><div>/gate/actor/doseDistribution/setSize 5. 5. 400. mm<br></div><div>/gate/actor/doseDistribution/setPosition 0. 0. 0. mm</div>
<div>#/gate/actor/doseDistribution/setVoxelSize  5. 5. 2. mm<br></div><div>/gate/actor/doseDistribution/saveEveryNSeconds 60<br></div><div>/gate/actor/doseDistribution/enableEdep true<br></div><div>/gate/actor/doseDistribution/enableUncertaintyEdep false</div>
<div>/gate/actor/doseDistribution/enableSquaredEdep false</div><div>/gate/actor/doseDistribution/enableDose true</div><div>/gate/actor/doseDistribution/enableUncertaintyDose false</div><div>/gate/actor/doseDistribution/enableSquaredDose false</div>
<div>/gate/actor/doseDistribution/enableNumberOfHits false</div><div>/gate/actor/doseDistribution/normaliseDose true<br></div><div><br></div></font></div><div style><font size="1">Crash:</font></div><div><font size="1"><br>
</font></div><div><font size="1"> *** Break *** segmentation violation</font></div><div><font size="1"><br></font></div><div><font size="1"><br></font></div><div><font size="1"><br></font></div><div><font size="1">===========================================================</font></div>
<div><font size="1">There was a crash (#7 0xb52a53ab in SigHandler(ESignals) () from /opt/simulation/root/5.34.02/lib/libCore.so).</font></div><div><font size="1">This is the entire stack trace of all threads:</font></div>
<div><font size="1">===========================================================</font></div><div><font size="1">#0  0xb773f424 in __kernel_vsyscall ()</font></div><div><font size="1">#1  0xb408b943 in waitpid () from /lib/i386-linux-gnu/libc.so.6</font></div>
<div><font size="1">#2  0xb4012ff3 in ?? () from /lib/i386-linux-gnu/libc.so.6</font></div><div><font size="1">#3  0xb418ce2b in system () from /lib/i386-linux-gnu/libpthread.so.0</font></div><div><font size="1">#4  0xb529e1ab in TUnixSystem::Exec(char const*) () from /opt/simulation/root/5.34.02/lib/libCore.so</font></div>
<div><font size="1">#5  0xb52a2770 in TUnixSystem::StackTrace() () from /opt/simulation/root/5.34.02/lib/libCore.so</font></div><div><font size="1">#6  0xb52a5297 in TUnixSystem::DispatchSignals(ESignals) () from /opt/simulation/root/5.34.02/lib/libCore.so</font></div>
<div><font size="1">#7  0xb52a53ab in SigHandler(ESignals) () from /opt/simulation/root/5.34.02/lib/libCore.so</font></div><div><font size="1">#8  0xb529c3e2 in sighandler(int) () from /opt/simulation/root/5.34.02/lib/libCore.so</font></div>
<div><font size="1">#9  <signal handler called></font></div><div><font size="1">#10 0xb688ec49 in G4NeutronHPData::DoPhysicsVector(G4NeutronHPVector*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div>
<div><font size="1">#11 0xb68ba1ea in G4NeutronHPInelasticData::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div><div><font size="1">#12 0xb62ebbad in G4CrossSectionDataStore::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div>
<div><font size="1">#13 0xb63141a0 in G4HadronicProcess::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div><div><font size="1">#14 0xb73ebe2a in G4VUserPhysicsList::BuildPhysicsTable(G4ParticleDefinition*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div>
<div><font size="1">#15 0xb73eca82 in G4VUserPhysicsList::BuildPhysicsTable() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div><div><font size="1">#16 0xb73df0d3 in G4RunManagerKernel::BuildPhysicsTables() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div>
<div><font size="1">#17 0xb73df538 in G4RunManagerKernel::RunInitialization() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div><div><font size="1">#18 0xb73dae97 in G4RunManager::RunInitialization() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div>
<div><font size="1">#19 0x0839689a in GateRunManager::RunInitialization() ()</font></div><div><font size="1">#20 0xb73d7b13 in G4RunManager::BeamOn(int, char const*, int) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div>
<div><font size="1">#21 0x083c6706 in GateApplicationMgr::StartDAQ() ()</font></div><div><font size="1">#22 0x083a9350 in GateApplicationMgrMessenger::SetNewValue(G4UIcommand*, G4String) ()</font></div><div><font size="1">#23 0xb587d958 in G4UIcommand::DoIt(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#24 0xb5893e8e in G4UImanager::ApplyCommand(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#25 0xb5894565 in G4UImanager::ApplyCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#26 0xb586e015 in G4UIbatch::ExecCommand(G4String const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#27 0xb586f337 in G4UIbatch::SessionStart() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#28 0xb588f97e in G4UImanager::ExecuteMacroFile(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#29 0xb5888b59 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#30 0xb587d958 in G4UIcommand::DoIt(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#31 0xb5893e8e in G4UImanager::ApplyCommand(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#32 0xb5894565 in G4UImanager::ApplyCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#33 0xb742b19d in G4UIterminal::ExecuteCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4interfaces.so</font></div>
<div><font size="1">#34 0xb742ca1c in G4UIterminal::SessionStart() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4interfaces.so</font></div><div><font size="1">#35 0x080fe6e8 in main ()</font></div>
<div><font size="1">===========================================================</font></div><div><font size="1"><br></font></div><div><font size="1"><br></font></div><div><font size="1">The lines below might hint at the cause of the crash.</font></div>
<div><font size="1">If they do not help you then please submit a bug report at</font></div><div><font size="1"><a href="http://root.cern.ch/bugs">http://root.cern.ch/bugs</a>. Please post the ENTIRE stack trace</font></div>
<div><font size="1">from above as an attachment in addition to anything else</font></div><div><font size="1">that might help us fixing this issue.</font></div><div><font size="1">===========================================================</font></div>
<div><font size="1">#10 0xb688ec49 in G4NeutronHPData::DoPhysicsVector(G4NeutronHPVector*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div><div><font size="1">#11 0xb68ba1ea in G4NeutronHPInelasticData::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div>
<div><font size="1">#12 0xb62ebbad in G4CrossSectionDataStore::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div><div><font size="1">#13 0xb63141a0 in G4HadronicProcess::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so</font></div>
<div><font size="1">#14 0xb73ebe2a in G4VUserPhysicsList::BuildPhysicsTable(G4ParticleDefinition*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div><div><font size="1">#15 0xb73eca82 in G4VUserPhysicsList::BuildPhysicsTable() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div>
<div><font size="1">#16 0xb73df0d3 in G4RunManagerKernel::BuildPhysicsTables() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div><div><font size="1">#17 0xb73df538 in G4RunManagerKernel::RunInitialization() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div>
<div><font size="1">#18 0xb73dae97 in G4RunManager::RunInitialization() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div><div><font size="1">#19 0x0839689a in GateRunManager::RunInitialization() ()</font></div>
<div><font size="1">#20 0xb73d7b13 in G4RunManager::BeamOn(int, char const*, int) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so</font></div><div><font size="1">#21 0x083c6706 in GateApplicationMgr::StartDAQ() ()</font></div>
<div><font size="1">#22 0x083a9350 in GateApplicationMgrMessenger::SetNewValue(G4UIcommand*, G4String) ()</font></div><div><font size="1">#23 0xb587d958 in G4UIcommand::DoIt(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#24 0xb5893e8e in G4UImanager::ApplyCommand(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#25 0xb5894565 in G4UImanager::ApplyCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#26 0xb586e015 in G4UIbatch::ExecCommand(G4String const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#27 0xb586f337 in G4UIbatch::SessionStart() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#28 0xb588f97e in G4UImanager::ExecuteMacroFile(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#29 0xb5888b59 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#30 0xb587d958 in G4UIcommand::DoIt(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#31 0xb5893e8e in G4UImanager::ApplyCommand(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div>
<div><font size="1">#32 0xb5894565 in G4UImanager::ApplyCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so</font></div><div><font size="1">#33 0xb742b19d in G4UIterminal::ExecuteCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4interfaces.so</font></div>
<div><font size="1">#34 0xb742ca1c in G4UIterminal::SessionStart() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4interfaces.so</font></div><div><font size="1">#35 0x080fe6e8 in main ()</font></div>
<div><font size="1">===========================================================</font></div><div style="font-size:small"><br></div></font></font><div><div dir="ltr"><div><br></div>
<div><b><font face="trebuchet ms, sans-serif">Giuseppe Magro</font></b> 
<div><i><font size="1" face="arial narrow,sans-serif">M.Sc.<br></font></i></div>
<div><i><font size="1" face="arial narrow, sans-serif">Ph.D. Student  -  Physics<br></font></i>
<div><i><font size="1" face="arial narrow, sans-serif">University of Pavia</font></i></div></div>
<div><br></div>
<div><font size="1" face="courier new, monospace">     </font></div></div>
<div><font size="1" face="courier new, monospace"><br></font></div></div></div><br>
</div>