Details

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

      Ti.SDK 3.5.1, Android Genymotion 4.2.2

      Description

      I test my code for memory leaks. When I use Menu in my View I can't to make sure that memory fully released. Not all proxy removed from memory after closing test window. Some time but rarely all proxies and his native views removed fully.

      Why it happens and how to deal with this behavior?
      The situation is complicated by using a more complex controller with a many of child Views.

      testWindow.xml

      <Alloy>
          <Window>       
              <Menu id="menu" platform="android">           
                  <MenuItem id="submitButton" title="123">
                  </MenuItem>
              </Menu>    
              <Label>Close this window and then create second HPROF dump. Then compare difference against two dumps.</Label>    
          </Window>
      </Alloy>
      

      testWindow.js

      // empty
      

      index.js

      function doClick(e) {
          Alloy.createController('testWindow').getView().open();
      }
       
      $.index.open();
      

      index.xml

      <Alloy>
      	<Window class="container" layout="vertical">
      	    <Label>Create first HPROF dump now</Label>
      		<Button id="label" onClick="doClick">Click to open test window</Button>
      	</Window>
      </Alloy>
      

        Attachments

        1. 1st Dump.png
          1st Dump.png
          144 kB
        2. 2nd Dump.png
          2nd Dump.png
          143 kB
        3. dumps.png
          dumps.png
          106 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              falko Andrey Tkachenko
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration