[TIMOB-2281] iOS: option to download directly to a file
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | defect, ios, iphone |
Reporter | Damien Elmes |
Assignee | Ralf Pfeiffer |
Created | 2011-04-15T03:15:32.000+0000 |
Updated | 2011-04-17T01:58:38.000+0000 |
Description
Currently it is not possible to download files larger than free memory, and XHR is prone to leaking (see http://developer.appcelerator.com/helpdesk/view/50581">http://developer.appcelerator.com/helpdesk/view/50581 for a reproducible test case). Providing the ability to save directly to a file (which is supported by ASIHTTPRequest) would work around these issues.
Android suffers from the same problem which is being tracked on https://appcelerator.lighthouseapp.com/projects/32238/tickets/1381"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1381
Big bump! Can't believe this is still a bug after so long. Hope to see this resolved soon.
Kai
Can I humbly suggest this should be more than low priority? The leak is severe and can cause devices to actually reboot if the OOM handler doesn't fire in time. If file-backing is too much work for now, I'd settle for a fix for the leak described on that helpdesk ticket.
Sure. Ralf just hasn't triaged it yet. I'll go ahead and bump this one.
Thanks a lot
(from [05ab7461dab9a38200a27d082389d2885be951f8]) [#2281 state:fixed-in-qa] Added iOS support for downloading to a file (and modded KS 'XHR download' test to test it - also tested on Android for consistency) https://github.com/appcelerator/titanium_mobile/commit/05ab7461dab9a38200a27d082389d2885be951f8"> https://github.com/appcelerator/titanium_mobile/commit/05ab7461dab9...
Thanks a lot for this. I'm still seeing my app's memory consumption creep up over time, but it's a lot slower with this fix in place, and it should go a long ways towards reducing crashes due to memory issues.
We're aware of the memory leak problems involving XHR and will work on them as soon as possible. Bug #2299 will allow you to track our progress on this.
closing against 1.5.0.8f4eea3 ipod touch 4GT (4.2.1) KS test XHR download