<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;}
@font-face
{font-family:-webkit-standard;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
.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" style="font-size:11.0pt">Hi Cassandra,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Very strange. I also think it may be a memory issue, although maybe not related to simulation size in my case. My total simulation consumes ~4.6G of RAM out of 64G available. The issue has also
never occurred during dosimetry-related experiments.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">I noticed that the issue
</span><span style="font-size:11.0pt;color:black">began after I made some changes to my macro file in order to ensure that whole runs were distributed amongst the jobs. This required GATE to perform a number of internal alias comparisons and assignments. I
have since cleaned up the alias and doif commands so hopefully that eliminates the issue since there were never any problems before adding those commands. Does your SPECT configuration utilize a lot of alias and doif commands as well?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">As another developer pointed out to me, the stderr printout means that a pointer to a physical volume pointed to an area of unused memory. I have always used the auto seed generator with the MersenneTwister
option. If the issue persists, then I will manually set the seed to check if it crashes repeatedly. If it doesn’t crash with the same seed, then I am told it may be a problem with my computer.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:-webkit-standard;color:black">Thank you for your input!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:-webkit-standard;color:black">Matthew<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><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="color:black">From:
</span></b><span style="color:black">Cassandra Miller <cassandramiller@phas.ubc.ca><br>
<b>Date: </b>Monday, February 1, 2021 at 19:35<br>
<b>To: </b>Matthew Strugari <matthew.strugari@dal.ca><br>
<b>Subject: </b>Re: [Gate-users] Simulation crashes unexpectedly<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>
<p><span style="color:white">Hi Matthew, </span><br>
<br>
I don't have any insight into why this happens, but it happens to me ALL the time. The frequency it happens depends on the size of the simulation, I think it's a memory thing somehow. It's never happened to me using GATE actors for dosimetry, but it seems to
exclusively happen when I'm doing SPECT imaging.</p>
<p>The more jobs I split my simulation into, the less this happens. So sometimes in the past when I've ran simulations that are ridiculous in size or when I'm using specific sources (for example it happens way more with the fastY90 source than an ion source)
I've split my sim into a stupid amount of jobs and then summed them up at the end. And wrote some scripts to automatically open and list the jobs that have crashed, go inside and change the engine seed number (I find if I change the engine seed it will not
crash when I rerun it, but if I don't change the engine seed it will crash again), and re-run them.<br>
<br>
It sounds a bit ridiculous but.. I've opted to do that instead of figure out what causes the problem in the first place! So I'm sorry I can't help you with the root of the problem but there are ways around it at least.<br>
<br>
Best,<br>
Cassandra</p>
<pre>-- </pre>
<pre><o:p> </o:p></pre>
<pre>Cassandra Miller</pre>
<pre>PhD Student, Physics </pre>
<pre>Quantitative Radiomolecular Imaging and Therapy Lab</pre>
<pre>Department of Physics and Astronomy, University of British Columbia</pre>
<div>
<p class="MsoNormal">On 2021-02-01 2:36 p.m., Matthew Strugari wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Hi all,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">I am having difficulty determining why my simulation is crashing (see attached log file). I am using the task spooler to split my simulation into 12 jobs. Sometimes, one or more jobs will crash
at the beginning of a run, but the run that GATE crashes on seems to be random (jobs have either 5 or 6 runs/projection images). Other times, all of the jobs will run to completion. After a job has crashed, I can reissue the command and the job will run to
completion without error.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">I cannot figure out why the job(s) seemingly crash at random. Does anyone have any insight into the issue? Your assistance is greatly appreciated.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Matthew</span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black"> </span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">--</span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Matthew Strugari</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:-webkit-standard;color:black">Biomedical Translational Imaging Centre - BIOTIC,<br>
5890 University Ave, <br>
Halifax, NS, B3K 6R8</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________</pre>
<pre>Gate-users mailing list</pre>
<pre><a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a></pre>
<pre><a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
</blockquote>
</div>
</div>
</body>
</html>