Details

      Description

      {html}<div><p>Hello. I investigated the memory leak issue. I have such code
      (modified KitchenSink):<br>
      var scrollView = Titanium.UI.createScrollableView({<br></p> <pre> <code>views:[], showPagingControl:true, pagingControlHeight:30, maxZoomScale:2.0, currentPage:1,</code> </pre> <p>});</p>
      <p>var dir =
      Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory+'/hires');<br></p>
      <p>var files = dir.getDirectoryListing();<br></p>
      <p>for(i=0;i<files.length;i++)<br>
      {<br></p>
      <pre>
      <code>var img = Titanium.UI.createImageView({
      backgroundImage:'../hires/'+files[i],
      width:640,
      height:880,
      left:0,
      top:0,
      });

      var scroll = Titanium.UI.createScrollView({ contentWidth:320, contentHeight:440, minZoomScale:0.5, }); scroll.add(img); scrollView.addView(scroll);</code> </pre> <p>}</p>
      <p>win.add(scrollView);<br>
      So I noticed that every Scroll event free memory decreased by
      2-3MB, looks like Titanium creates new view for current focused
      view and there is NO way to release the memory. I don't understand
      why memory consumes when I scroll to new view. All views already
      loaded in that For cycle. I have app crash after 7-8 scrolls on my
      iPhone 3G. 1.3.0 SDK</p></div>{html}

        Activity

        Hide
        Kevin (WA) added a comment -
        {html}<div><p>Forgive me, but how are you downloading "the latest build of
        1.7.0" ? I only see the latest nightly/continuous build here:
        <a href=
        "http://builds.appcelerator.com.s3.amazonaws.com/index.html">http://builds.appcelerator.com.s3.amazonaws.com/index.html</a></p></div>{html}
        Show
        Kevin (WA) added a comment - {html}<div><p>Forgive me, but how are you downloading "the latest build of 1.7.0" ? I only see the latest nightly/continuous build here: <a href= "http://builds.appcelerator.com.s3.amazonaws.com/index.html"> http://builds.appcelerator.com.s3.amazonaws.com/index.html </a></p></div>{html}
        Hide
        Stephen Tramer added a comment -
        {html}<div><p>You are able to download and build from our github repository:
        <a href=
        "http://github.com/appcelerator/titanium_mobile">http://github.com/appcelerator/titanium_mobile</a>.</p></div>{html}
        Show
        Stephen Tramer added a comment - {html}<div><p>You are able to download and build from our github repository: <a href= "http://github.com/appcelerator/titanium_mobile"> http://github.com/appcelerator/titanium_mobile </a>.</p></div>{html}
        Hide
        Kevin (WA) added a comment -
        {html}<div><p>ok, is the github "master" branch considered 1.7.0-continuous at
        the moment?</p></div>{html}
        Show
        Kevin (WA) added a comment - {html}<div><p>ok, is the github "master" branch considered 1.7.0-continuous at the moment?</p></div>{html}
        Hide
        Stephen Tramer added a comment -
        {html}<div><p>Yes. Master is the latest and should be considered unstable and
        not generally suitable for release software, unless you absolutely
        require fixes from it.</p></div>{html}
        Show
        Stephen Tramer added a comment - {html}<div><p>Yes. Master is the latest and should be considered unstable and not generally suitable for release software, unless you absolutely require fixes from it.</p></div>{html}
        Hide
        Thomas Huelbert added a comment -

        [INFO] Titanium SDK version: 1.7.0 (05/10/11 19:34 879871b...), ipad1 4.2. 3 minutes an a ton of scrolls, not a leak seen using instruments.

        Show
        Thomas Huelbert added a comment - [INFO] Titanium SDK version: 1.7.0 (05/10/11 19:34 879871b...), ipad1 4.2. 3 minutes an a ton of scrolls, not a leak seen using instruments.

          People

          • Assignee:
            Pedro Enrique
            Reporter:
            Vitaly Virulaine
          • Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development