Hybrid View

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    5
    Vote Rating
    0
    Zavit is on a distinguished road

      0  

    Default Memory leak when i set new root node into TreeStore

    Memory leak when i set new root node into TreeStore


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1.0
    Browser versions tested against:
    • FF 16.0.2
    • IE8
    • Opera 12.02
    Description:

    We have memory leak, when dinamically(timeout 1 sec):
    • set new root with his childs in TreeStore, which data interpret by treepanel; OR
    • remove all child nodes of root node and append new nodes into it.
    Steps to reproduce the problem:
    • See ext js code and json data below;
    • Open the application in IE8, click on checkbox(refresh);
    • Open task manager;
    • See on memory state of IE process.
    The result that was expected:
    • Memory leaks can't be
    The result that occurs instead:
    • Memory grows
    Test Case:
    Code:
     
       Ext.application({
        name: 'WebConsole',
        launch: function() {
        var tempStore = Ext.create('Ext.data.TreeStore',{
            autoload: false,
            proxy:{
                type: 'ajax',
                url: 'server.json',
              reader: {
                  type:'json'
              }
            },
            clearOnLoad: true,
          listeners:{
            load:{
                fn: function(store)
            {
                var childs = Ext.clone(store.getRootNode().childNodes);
                treepanel.setRootNode({
                text: "Services",
                expanded: true,
                children: childs
                });
            }
                
                    }            
        }});
        tempStore.load();
    var runReloadTreePanel = Ext.create("Ext.util.TaskRunner");
        var taskTree = {
                run: function()
                {
                tempStore.load();
                },
                 interval:1000 
        }
    
        var checkbox = Ext.create('Ext.form.field.Checkbox',{
               boxLabel: 'Refresh',
               listeners :{
                   change: {
                        fn: function(field,newValue,oldValue){
                            if(newValue)
                            {
                  runReloadTreePanel.start(taskTree);
                            }
                            else
                            {
                  runReloadTreePanel.stop(taskTree);
                            }
              }
               }
                }
        });
        var treepanel = Ext.create('Ext.tree.Panel', {
            title: 'Services',
            collapsible: true,
            rootVisible:false,
            expanded: true,
            region:'west',
            margins: '5 0 0 0',
            width: 400,
            minSize: 100,
            maxSize: 250,
            dockedItems: [{
                xtype: 'toolbar',
                dock: 'bottom',
                items: [
                        checkbox           
                        ]
            }],
             viewConfig: 
                {
                loadMask: false
                }
    });
        
    Ext.create('Ext.container.Viewport', {
         layout: 'fit',
            items: [
        treepanel
         ]
            });
    }});
    HELPFUL INFORMATION

    server.json content:
    Code:
        {text: 'Services',children:[
        {text : 'JMS',leaf : false, expanded: true, children:[
        {text : 'ActiveMQClient',leaf : true,icon: 'images/STARTED_icon.gif'},
        {text : 'ActiveMQServer',leaf : true,icon: 'images/STARTED_icon.gif'}]},
        {text : 'Routes',leaf : false, expanded: true, children:[
        {text : 'Backend Emulation',leaf : false, expanded: true, children:[
        {text : 'Backend Emulation[1]',leaf : true,icon: 'images/STARTED_icon.gif'},
        {text : 'Backend Emulation[2]',leaf : true,icon: 'images/STARTED_icon.gif'}]},
        {text : 'XEConnect',leaf : false, expanded: true, children:[
        {text : 'XEConnect Inbound',leaf : false, expanded: true, children:[  
        {text : 'XEConnect Inbound[1]',leaf : true,icon: 'images/STARTED_icon.gif'},
        {text : 'XEConnect Inbound[2]',leaf : true,icon: 'images/STARTED_icon.gif'}]},
        {text : 'XEConnect Outbound',leaf : false, expanded: true, children:[
        {text : 'XEConnect Outbound[1]',leaf : true,icon: 'images/STARTED_icon.gif'},
        {text : 'XEConnect Outbound[2]',leaf : true,icon: 'images/STARTED_icon.gif'}]}]}]},
        {text : 'XEConnect',leaf : false, expanded: true, children:[
        {text : 'CORE Server',leaf : true,icon: 'images/STARTED_icon.gif'}]}]}
    Operating System:
    • Windows 7 Pro

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What Ext JS 4 version?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    5
    Vote Rating
    0
    Zavit is on a distinguished road

      0  

    Default


    Ext js 4.1 version

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    5
    Vote Rating
    0
    Zavit is on a distinguished road

      0  

    Default


    Is it ext js problem or browser??

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi