<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Alfredo,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>Are you running LORIS 22?</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<div>I am asking because LORIS 23 added the following at the end of index.php:<br>
<font face="monospace" color="#000000"><br>
</font></div>
<div>
<pre><font color="#000000">// Include the body.
$bodystream = $response->getBody();
// First we need to disable any output buffering so that
// it streams to the output instead of into the buffer
// and uses up all the memory for large chunks of data.
for ($i = ob_get_level(); $i != 0; $i = ob_get_level()) {
ob_end_clean();
}
ob_implicit_flush();
while ($bodystream->eof() == false) {
// 64k oughta be enough for anybody.
print $bodystream->read(1024*64);
}</font></pre>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Try adding those lines if they are not there. Let us know if the issue persists.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<div><span>- Xavier Lecours</span></div>
</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> loris-dev-bounces@bic.mni.mcgill.ca <loris-dev-bounces@bic.mni.mcgill.ca> on behalf of Morales Pinzon, Alfredo <AMORALESPINZON@BWH.HARVARD.EDU><br>
<b>Sent:</b> May 31, 2022 3:53 PM<br>
<b>To:</b> loris-dev@bic.mni.mcgill.ca <loris-dev@bic.mni.mcgill.ca><br>
<b>Cc:</b> Vladimir S. FONOV <v.s.fonov@ilmarin.info>; Sridar Narayanan, Dr. <sridar.narayanan@mcgill.ca>; Guttmann, Charles, M.D. <guttmann@bwh.harvard.edu><br>
<b>Subject:</b> [Loris-dev] PHP Fatal error: Allowed memory size of</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Dear LorisDev team,<br>
<br>
I’m facing the following error when downloading a large minc image (~70MB) using the API “GET /candidates/$CandID/$VisitLabel/images/$Filename”. I can download the file from the web interface with no issues.<br>
<br>
===<br>
[Tue May 31 15:25:10.697608 2022] [php7:error] [pid 20168] [client 73.219.242.88:64779] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 70594560 bytes) in /var/www/loris/htdocs/index.php on line 63<br>
===<br>
<br>
I googled the error but couldn’t find a solution, do you know how fix this?<br>
<br>
Best regards,<br>
Alfredo.<br>
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at
<a href="https://www.massgeneralbrigham.org/complianceline" data-auth="NotApplicable">
https://www.massgeneralbrigham.org/complianceline</a> <<a href="https://www.massgeneralbrigham.org/complianceline" data-auth="NotApplicable">https://www.massgeneralbrigham.org/complianceline</a>> .<br>
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means
you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.
<br>
<br>
_______________________________________________<br>
Loris-dev mailing list<br>
Loris-dev@bic.mni.mcgill.ca<br>
<a href="https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev" data-auth="NotApplicable">https://mailman.bic.mni.mcgill.ca/mailman/listinfo/loris-dev</a><br>
</div>
</span></font></div>
</body>
</html>