Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2281] iOS: option to download directly to a file

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:38.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsdefect, ios, iphone
ReporterDamien Elmes
AssigneeRalf Pfeiffer
Created2011-04-15T03:15:32.000+0000
Updated2011-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

Comments

  1. Kai Pradel 2011-04-15

    Big bump! Can't believe this is still a bug after so long. Hope to see this resolved soon.

    Kai

  2. Damien Elmes 2011-04-15

    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.

  3. Don Thorp 2011-04-15

    Sure. Ralf just hasn't triaged it yet. I'll go ahead and bump this one.

  4. Damien Elmes 2011-04-15

    Thanks a lot

  5. Jeff Haynie 2011-04-15

    (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...

  6. Damien Elmes 2011-04-15

    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.

  7. Stephen Tramer 2011-04-15

    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.

  8. Thomas Huelbert 2011-04-15

    closing against 1.5.0.8f4eea3 ipod touch 4GT (4.2.1) KS test XHR download

JSON Source