[Gate-users] Crash with DoseActor enabled

John Apostolakis John.Apostolakis at cern.ch
Tue Dec 18 20:41:10 CET 2012


Dear Giuseppe,

This appears to be a problem which manifests itself in Geant4, rather than GATE ( although it likely is triggered by GATE. )

Looking at the location of the crash, it seems that it is during the initialization of Geant4.  So it is difficult to see why it would be affected by a change in the part which measures physical quantities ( which is presumably what the DoseActor does.)

If the geometry of your setup (the volumes with material) do not change when you add the DoseActor, the same code should be called when the physics initialization is done.

A naive assessment would be that there is memory corruption, or some other similar problem within this application.  It could be due to other reasons too, of course. You did not specify what version of GATE you use, and the operating system (and the compiler in case you built GATE yourself.)

Have you tried running the same input file on an installation of GATE/Geant4 which is complied with debugging on ?  This could help to identify better the conditions in which the method G4NeutronHPData::DoPhysicsVector(G4NeutronHPVector*) accesses invalid memory - or whether the pointer to the relevant object (G4NeutronHPData) is simply null (zero), which would mean it has not been created.

I hope that this starts to shed some light on this.

Best regards,
John
===================================================
John Apostolakis, SFT (SoFTware) Group, PH Department, CERN
Email:  john.apostolakis at cern.ch<mailto:john.apostolakis at cern.ch>       Office Tel:  +41-22-767-7239
------------------------------------------------------------------------------------------

On Dec 18, 2012, at 4:58 PM, Giuseppe Magro wrote:

Hello Gaters,

  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.

Thanks for your help!

Regards.


actors.mac

/gate/actor/addActor DoseActor doseDistribution
/gate/actor/doseDistribution/save output/protonDose.root
/gate/actor/doseDistribution/attachTo UserBox
/gate/actor/doseDistribution/stepHitType random
/gate/actor/doseDistribution/setSize 5. 5. 400. mm
/gate/actor/doseDistribution/setPosition 0. 0. 0. mm
#/gate/actor/doseDistribution/setVoxelSize  5. 5. 2. mm
/gate/actor/doseDistribution/saveEveryNSeconds 60
/gate/actor/doseDistribution/enableEdep true
/gate/actor/doseDistribution/enableUncertaintyEdep false
/gate/actor/doseDistribution/enableSquaredEdep false
/gate/actor/doseDistribution/enableDose true
/gate/actor/doseDistribution/enableUncertaintyDose false
/gate/actor/doseDistribution/enableSquaredDose false
/gate/actor/doseDistribution/enableNumberOfHits false
/gate/actor/doseDistribution/normaliseDose true

Crash:

 *** Break *** segmentation violation



===========================================================
There was a crash (#7 0xb52a53ab in SigHandler(ESignals) () from /opt/simulation/root/5.34.02/lib/libCore.so).
This is the entire stack trace of all threads:
===========================================================
….
#10 0xb688ec49 in G4NeutronHPData::DoPhysicsVector(G4NeutronHPVector*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so
#11 0xb68ba1ea in G4NeutronHPInelasticData::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so
#12 0xb62ebbad in G4CrossSectionDataStore::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so
#13 0xb63141a0 in G4HadronicProcess::BuildPhysicsTable(G4ParticleDefinition const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4processes.so
#14 0xb73ebe2a in G4VUserPhysicsList::BuildPhysicsTable(G4ParticleDefinition*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so
#15 0xb73eca82 in G4VUserPhysicsList::BuildPhysicsTable() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so
#16 0xb73df0d3 in G4RunManagerKernel::BuildPhysicsTables() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so
#17 0xb73df538 in G4RunManagerKernel::RunInitialization() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so
#18 0xb73dae97 in G4RunManager::RunInitialization() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so
#19 0x0839689a in GateRunManager::RunInitialization() ()
#20 0xb73d7b13 in G4RunManager::BeamOn(int, char const*, int) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4run.so
#21 0x083c6706 in GateApplicationMgr::StartDAQ() ()
#22 0x083a9350 in GateApplicationMgrMessenger::SetNewValue(G4UIcommand*, G4String) ()
#23 0xb587d958 in G4UIcommand::DoIt(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#24 0xb5893e8e in G4UImanager::ApplyCommand(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#25 0xb5894565 in G4UImanager::ApplyCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#26 0xb586e015 in G4UIbatch::ExecCommand(G4String const&) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#27 0xb586f337 in G4UIbatch::SessionStart() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#28 0xb588f97e in G4UImanager::ExecuteMacroFile(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#29 0xb5888b59 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#30 0xb587d958 in G4UIcommand::DoIt(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#31 0xb5893e8e in G4UImanager::ApplyCommand(char const*) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#32 0xb5894565 in G4UImanager::ApplyCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4intercoms.so
#33 0xb742b19d in G4UIterminal::ExecuteCommand(G4String) () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4interfaces.so
#34 0xb742ca1c in G4UIterminal::SessionStart() () from /opt/simulation/geant4/9.5.p01/geant4.9.5.p01-install/lib/libG4interfaces.so
#35 0x080fe6e8 in main ()
===========================================================

…

Giuseppe Magro
M.Sc.
Ph.D. Student  -  Physics
University of Pavia

_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20121218/645b4cb7/attachment.html>


More information about the Gate-users mailing list