PDA

View Full Version : [FIXED] why the gridscroller didn't destroy when the grid destroyed



extcjlu
26 Apr 2011, 6:29 PM
why the gridscroller didn't destroy when the grid destroyed
http://www.sencha.com/forum/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaUAAADyCAIAAABiTE0CAAAgAElEQVR4nO2dfVcTyZ7H+3XlBeUdzNk9Z3AP6+yTs/fOzb2sC9Eg6ogjc0XGAQLy4KCIBwyCDuwFDM8SBBEQYSCYcGr/6HR3VfWv+iHpdBL6+zkcjzTV1dWV9DdV/fCJNraw/3zp8PnS4b/8KckCJZfLDQ8P//rrr8PDw7lcLtjKAQDAL9r4u88vV45frhz/619SwVY9ODi4vr6ezWbX1tYGBweDrRwAAPyivVw5nlo/nVo/++6vt4KtOp1Ov379enZ2dmZmJp1OB1s5AAD4RZtcO8ls5Kc3z/+95ba5dCTz7tr9MfvPSOad96q3tra6u7vn5+e7u7u3trYqbWm6t1lr7iVj0+FP9UyjNDu0dpIbSvc2a+2T2epv3SPpONM0Vv+vGqDQXq2fvn5/PrP19T9a7phLr90fI0urlpuMjY39naOvr29qaqqnp0f/dWyMX31/MtbcrDU3a+3tpf9wP7HJfalqD3mXjeur94pHR7aXq7k9IVdcak2iPfDjyqXOQHNkP9Hu1Hvu64bSzuxku9bcHFdsqby8S8eZFmNZxhIxFksE0MhErFShcnMB5l2aaVrpJ8FtMpuwlqfVC+OatcSsxLFDqvE+byC0zMbZzNbXmVzhP/9HyLuLi6L+o2naxUXx4qKQz//hmncPHjyYm5vLZDKvXr2ampoaHx8fHR2dmJiYmZmZnp5+8OABV3Z/Mqa/9c3gc8w7B7jjZD/RXl7eZePNgb8PqlGnekPl9l6I7aReHTdc8y6bYFqcseDyLq455V3AkHmXFlNMbwy1UM67GMu6doh53EURbXrjbDZXeLNd+M/rQt7l82f5/Fk+f6ppWj5/enx8sLu97pp3nZ2dL1++HDQYGhpKp9OpVCqVSqXT6c7OTq6srd/lj/dsr9bcHM9m483Nscl9669cfumre8k7bkN6Or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F7baHlHaUyJvMOfmM/wG/cDL8xY/Ab185vTC6kJVGmVdStuyyQdwLwG8NvzBj8xjX0G5MLaQmovpU412x34Dfmgd9YHuAITYTfGH7javuNyYUOeSdPcl2B39gCfmP4jeE3ttUWpt+YXOgiPbaNWB22Br8xB/zG8BtL00z4jRVmzSr5jcuWHpujSCdw/k4AfmM5euA3ht+YKuB6vaJsv3FZ0mNPYceQdxLwG3sEfmP4jRsR+I0F4Dd2qRJ+Ywa/ccOC+40l4Dd2Bn7jegB+YxAM8BsDAKICfJ8AgKiAvAMARAX4jQEAUQF+YwBAVIDfGAAQFeA3rhj4jVXAbwzqDPiNjdbAb0w84ga/MbWJkH2f/PO5tJUPfmOvwG9sFILfGH5j99pqmne8Q8X0o8Bv7Af4jZvhN2YMfuM68xvTCzkZQdzYIvzGfoDfGH5jxuA3rje/scNC3f7irNjj64DfmAN+Y3mAIzQRfmP4jWviNyYX6r9a4zv4jX0DvzH8xvAb22qrud+YXMjvDlme3Br8xhzwG8NvLE0z4TcWKzFHZ2H6jcmF/Oa8XjPB+TsB+I3l6IHfGH5jqoDr9Ypg/cYK6TG/OQ+DO+SdBPzGHoHfGH7jRgR+YwH4jV2qhN+YwW/csOB+Ywn4jZ2B37gegN8YBAP8xgCAqADfJwAgKiDvAABRAXkHAIgKyDsAQFRA3gEAogLyDgAQFZB3AICogLwDAEQF5B0AICog7wAAUeH/AeZ3HR8D8YtuAAAAAElFTkSuQmCC

evant
26 Apr 2011, 8:34 PM
Please post more information, a test case would be useful.

extcjlu
27 Apr 2011, 8:19 AM
Ext.require([
'Ext.grid.*',
'Ext.data.*',
'Ext.util.*'
]);

Ext.onReady(function() {
Ext.QuickTips.init();

// sample static data for the store
var myData = [
['3m Co', 71.72, 0.02, 0.03, '9/1 12:00am'],
['Alcoa Inc', 29.01, 0.42, 1.47, '9/1 12:00am'],
['Altria Group Inc', 83.81, 0.28, 0.34, '9/1 12:00am'],
['American Express Company', 52.55, 0.01, 0.02, '9/1 12:00am'],
['American International Group, Inc.', 64.13, 0.31, 0.49, '9/1 12:00am'],
['AT&T Inc.', 31.61, -0.48, -1.54, '9/1 12:00am'],
['Boeing Co.', 75.43, 0.53, 0.71, '9/1 12:00am'],
['Caterpillar Inc.', 67.27, 0.92, 1.39, '9/1 12:00am'],
['Citigroup, Inc.', 49.37, 0.02, 0.04, '9/1 12:00am'],
['E.I. du Pont de Nemours and Company', 40.48, 0.51, 1.28, '9/1 12:00am'],
['Exxon Mobil Corp', 68.1, -0.43, -0.64, '9/1 12:00am'],
['General Electric Company', 34.14, -0.08, -0.23, '9/1 12:00am'],
['General Motors Corporation', 30.27, 1.09, 3.74, '9/1 12:00am'],
['Hewlett-Packard Co.', 36.53, -0.03, -0.08, '9/1 12:00am'],
['Honeywell Intl Inc', 38.77, 0.05, 0.13, '9/1 12:00am'],
['Intel Corporation', 19.88, 0.31, 1.58, '9/1 12:00am'],
['International Business Machines', 81.41, 0.44, 0.54, '9/1 12:00am'],
['Johnson & Johnson', 64.72, 0.06, 0.09, '9/1 12:00am'],
['JP Morgan & Chase & Co', 45.73, 0.07, 0.15, '9/1 12:00am'],
['McDonald\'s Corporation', 36.76, 0.86, 2.40, '9/1 12:00am'],
['Merck & Co., Inc.', 40.96, 0.41, 1.01, '9/1 12:00am'],
['Microsoft Corporation', 25.84, 0.14, 0.54, '9/1 12:00am'],
['Pfizer Inc', 27.96, 0.4, 1.45, '9/1 12:00am'],
['The Coca-Cola Company', 45.07, 0.26, 0.58, '9/1 12:00am'],
['The Home Depot, Inc.', 34.64, 0.35, 1.02, '9/1 12:00am'],
['The Procter & Gamble Company', 61.91, 0.01, 0.02, '9/1 12:00am'],
['United Technologies Corporation', 63.26, 0.55, 0.88, '9/1 12:00am'],
['Verizon Communications', 35.57, 0.39, 1.11, '9/1 12:00am'],
['Wal-Mart Stores, Inc.', 45.45, 0.73, 1.63, '9/1 12:00am']
];

// create the data store
var store = Ext.create('Ext.data.ArrayStore', {
fields: [
{name: 'company'},
{name: 'price', type: 'float'},
{name: 'change', type: 'float'},
{name: 'pctChange', type: 'float'},
{name: 'lastChange', type: 'date', dateFormat: 'n/j h:ia'}
],
data: myData
});



var btn = Ext.create('Ext.button.Button', {
text: 'create grid',
renderTo: 'div_btn',
handler: function(btn) {
if(Ext.getCmp('mygird')) {
alert('created');
}else{
Ext.create('Ext.grid.Panel', {
id:'mygird',
closable: true,
store: store,
stateful: true,
stateId: 'stateGrid',
columns: [
{
text : 'Company',
flex : 1,
sortable : false,
dataIndex: 'company'
},
{
text : 'Price',
width : 75,
sortable : true,
renderer : 'usMoney',
dataIndex: 'price'
},
{
text : 'Change',
width : 75,
sortable : true,
dataIndex: 'change'
},
{
text : '% Change',
width : 75,
sortable : true,
dataIndex: 'pctChange'
},
{
text : 'Last Updated',
width : 85,
sortable : true,
renderer : Ext.util.Format.dateRenderer('m/d/Y'),
dataIndex: 'lastChange'
}
],
height: 350,
width: 600,
title: 'Array Grid',
renderTo: 'div_gird'
});
}
}
})
});

when create and close grid some times, it will be like this that the sroller didn't be destroyed.
25815

burnie
23 Sep 2011, 12:14 AM
Ext version tested:

Ext 4.0.6

Browser versions tested against:

Chrome 14
FF 6

Description:

I found what looks like a leak in grid.Panel and narrowed it down to this example.
Increase of components and memory leak. I'm printing Ext4.ComponentMgr.all.length to the console a see an increase of 2 every time I run this. Memory footprint is also increasing.

Test Case:


var grid = Ext.create('Ext.grid.Panel', {
columns : []
});
grid.destroy();


Operating System:

Linux - Centos 5

burnie
23 Sep 2011, 12:54 AM
Looks like there are two

Ext.grid.Scroller

left behind after the destroy.

burnie
23 Sep 2011, 12:56 AM
Same issue.

http://www.sencha.com/forum/showthread.php?131468-INFOREQ-why-the-gridscroller-didn-t-destroy-when-the-grid-destroyed&

mdlincoln
26 Sep 2011, 2:45 PM
We have confirmed this issue and created a bug report for it.