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

iOS: Memory leaks after select camera or photo gallery with jscore framework

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0, Release 5.5.1
    • Fix Version/s: Release 7.3.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Ti SDK 6
      Xcode 8.1
      iOS 9.3, 10.0 and 10.1

    • Story Points:
      21
    • Sprint:
      2016 Sprint 26 SDK

      Description

      If <use-jscore-framework>false</use-jscore-framework> memory leaking happen after selecting image or capture picture from camera,
      attached memory allocation after selecting 10 images from photo gallery, with true/false for run-on-main-thread, use-auto-layout and use-jscore-framework, I think the problem in last one.

      tiapp.xml

      	<property name="run-on-main-thread" type="bool">true</property>
      	<ios>
      		<enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
      		<use-app-thinning>true</use-app-thinning>
      		<use-jscore-framework>false</use-jscore-framework>
      		<use-auto-layout>true</use-auto-layout>
      	<ios>
      

      app.js

      var win = Ti.UI.createWindow(),
          button = Ti.UI.createButton({
              title: 'Open Gallery',
          });
       
      button.addEventListener('click', function() {
          Ti.Media.openPhotoGallery({
              mediaTypes: Ti.Media.MEDIA_TYPE_PHOTO,
              success: function(e) {
                  win.backgroundImage = e.media;
              }
          });
      });
       
      win.add(button);
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                hazemkhaled Hazem Khaled
                Reviewer:
                Vijay Singh
                Tester:
                Samir Mohammed
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code