<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-CA" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Xinjie,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It looks like you have issues with overlapping geometries. You could try nesting phantom4 within phantom3 and nest phantom3 within phantom2. Also, is the height of phantom3 correct at 800mm? This does not fit within your
parent volume of phantom1.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Alternatively, is phantom3 even required? It looks like you’re reinserting polystyrene after voiding the region with air in phantom2. This could be avoided by setting Rmin to 2.4mm in phantom2.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Matthew<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Gate-users <gate-users-bounces@lists.opengatecollaboration.org> on behalf of Xinjie Cao <xinjie.cao@stonybrook.edu><br>
<b>Date: </b>Monday, January 18, 2021 at 12:38<br>
<b>To: </b>gate-users@lists.opengatecollaboration.org <gate-users@lists.opengatecollaboration.org><br>
<b>Subject: </b>[Gate-users] Weird Phantom Warning<o:p></o:p></span></p>
</div>
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;border-radius:5px;overflow:hidden">
<tbody>
<tr>
<td style="padding:7.5pt 0cm 7.5pt 0cm">
<div align="center">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;background:#707372">
<tbody>
<tr>
<td valign="top" style="border:none;border-top:solid #FBE122 6.0pt;padding:3.0pt 6.0pt 3.0pt 6.0pt">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="line-height:12.0pt;mso-line-height-rule:exactly"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:white">CAUTION:</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:white"> The Sender
of this email is not from within Dalhousie.<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:white">Dear GATE users, </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am simulating the count rate performance of some PET scanners, while I found an interesting warning/error when I made a change to the phantom configuration.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>With the following simplified phantom configuration, both single thread or cluster tool can run the macro well:</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#==========================<br>
# P H A N T O M<br>
#==========================<br>
<br>
/gate/world/daughters/name phantom1<br>
/gate/world/daughters/insert cylinder<br>
/gate/phantom1/placement/setTranslation 0.0 0.0 0.0 mm<br>
/gate/phantom1/geometry/setRmax 101.5 mm<br>
/gate/phantom1/geometry/setHeight 700 mm<br>
/gate/phantom1/setMaterial Polyethylene<br>
/gate/phantom1/attachPhantomSD<br>
<br>
/gate/phantom1/daughters/name phantom2<br>
/gate/phantom1/daughters/insert cylinder<br>
/gate/phantom2/placement/setTranslation 0.0 -45.0 0.0 mm<br>
/gate/phantom2/geometry/setRmax 3.2 mm<br>
/gate/phantom2/geometry/setHeight 700 mm<br>
/gate/phantom2/setMaterial Air<br>
/gate/phantom2/attachPhantomSD<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>While when I added two more daughter phantoms inside the previous outer shell volume as followed</b>,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">#===========================<br>
# P H A N T O M<br>
#===========================<br>
<br>
/gate/world/daughters/name phantom1<br>
/gate/world/daughters/insert cylinder<br>
/gate/phantom1/placement/setTranslation 0.0 0.0 0.0 mm<br>
/gate/phantom1/geometry/setRmax 101.5 mm<br>
/gate/phantom1/geometry/setHeight 700 mm<br>
/gate/phantom1/setMaterial Polyethylene<br>
/gate/phantom1/attachPhantomSD<br>
<br>
/gate/phantom1/daughters/name phantom2<br>
/gate/phantom1/daughters/insert cylinder<br>
/gate/phantom2/placement/setTranslation 0.0 -45.0 0.0 mm<br>
/gate/phantom2/geometry/setRmax 3.2 mm<br>
/gate/phantom2/geometry/setHeight 700 mm<br>
/gate/phantom2/setMaterial Air<br>
/gate/phantom2/attachPhantomSD<br>
<br>
/gate/phantom1/daughters/name phantom3<br>
/gate/phantom1/daughters/insert cylinder<br>
/gate/phantom3/placement/setTranslation 0.0 -45.0 0.0 mm<br>
/gate/phantom3/geometry/setRmax 2.4 mm<br>
/gate/phantom3/geometry/setRmin 1.6 mm<br>
/gate/phantom3/geometry/setHeight 800 mm<br>
/gate/phantom3/setMaterial Polyethylene<br>
/gate/phantom3/attachPhantomSD<br>
<br>
/gate/phantom1/daughters/name phantom4<br>
/gate/phantom1/daughters/insert cylinder<br>
/gate/phantom4/placement/setTranslation 0.0 -45.0 0.0 mm<br>
/gate/phantom4/geometry/setRmax 1.6 mm<br>
/gate/phantom4/geometry/setHeight 700 mm<br>
/gate/phantom4/setMaterial Water<br>
/gate/phantom4/attachPhantomSD<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>the GATE feedbacked a warning/error like this,</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">*** Break *** segmentation violation<br>
<br>
===========================================================<br>
There was a crash.<br>
This is the entire stack trace of all threads:<br>
===========================================================<br>
#0 0x00007f563c6d146c in waitpid () at /lib64/libc.so.6<br>
#1 0x00007f563c64ef62 in do_system () at /lib64/libc.so.6<br>
#2 0x00007f564b4c70c4 in TUnixSystem::StackTrace() () at /home/goldan/GATE/root/lib/libCore.so.6.18<br>
#3 0x00007f564b4c97fc in TUnixSystem::DispatchSignals(ESignals) () at /home/goldan/GATE/root/lib/libCore.so.6.18<br>
#4 0x00007f56471f4630 in <signal handler called> () at /lib64/libpthread.so.0<br>
#5 0x0000000000000040 in ()<br>
#6 0x00000000008e2658 in GateMaterialDatabase::~GateMaterialDatabase() ()<br>
#7 0x000000000087a8e6 in GateDetectorConstruction::~GateDetectorConstruction() ()<br>
#8 0x00007f564423a1e6 in G4RunManager::DeleteUserInitializations() (this=this<br>
entry=0x32997c0) at /home/goldan/GATE/geant4.10.05.p01/source/run/src/G4RunManager.cc:236<br>
#9 0x00007f564423ae75 in G4RunManager::~G4RunManager() (this=0x32997c0, __in_chrg=<optimized out>) at /home/goldan/GATE/geant4.10.05.p01/source/run/src/G4RunManager.cc:211<br>
#10 0x0000000000830e19 in GateRunManager::~GateRunManager() ()<br>
#11 0x000000000050198f in main ()<br>
===========================================================<br>
<br>
<br>
The lines below might hint at the cause of the crash.<br>
You may get help by asking at the ROOT forum <a href="http://root.cern.ch/forum">
http://root.cern.ch/forum</a><br>
Only if you are really convinced it is a bug in ROOT then please submit a<br>
report at <a href="http://root.cern.ch/bugs">http://root.cern.ch/bugs</a> Please post the ENTIRE stack trace<br>
from above as an attachment in addition to anything else<br>
that might help us fixing this issue.<br>
===========================================================<br>
#5 0x0000000000000040 in ()<br>
#6 0x00000000008e2658 in GateMaterialDatabase::~GateMaterialDatabase() ()<br>
#7 0x000000000087a8e6 in GateDetectorConstruction::~GateDetectorConstruction() ()<br>
#8 0x00007f564423a1e6 in G4RunManager::DeleteUserInitializations() (this=this<br>
entry=0x32997c0) at /home/goldan/GATE/geant4.10.05.p01/source/run/src/G4RunManager.cc:236<br>
#9 0x00007f564423ae75 in G4RunManager::~G4RunManager() (this=0x32997c0, __in_chrg=<optimized out>) at /home/goldan/GATE/geant4.10.05.p01/source/run/src/G4RunManager.cc:211<br>
#10 0x0000000000830e19 in GateRunManager::~GateRunManager() ()<br>
#11 0x000000000050198f in main ()<br>
===========================================================<br>
<br>
<br>
WARNING - Attempt to delete the physical volume store while geometry closed !<br>
WARNING - Attempt to delete the logical volume store while geometry closed !<br>
WARNING - Attempt to delete the solid store while geometry closed !<br>
WARNING - Attempt to delete the region store while geometry closed !<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>The cluster tool could run the macro with added phantom configuration well with no warning/error, so I am not sure where the wrong with it or whether it has an</b>
<b>influence on the simulation result. I probably have seen </b>a<b> similar issue when I used CASToR for reconstruction so I am guessing it is related to ROOT?</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><b>Did anyone ever meet this issue before? Any reply will be highly appreciated! Thanks!</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Best,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Xinjie<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>