Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4809] Windows Phone: App closing on refresh table data with setData

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-03-03T14:30:03.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsrefresh, tableView, windows
ReporterSandro Lain
AssigneeShak Hossain
Created2017-02-21T10:00:34.000+0000
Updated2017-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}

Comments

  1. Mostafizur Rahman 2017-02-24

    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
  2. Sandro Lain 2017-02-28

    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.
  3. Sharif AbuDarda 2017-03-01

    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.

JSON Source