Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13036] iOS: Application Error setting data with object at app.js

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-12T23:05:55.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06
ComponentsiOS
Labelsapi, core, ios, qe-testadded, regression
ReporterOlga Romero
AssigneeVishal Duggal
Created2013-03-12T18:12:26.000+0000
Updated2014-06-19T12:43:42.000+0000

Description

Testing module TableView I ran in to issue that iOS Simulator launches with an application error.(See attached) It applies to iOS device as well. Android works fine. *regression* works in 3.0.2.GA *Note*: 3.1.0.v20130311190952 - fails 3.1.0.v20130312015656 - fails 3.1.0.v20130311151655 - works Test steps: Run the following code:
var win = Titanium.UI.createWindow();

var data = [
{title:'Smoke_Sample', hasChild:true, level:"smoke"}
]
var tableView = Ti.UI.createTableView();

tableView.setData(data);

win.add(tableView);
win.open();
Actual result: [ERROR] :  Script Error { [ERROR] :   backtrace = "#0 () at :0"; [ERROR] :   line = 8; [ERROR] :   message = "invalid method 'setData:withObject:'"; [ERROR] :   sourceId = 316725760; [ERROR] :   sourceURL = "file://localhost/Users/oromero/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/CA47C5F2-C01C-48A5-9E11-06863A18B9A8/getwell.app/app.js"; [ERROR] :  } Expected result: App should launch with no error

Attachments

FileDateSize
fail.txt2013-03-12T18:12:26.000+0000205097
iOS Simulator Screen shot Mar 12, 2013 10.31.00 AM.png2013-03-12T18:12:26.000+000032813

Comments

  1. Vishal Duggal 2013-03-12

    Fixed by https://github.com/appcelerator/titanium_mobile/pull/3958
  2. Olga Romero 2013-03-12

    Thanks Vishal:) Verified fix with: Titanium Studio, build: 3.0.3.201302201202 Titanium SDK, build: 3.1.0.v20130312145716 ios 6.1 Simulator iPhone5 iOS 6.1.2

JSON Source