Segmentation Violation from Using Energy Spectrum Actor with Time Slice Approach; vGate 9.4.1 and 9.4.2 #1055
Replies: 1 comment
-
|
Hey. Thanks for asking. Please bear in mind that this Github repository is about GATE 10, a new version of GATE re-written from scratch. For questions about the previous version GATE 9, please refer to the collaboration's mailing list: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello GATE Users,
I am attempting to run a simulation with either vGate 9.4.1 or vGate 9.4.2 that scores the energy spectrum of photons scattered into a volume next to a Gammex phantom following an irradiation of a 6 MV beam over 200 seconds with 10 time slices. However, whenever I try to run this simulation with the time slice approach (as opposed to one long time slice), I get a segmentation violation. From the crash report, it seems like the energy spectrum actor is the problem. This is supported by the fact that when I remove the energy spectrum actor, I have no issues running with time slices. Additionally, if I enable the energy spectrum to actor and run without time slices, the simulation runs just fine. It seems to be an issue with the energy spectrum actor while using the time slice approach.
I've simplified this simulation down as much as I can, such that it is just a photon beam incident on a Gammex phantom with a volume to its right scoring the energy spectrum of photons entering the volume. The mac files are attached in the zip folder. The simulation should work with all files in the same directory.
Any help in figuring out why this is crashing would be greatly appreciated,
Ryan
Errors:
[Acquisition-0] Slice 1 from 20 to 40 s [slice=20 s]
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
Thread 2 (Thread 0x7720286be640 (LWP 5235) "Gate:disk$0"):
#0 __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x56802713a330) at ./nptl/futex-internal.c:57
#1 __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x56802713a330) at ./nptl/futex-internal.c:87
#2 __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word
entry=0x56802713a330, expected=expected
entry=0, clockid=clockid
entry=0, abstime=abstime
entry=0x0, private=private
entry=0) at ./nptl/futex-internal.c:139
#3 0x000077204e893a41 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56802713a2e0, cond=0x56802713a308) at ./nptl/pthread_cond_wait.c:503
#4 ___pthread_cond_wait (cond=0x56802713a308, mutex=0x56802713a2e0) at ./nptl/pthread_cond_wait.c:627
#5 0x000077202f91952d in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#6 0x000077202f8c98bb in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#7 0x000077202f91945b in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
#8 0x000077204e894ac3 in start_thread (arg=) at ./nptl/pthread_create.c:442
#9 0x000077204e9268d0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Thread 1 (Thread 0x77204d22f5c0 (LWP 5226) "Gate"):
#0 0x000077204e8ea42f in __GI___wait4 (pid=5246, stat_loc=stat_loc
entry=0x7ffdb1ddfa18, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1 0x000077204e8ea3ab in __GI___waitpid (pid=, stat_loc=stat_loc
entry=0x7ffdb1ddfa18, options=options
entry=0) at ./posix/waitpid.c:38
#2 0x000077204e850bdb in do_system (line=) at ../sysdeps/posix/system.c:171
#3 0x0000772061d1b976 in TUnixSystem::StackTrace() () from /home/vgate/Software/root/bin/lib/libCore.so
#4 0x0000772061d18ca5 in TUnixSystem::DispatchSignals(ESignals) () from /home/vgate/Software/root/bin/lib/libCore.so
#5
#6 0x0000568013b60642 in GateEnergySpectrumActor::BeginOfRunAction(G4Run const*) ()
#7 0x0000568013a3d880 in GateActorManager::BeginOfRunAction(G4Run const*) ()
#8 0x0000568013d88106 in GateUserActions::BeginOfRunAction(G4Run const*) ()
#9 0x0000568013a2e96d in GateRunAction::BeginOfRunAction(G4Run const*) ()
#10 0x000077206505ccca in G4RunManager::RunInitialization() () from /home/vgate/Software/Geant4/install/lib/libG4run.so
#11 0x0000568013e65518 in GateRunManager::RunInitialization() ()
#12 0x0000772065056601 in G4RunManager::BeamOn(int, char const*, int) () from /home/vgate/Software/Geant4/install/lib/libG4run.so
#13 0x0000568013e02dea in GateApplicationMgr::StartDAQ() ()
#14 0x00007720622d196e in G4UIcommand::DoIt(G4String const&) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#15 0x00007720622f0a96 in G4UImanager::ApplyCommand(char const*) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#16 0x00007720622c8281 in G4UIbatch::ExecCommand(G4String const&) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#17 0x00007720622c935a in G4UIbatch::SessionStart() () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#18 0x00007720622f2a90 in G4UImanager::ExecuteMacroFile(char const*) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#19 0x00007720622e04a3 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#20 0x00007720622d196e in G4UIcommand::DoIt(G4String const&) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#21 0x00007720622f0a96 in G4UImanager::ApplyCommand(char const*) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#22 0x00005680139d89a4 in main ()
The lines below might hint at the cause of the crash. If you see question
marks as part of the stack trace, try to recompile with debugging information
enabled and export CLING_DEBUG=1 environment variable before running.
You may get help by asking at the ROOT forum https://root.cern/forum
preferably using the command (.forum bug) in the ROOT prompt.
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs or (preferably) using the command (.gh bug) in
the ROOT prompt. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#6 0x0000568013b60642 in GateEnergySpectrumActor::BeginOfRunAction(G4Run const*) ()
#7 0x0000568013a3d880 in GateActorManager::BeginOfRunAction(G4Run const*) ()
#8 0x0000568013d88106 in GateUserActions::BeginOfRunAction(G4Run const*) ()
#9 0x0000568013a2e96d in GateRunAction::BeginOfRunAction(G4Run const*) ()
#10 0x000077206505ccca in G4RunManager::RunInitialization() () from /home/vgate/Software/Geant4/install/lib/libG4run.so
#11 0x0000568013e65518 in GateRunManager::RunInitialization() ()
#12 0x0000772065056601 in G4RunManager::BeamOn(int, char const*, int) () from /home/vgate/Software/Geant4/install/lib/libG4run.so
#13 0x0000568013e02dea in GateApplicationMgr::StartDAQ() ()
#14 0x00007720622d196e in G4UIcommand::DoIt(G4String const&) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#15 0x00007720622f0a96 in G4UImanager::ApplyCommand(char const*) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#16 0x00007720622c8281 in G4UIbatch::ExecCommand(G4String const&) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#17 0x00007720622c935a in G4UIbatch::SessionStart() () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#18 0x00007720622f2a90 in G4UImanager::ExecuteMacroFile(char const*) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#19 0x00007720622e04a3 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#20 0x00007720622d196e in G4UIcommand::DoIt(G4String const&) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#21 0x00007720622f0a96 in G4UImanager::ApplyCommand(char const*) () from /home/vgate/Software/Geant4/install/lib/libG4intercoms.so
#22 0x00005680139d89a4 in main ()
Test_energy_spectrum_seg_violation_github.zip
Beta Was this translation helpful? Give feedback.
All reactions