{ "id": "81900", "key": "TIMOB-5855", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14157", "description": "Sprint 2012-20 API", "name": "Sprint 2012-20 API", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-21T07:58:52.000+0000", "created": "2011-10-24T15:07:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_emaildialog", "qe", "qe-testadded" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "13666", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "82068", "key": "TIMOB-5892", "fields": { "summary": "iOS: needs to handle thrown exceptions (revisiting)", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-03T10:45:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you try to open the emailDialog with animated true it crashes the app.\r\n\r\nStep 1: run the code below\r\nStep 2: click on the screen\r\nStep 3: see the app crash\r\nStep 4: remove '{animated:true}' from the open\r\nStep 5: run again\r\nStep 6: see the dialog open as it should\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'blue'\r\n});\r\n\r\nwin.addEventListener('click',function(e){\r\n\t// works fine with modal windows\r\n\t// var newWin = Ti.UI.createWindow({modal:true});\r\n\t// newWin.open({animated:false});\r\n\t\r\n\tvar email = Ti.UI.createEmailDialog();\r\n\temail.open({animated:true});\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n{code:title=crash log}\r\n[DEBUG] application booted in 89.347005 ms\r\n\r\n[ERROR] Invalid type passed to function. expected: __NSArrayM or nil, was: NSDictionary in -[TiUIEmailDialogProxy open:] (TiUIEmailDialogProxy.m:61)\r\n\r\n[ERROR] The application has crashed with an unhandled exception. Stack trace:\r\n\r\n\r\n\r\n0 CoreFoundation 0x0268d58c __exceptionPreprocess + 156\r\n\r\n1 libobjc.A.dylib 0x027e1313 objc_exception_throw + 44\r\n\r\n2 Test7 0x00114e57 TiExceptionThrowWithNameAndReason + 167\r\n\r\n3 Test7 0x000e3af4 -[TiProxy throwException:subreason:location:] + 260\r\n\r\n4 Test7 0x000d5753 -[TiUIEmailDialogProxy open:] + 627\r\n\r\n5 CoreFoundation 0x025fdc7d __invoking___ + 29\r\n\r\n6 CoreFoundation 0x025fdb51 -[NSInvocation invoke] + 145\r\n\r\n7 Test7 0x00059949 -[KrollMethod call:] + 3081\r\n\r\n8 Test7 0x00058379 KrollCallAsFunction + 665\r\n\r\n9 Test7 0x002a80a4 _ZN2TI16TiCallbackObjectINS_8TiObjectEE4callEPNS_10TiExcStateEPS1_NS_7TiValueERKNS_7ArgListE + 346\r\n\r\n10 Test7 0x002849e0 _ZN2TI11Interpreter14privateExecuteENS0_13ExecutionFlagEPNS_12RegisterFileEPNS_10TiExcStateEPNS_7TiValueE + 44554\r\n\r\n11 Test7 0x00288037 _ZN2TI11Interpreter7executeEPNS_18FunctionExecutableEPNS_10TiExcStateEPNS_10TiFunctionEPNS_8TiObjectERKNS_7ArgListEPNS_14ScopeChainNodeEPNS_7TiValueE + 825\r\n\r\n12 Test7 0x00297265 _ZN2TI10TiFunction4callEPNS_10TiExcStateENS_7TiValueERKNS_7ArgListE + 129\r\n\r\n13 Test7 0x002569a3 _ZN2TI4callEPNS_10TiExcStateENS_7TiValueENS_8CallTypeERKNS_8CallDataES2_RKNS_7ArgListE + 91\r\n\r\n14 Test7 0x002a6696 TiObjectCallAsFunction + 373\r\n\r\n15 Test7 0x000624ed -[KrollObject triggerEvent:withObject:thisObject:] + 701\r\n\r\n16 Test7 0x00054461 -[KrollEvent invoke:] + 145\r\n\r\n17 Test7 0x000531bf -[KrollContext invoke:] + 223\r\n\r\n18 Test7 0x00051d87 -[KrollContext main] + 4743\r\n\r\n19 Foundation 0x0074ccf4 -[NSThread main] + 81\r\n\r\n20 Foundation 0x0074cc80 __NSThread__main__ + 1387\r\n\r\n21 libSystem.B.dylib 0x9493b259 _pthread_start + 345\r\n\r\n22 libSystem.B.dylib 0x9493b0de thread_start + 34\r\n\r\n\r\n\r\n\r\n\r\n2011-10-24 16:00:09.951 Test7[32352:5d03] *** Terminating app due to uncaught exception 'org.test7.TiUIEmailDialogProxy', reason: 'Invalid type passed to function. expected: __NSArrayM or nil, was: NSDictionary in -[TiUIEmailDialogProxy open:] (TiUIEmailDialogProxy.m:61)'\r\n\r\n*** Call stack at first throw:\r\n\r\n(\r\n\r\n\t0 CoreFoundation 0x0268d5a9 __exceptionPreprocess + 185\r\n\r\n\t1 libobjc.A.dylib 0x027e1313 objc_exception_throw + 44\r\n\r\n\t2 Test7 0x00114e57 TiExceptionThrowWithNameAndReason + 167\r\n\r\n\t3 Test7 0x000e3af4 -[TiProxy throwException:subreason:location:] + 260\r\n\r\n\t4 Test7 0x000d5753 -[TiUIEmailDialogProxy open:] + 627\r\n\r\n\t5 CoreFoundation 0x025fdc7d __invoking___ + 29\r\n\r\n\t6 CoreFoundation 0x025fdb51 -[NSInvocation invoke] + 145\r\n\r\n\t7 Test7 0x00059949 -[KrollMethod call:] + 3081\r\n\r\n\t8 Test7 0x00058379 KrollCallAsFunction + 665\r\n\r\n\t9 Test7 0x002a80a4 _ZN2TI16TiCallbackObjectINS_8TiObjectEE4callEPNS_10TiExcStateEPS1_NS_7TiValueERKNS_7ArgListE + 346\r\n\r\n\t10 Test7 0x002849e0 _ZN2TI11Interpreter14privateExecuteENS0_13ExecutionFlagEPNS_12RegisterFileEPNS_10TiExcStateEPNS_7TiValueE + 44554\r\n\r\n\t11 Test7 0x00288037 _ZN2TI11Interpreter7executeEPNS_18FunctionExecutableEPNS_10TiExcStateEPNS_10TiFunctionEPNS_8TiObjectERKNS_7ArgListEPNS_14ScopeChainNodeEPNS_7TiValueE + 825\r\n\r\n\t12 Test7 0x00297265 _ZN2TI10TiFunction4callEPNS_10TiExcStateENS_7TiValueERKNS_7ArgListE + 129\r\n\r\n\t13 Test7 0x002569a3 _ZN2TI4callEPNS_10TiExcStateENS_7TiValueENS_8CallTypeERKNS_8CallDataES2_RKNS_7ArgListE + 91\r\n\r\n\t14 Test7 0x002a6696 TiObjectCallAsFunction + 373\r\n\r\n\t15 Test7 0x000624ed -[KrollObject triggerEvent:withObject:thisObject:] + 701\r\n\r\n\t16 Test7 0x00054461 -[KrollEvent invoke:] + 145\r\n\r\n\t17 Test7 0x000531bf -[KrollContext invoke:] + 223\r\n\r\n\t18 Test7 0x00051d87 -[KrollContext main] + 4743\r\n\r\n\t19 Foundation 0x0074ccf4 -[NSThread main] + 81\r\n\r\n\t20 Foundation 0x0074cc80 __NSThread__main__ + 1387\r\n\r\n\t21 libSystem.B.dylib 0x9493b259 _pthread_start + 345\r\n\r\n\t22 libSystem.B.dylib 0x9493b0de thread_start + 34\r\n\r\n)\r\n\r\nterminate called after throwing an instance of 'NSException'\r\n\r\n[DEBUG] App Spec: specified by path /Users/jalter/Documents/Titanium Studio Workspace2/Test7/build/iphone/build/Debug-iphonesimulator/Test7.app\r\n[DEBUG] SDK Root: path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk version=4.3 name=Simulator - iOS 4.3\r\n[DEBUG] using device family iphone\r\n[DEBUG] Session started\r\n[DEBUG] Session did end with error (null)\r\n[INFO] Application has exited from Simulator\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: emailDialog crashes if opened with animated:false", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.8.0.v20111021183017\r\niOS Simulator 4.3", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "207860", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.1GA on the iOS simulator, issue still reproducible.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-07-16T15:41:55.000+0000", "updated": "2012-07-16T15:41:55.000+0000" }, { "id": "221709", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed on master by https://github.com/appcelerator/titanium_mobile/pull/3060", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-02T05:17:18.000+0000", "updated": "2012-10-02T05:17:18.000+0000" }, { "id": "229791", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.v20121130200208 with iPhone 4 5.1.1\r\n\r\n", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T05:31:09.000+0000", "updated": "2012-12-04T05:31:09.000+0000" }, { "id": "258955", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T07:52:06.000+0000", "updated": "2013-06-21T07:52:06.000+0000" }, { "id": "258956", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.2.v20130619101604\r\nAppcelerator Studio: 3.1.1.201306131423\r\nOS: OSX 10.7.5\r\nDevice:iPad mini(v 6.0), Google nexus(v 4.0)\r\nXcode: 4.6", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T07:58:52.000+0000", "updated": "2013-06-21T07:58:52.000+0000" }, { "id": "282097", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "anvil test case added.\nPR link:\nhttps://github.com/appcelerator/titanium_mobile/pull/5053", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-03T10:45:33.000+0000", "updated": "2013-12-03T10:45:33.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }