Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19078] Windows: TableView.setData throws Catastrophic Failure exception

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-06-26T13:38:14.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
LabelsWindows
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-06-26T05:46:43.000+0000
Updated2015-06-29T20:52:46.000+0000

Description

TableView.setData crashes when it is updated through click event. It does not cause issue when it is set at constructor parameter.
var win = Ti.UI.createWindow({layout:'vertical'});

var button = Ti.UI.createButton({title:'Add'});
var tableData = [{ title: 'Apples' }, { title: 'Bananas' }, { title: 'Carrots' }, { title: 'Potatoes' }];

var table = Ti.UI.createTableView({/* data:tableData */});

button.addEventListener('click', function () {
    table.setData(tableData);
});
win.add(button);
win.add(table);
win.open();

Comments

  1. Kota Iguchi 2015-06-26

    https://github.com/appcelerator/titanium_mobile_windows/pull/330
  2. Lokesh Choudhary 2015-06-29

    Verified the fix. TableView.setData does not crash the app when its set in an eventlistener. Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150629101857 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1

JSON Source