[AC-4809] Windows Phone: App closing on refresh table data with setData
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-03-03T14:30:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | refresh, tableView, windows |
Reporter | Sandro Lain |
Assignee | Shak Hossain |
Created | 2017-02-21T10:00:34.000+0000 |
Updated | 2017-03-03T14:30:03.000+0000 |
Description
The application closes after calling a second time the method setData of a tableview.
*Console Log*
{noformat}
-- Start application log -----------------------------------------------------
[INFO] : Finished launching the application
[INFO] : start row creation
[INFO] : add row to table
[INFO] : end row creation
[INFO] : start row creation
[INFO] : add row to table
[INFO] : Disconnected from app
-- End application log -------------------------------------------------------
{noformat}
*Test code*
{noformat}
var win = Ti.UI.createWindow();
var tableView = Ti.UI.createTableView({
backgroundColor: 'transparent',
separatorStyle: Ti.UI.TABLE_VIEW_SEPARATOR_STYLE_NONE,
data: []
});
win.add(tableView);
function createRow()
{
console.log('start row creation');
var uid = (new Date()).getTime();
var row = Ti.UI.createTableViewRow({
height: Ti.UI.SIZE,
selectedBackgroundColor: '#FFFFFF',
layout: "vertical"
});
var label1 = Ti.UI.createLabel({
text: 'Test 1 ' + uid,
height: Ti.UI.SIZE,
font: {
fontSize: 20
},
textAlign: 'center'
});
row.add(label1);
var label2 = Ti.UI.createLabel({
text: 'Test 2 ' + uid,
height: Ti.UI.SIZE,
font: {
fontSize: 15
},
textAlign: 'center'
});
row.add(label2);
console.log('add row to table');
tableView.setData([row]);
console.log('end row creation');
}
win.addEventListener('open', function()
{
setInterval(createRow, 1000);
});
win.open();
{noformat}
Hello, We have tested this issue but not reproduce it as a bug. *Testing Environment:* Appcelerator Studio, build: 4.8.0.201611121409 SDK: 6.0.1.GA Appcelerator Command-Line Interface, version 6.1.0 Windows emulator: 8.1 WVGA 4 inch 512MB *Test Result:* App not closing but showing following log: -- Start application log ----------------------------------------------------- [INFO] : Finished installing the application [INFO] : Waiting for app to connect to log relay [INFO] : Finished launching the application [INFO] : start row creation [INFO] : add row to table [INFO] : end row creation [INFO] : start row creation [INFO] : add row to table [INFO] : end row creation [INFO] : start row creation [INFO] : add row to table [INFO] : end row creation [INFO] : start row creation [INFO] : add row to table [INFO] : end row creation [INFO] : start row creation [INFO] : add row to table Thanks
Hello, I found the problem in the SDK version 6.1.0.x and Windows Mobile 10, because I'm importing an app from iOS / Android with features found only in the branch 6.1.0 (TCP). I found several other issues in Jira were reported in the past as now corrected and marked FIXED. It seems to have been a regression in the SDK from different points, or simply the problems have recurred with the transition from Windows Mobile 8 to 10.
Hello, Please use the latest SDK 6.2.0.GA. The issue is not reproducible in our end. It would be helpful if you provide the links of other issues that you referenced. Always use the latest GA release of SDK's for your build.