Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14988] iOS: Error when opening a modal window : "NSCFString charValue: unrecognized selector"

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-08-29T23:33:42.000+0000
Affected Version/sRelease 3.1.3
Fix Version/s2013 Sprint 18, 2013 Sprint 18 API, Release 3.1.3, Release 3.2.0
ComponentsiOS
Labelsqe-3.1.3, qe-closed-3.1.3, regression
ReporterFederico Casali
AssigneeVishal Duggal
Created2013-08-28T21:29:43.000+0000
Updated2013-08-30T17:43:12.000+0000

Description

Update

The issue is related to the fact the opened window is modal. Attached a small sample code showing the issue.

Problem description

'Journal' Alloy sample app (https://github.com/appcelerator/alloy/tree/master/test/apps/models/journal) is throwing an exception on iOS when using TiSDK 3.1.3 (tested using latest 3.1.3.v20130828104626). On Android it works as expected. The issue seems to be reproducible only using 3.1.3SDK - Alloy version is the latest GA. Using TiSDK 3.1.2.GA and Alloy 1.2.1.GA it works as expected on iOS.

Steps to reproduce

1. Grab the Alloy model sample 'Journal' (attached the whole project). 2. Run on device or emulator (tested on a Iphone 5 with iOS 6.1.4 and on iPhone simulator version 6.0/Xcode4.6 and 7.0/Xcode5) 3. Run the app and click on the 'add entry' button Result: Application Error red-screen is shown (see screenshot). Error log:
[ERROR] :  Script Error {
[ERROR] :      backtrace = "#0 () at file://localhost/Users/fcasali/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/F238416E-57EC-47D8-AD43-C6E3CBDFC826/Harness.app/alloy.js:214\n#1 addEntry() at file://localhost/Users/fcasali/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/F238416E-57EC-47D8-AD43-C6E3CBDFC826/Harness.app/alloy/controllers/index.js:37";
[ERROR] :      line = 50;
[ERROR] :      message = "-[__NSCFString charValue]: unrecognized selector sent to instance 0x149583e0";
[ERROR] :      sourceId = 309899040;
[ERROR] :      sourceURL = "file://localhost/Users/fcasali/Library/Application%20Support/iPhone%20Simulator/6.1/Applications/F238416E-57EC-47D8-AD43-C6E3CBDFC826/Harness.app/alloy/controllers/add.js";
[ERROR] :  }
Full log attached.

Attachments

FileDateSize
iOS_journalApp_log2013-08-28T21:29:43.000+0000208554
ios7_modalWinIssue.zip2013-08-29T18:40:16.000+00005830411
Screen Shot 2013-08-28 at 2.16.46 PM.png2013-08-28T21:29:43.000+000043384

Comments

  1. Vishal Duggal 2013-08-29

    master - https://github.com/appcelerator/titanium_mobile/pull/4625 3_1_X - https://github.com/appcelerator/titanium_mobile/pull/4626

JSON Source