I think can work around the problem without too much trouble (at least, this has worked for me) by putting a shell of lead around the outside of whatever relevant other volumes I have used in my simulation -- then no positrons escape the world volume and I receive no vectors with ID = 4. But this seems like a "klugy" fix to me....
<br><br>Thanks for your response.<br><br>Jonathan<br><br><div><span class="gmail_quote">On 3/2/07, <b class="gmail_sendername"><a href="mailto:yuxuan.zhang@di.mdacc.tmc.edu">yuxuan.zhang@di.mdacc.tmc.edu</a></b> <<a href="mailto:yuxuan.zhang@di.mdacc.tmc.edu">
yuxuan.zhang@di.mdacc.tmc.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="sans-serif" size="2">Hi,</font>
<br>
<br><font face="sans-serif" size="2">I think this is quite common for the GATE simulation. I always have these kind of problem and no</font>
<br><font face="sans-serif" size="2">easy way to solve it.</font>
<br>
<br><font face="sans-serif" size="2">yuxuan</font>
<br>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td>
<br></td><td><font face="sans-serif" size="1"><b>"Jon Engle" <<a href="mailto:engle.jonathan@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">engle.jonathan@gmail.com</a>>
</b></font>
<br><font face="sans-serif" size="1">Sent by: <a href="mailto:gate-users-bounces@lists.healthgrid.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gate-users-bounces@lists.healthgrid.org</a></font>
<p><font face="sans-serif" size="1">03/01/2007 09:01 PM</font>
<br>
</p></td><td><font face="Arial" size="1"> </font>
<br><font face="sans-serif" size="1"> To: <a href="mailto:gate-users@lists.healthgrid.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gate-users@lists.healthgrid.org</a></font>
<br><font face="sans-serif" size="1"> cc: </font>
<br><font face="sans-serif" size="1"> Subject: [Gate-users] core dump</font></td></tr></tbody></table><div><span class="e" id="q_11113539ec5aa56f_1">
<br>
<br>
<br><font size="3">All,<br>
<br>
For my work, I would like to be able to simulate positrons emitted from a point source in air. To do so, I am enclosing the source in a 1 mm radius sphere of water for attenuation and annihilation. I recognize that doing so likely means some positrons will escape the world volume without annihilating.
<br>
<br>
However, sometimes (not all the time), my simulations of point sources at different locations return a segmentation violation and a core dump. Often, I am able to rerun the same simulation with a different seed without problems. The error message is below, slightly abbreviated to reduce the size of my log files (if it might help to have a more detailed output, I am happy to change my settings and provide this):
<br>
<br>
.<br>
.<br>
.<br>
.<br>
[GateTrajectoryNavigator:</font>
<br><font size="3">:FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 1<br>
[GateTrajectoryNavigator::FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 1 <br>
[GateTrajectoryNavigator::FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 1<br>
[GateTrajectoryNavigator::FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 1 <br>
[GateTrajectoryNavigator::FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 1<br>
[GateTrajectoryNavigator::FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 1 <br>
[GateTrajectoryNavigator::FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 1<br>
[GateTrajectoryNavigator::FindAnnihilationGammasTrackID] WARNING : positron found and photonID vector size: 4 <br>
<br>
*** Break *** segmentation violation<br>
Generating stack trace...<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file <br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file <br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file <br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file<br>
/usr/bin/addr2line: 'gate': No such file <br>
0x0000000000570630 in GateDigitizer::Digitize() + 0x1f0 from gate<br>
0x000000000057fa6e in GateOutputMgr::RecordEndOfEvent(G4Event const*) + 0x8e from gate<br>
0x0000000000575f7f in GateEventAction::EndOfEventAction(G4Event const*) + 0x8f from gate <br>
0x0000000000a4c30a in G4EventManager::DoProcessing(G4Event*) + 0x6da from gate<br>
0x000000000099e7e1 in G4RunManager::DoEventLoop(int, char const*, int) + 0xd1 from gate<br>
0x000000000099d0c1 in G4RunManager::BeamOn(int, char const*, int) + 0x91 from gate <br>
0x0000000000567edb in GateApplicationMgr::StartDAQ() + 0x11b from gate</font>
<br><font size="3"> 0x00000000005b884b in GateApplicationMgrMessenger::SetNewValue(G4UIcommand*, G4String) + 0x12b from gate<br>
0x0000000000bd3f18 in G4UIcommand::DoIt(G4String) + 0x388 from gate <br>
0x0000000000bdd772 in G4UImanager::ApplyCommand(char const*) + 0x482 from gate<br>
0x0000000000be560d in G4UIbatch::SessionStart() + 0x3fd from gate<br>
0x0000000000bda705 in G4UImanager::ExecuteMacroFile(char const*) + 0x45 from gate <br>
0x00000000005a5cb0 in GateUIcontrolMessenger::LaunchMacroFile(G4String) + 0xb0 from gate<br>
0x00000000005a5e27 in GateUIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) + 0xd7 from gate<br>
0x0000000000bd3f18 in G4UIcommand::DoIt(G4String) + 0x388 from gate <br>
0x0000000000bdd772 in G4UImanager::ApplyCommand(char const*) + 0x482 from gate<br>
0x0000000000566671 in main + 0x751 from gate<br>
0x000000381d01c784 in __libc_start_main + 0xf4 from /lib64/libc.so.6<br>
0x00000000005653aa in TApplicationImp::ShowMembers(TMemberInspector&, char*) + 0x9a from gate <br>
dogaterun.positrons: line 3: 29484 Aborted (core dumped) gate main.ps.positrons.x0y0.mac<br>
<br>
thanks again,</font>
<br><font size="3"><br>
<br>
-- <br>
*************************************************************************** <br>
Jonathan Engle, Lab Tech<br>
Utah Center for Advanced Imaging Research<br>
729 Arapeen Drive, Salt Lake City, UT 84108-1218<br>
(801) 581.8288, </font><a href="http://englephysics.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="blue" size="3"><u>englephysics.com</u></font></a></span></div><font size="3"><br>
*************************************************************************** </font><font size="2"><tt>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
</tt></font>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>***************************************************************************<br>Jonathan Engle, Lab Tech<br>Utah Center for Advanced Imaging Research<br>729 Arapeen Drive, Salt Lake City, UT 84108-1218
<br>(801) 581.8288, <a href="http://englephysics.com">englephysics.com</a><br>***************************************************************************