View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011362 | mantisbt | attachments | public | 2010-01-08 04:29 | 2010-08-16 06:49 |
Reporter | Olaf123 | Assigned To | dhx | ||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0rc2 | ||||
Fixed in Version | 1.2.1 | ||||
Summary | 0011362: Picture dowload fails wit exhausted memory error with firefox 3.5.7 but not with IE8 | ||||
Description | When I try to download a small picture (PNG or JPG) that was previously successfully uploaded and is displayed properly as preview, I get a page with a lot of strange characters. At the end the following error message: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 524289 bytes) in D:\Programs\xampp\htdocs\Mantis_Ontw\file_download.php on line 191 This only happen with the latest firefox 3.5.7 browser. I don't recall this happening before so I am not entirely sure that the error is in Mantis and has nothing to do with firefox. It does not happen with IE8! | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Please update to the "Nightly Build" version.Download from http://www.mantisbt.org/builds |
|
I took the file_download.php from the nightly built. On firefox, the preview disapeared and the download still gave an error. This time it was just the error: Time Memory Function Location1 0.0018 130408 {main}( ) ..\file_download.php:0 I will try to create a full mantis installation with the nightly built this week. |
|
Also experienced issue with Firefox 3.5.7 on Karmic MantisBT v1.2RC2 but not anymore on MantisBT 1.2.0rc2 git live as of 20100122 Lots of changes in the respons in the Content-Disposition area. OK and possible more. |
|
Since the download is ok (despite of the error) but the error message is appended, Hope this will be fixed somewhen. |
|
Can you please use a clean checkout of the latest 1.2.x master or 1.3.x master branches? Overwriting individual files in your old installation with newer files from the git repository won't work. It's an upgrade all or nothing problem :) With a clean checkout (please specify if you're using 1.2.x or 1.3.x or both), do you still get the memory exhaustion error message appended to the end of the HTTP response? |
|
I met the problem like this in mantisbt-1.2.0rc2-2010-02-19-master-1.2.x-4a56720.when i view have two small images,the page view.php?id=bugid can't display,i can only see the error message like "Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 524289 bytes)". |
|
Sorry. I did not have the time to run extensive tests. I downloaded the the 1.2 version that came available. Now it all works again |
|
I have this problem too. I use Mantis 1.2.0 Final and Firefox 3.6 in Windows XP SP3. IE8 does not show this problem: Error occurs when i change from view.php (with inline jpg) to view_all_bug_page.php.
b296 |
|
I have this problem too. Mantis 1.2.0 Final and Firefox 3.6 in Windows XP SP3. Allowed memory [...] in [...]/file_download.php on line 209 Issue has attached 3 pictures: memory_limit = 512M in php.ini SOLUTION from previous version: |
|
This seems to fix the problem for mee too. |
|
I couldn't reproduce the problem before but this issue seems to keep reappearing. As PHP's readfile() does it's own chunking we don't need a custom implementation of our own. Hopefully this solves all the reports we've been having of file downloads not working nicely with large files. Please let me know how this fix works out for you. |
|
Thanks! Seems to be fixed. Cant reproduce in MantisBT 1.2.0 2010-04-01-master-1.2.x-d1d00c0 |
|
Works for me too, I applied the first diff to the 1.2.0 installation I have here, it now works just fine. Note: I have no idea what the second diff is for, it seems it does not apply to the 1.2.0 release |
|
MantisBT: master-1.2.x f845ed54 2010-03-31 06:11 Details Diff |
Fix 0011362: Use readfile instead of custom file_send_chunk PHP's inbuilt readfile() function already does its own internal chunking. We should use this function instead of our own file chunk reading function to improve reliability and performance. |
Affected Issues 0011362 |
|
mod - file_download.php | Diff File | ||
MantisBT: master fbfdfe40 2010-03-31 06:11 Details Diff |
Fix 0011362: Use readfile instead of custom file_send_chunk PHP's inbuilt readfile() function already does its own internal chunking. We should use this function instead of our own file chunk reading function to improve reliability and performance. |
Affected Issues 0011362 |
|
mod - file_download.php | Diff File |