Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24364

iOS: HTTP Client leaks memory during upload using kroll-thread, eventually causing a force close

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.0.4
    • Component/s: iOS
    • Environment:
    • Story Points:
      34
    • Sprint:
      2017 Sprint 09 SDK

      Description

      I have a serious memory leak to report that only happens on uploading of a large amount of images. If you try to upload ~120 large images to a server with xcode instruments running you'll see the memory climb after each upload and eventually crash the app.

      I've isolated out the area of the code into a sample app that proves the leak is with the HTTP client. This only has 10 images being uploaded, but if you watch the memory usage, it climbs from 20 to 100mb and never releases.

      If you run the sample app, and have instruments on 'Allocations' and note the total starting memory and then click upload. After the 10 images upload, notice the memory usage.

      Sample app: https://www.dropbox.com/s/c2gsab0jkot0n9w/Upload%20Leak%20Demo.zip?dl=0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                joef Joe Finnigan
                Reviewer:
                Vijay Singh
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10461
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration