Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      iOS Simulator and iPhone (6.0.1)
      Titanium SDK 3.1.0 GA

      Description

      I am not sure if I have gotten everything right, but from what I can see there is a memory leak every time I do a write to a Ti.Buffer.

      var buffer = Ti.createBuffer({length: 1000});
      var pos = 0;
      var id = setInterval(OnInterval, 1000);
       
      function OnInterval() {
      	buffer[pos++] = 1;	
      }
      

      Every time OnInterval is called there is a memory loss of 176 bytes.

      To rule out loss from the interval mechanism I did a test with a button instead:

      var buffer = Ti.createBuffer({length: 1000});
      var pos = 0;
       
      var win = Ti.UI.createWindow();
      var button = Ti.UI.createButton({ title: 'Click me'});
      button.addEventListener("click", OnClick);
      win.add(button);
      win.open();
       
      function OnClick() {
      	buffer[pos++] = 1;
      }
      

      In that case the heap growth was 164 bytes.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              clathrop Carter Lathrop
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code