{ "id": "79880", "key": "TIMOB-5180", "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": "12080", "description": "", "name": "Sprint 2011-40", "archived": true, "released": true, "releaseDate": "2011-10-10" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-10-03T18:57:13.000+0000", "created": "2011-08-31T10:51:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:29.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 pass Ti.API.info() a window in when debugging, the app will crash. If you just run the app in the simulator without debugging it works as expected and does not crash.\r\n\r\nStep 1: run the code below in *debug* mode\r\nStep 2: notice the app crash\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:\"#fff\",\r\n title:\"My App\"\r\n});\r\nwin.open();\r\n\r\nTi.API.info(win);\r\n// Ti.API.info(\"win: \"+win);\r\n{code}\r\n\r\n{code:title=console}\r\n[ERROR] The application has crashed with an unhandled exception. Stack trace:\r\n\r\n0 CoreFoundation 0x025c758c __exceptionPreprocess + 156\r\n1 libobjc.A.dylib 0x0271b313 objc_exception_throw + 44\r\n2 CoreFoundation 0x025c90bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187\r\n3 CoreFoundation 0x02538966 ___forwarding___ + 966\r\n4 CoreFoundation 0x02538522 _CF_forwarding_prep_0 + 50\r\n5 Test2 0x00405227 -[TiDebugger log:level:] + 134\r\n6 Test2 0x00406cac TiDebuggerLogMessage + 69\r\n7 Test2 0x001433c6 -[APIModule logMessage:severity:] + 486\r\n8 Test2 0x001435b3 -[APIModule info:] + 147\r\n9 CoreFoundation 0x02537c7d __invoking___ + 29\r\n10 CoreFoundation 0x02537b51 -[NSInvocation invoke] + 145\r\n11 Test2 0x0004dcf9 -[KrollMethod call:] + 3081\r\n12 Test2 0x0004c79e KrollCallAsFunction + 542\r\n13 Test2 0x002d92b9 _ZN2TI16TiCallbackObjectINS_8TiObjectEE4callEPNS_10TiExcStateEPS1_NS_7TiValueERKNS_7ArgListE + 391\r\n14 Test2 0x002b657b cti_op_call_NotTiFunction + 299\r\n15 ??? 0x08fc0875 0x0 + 150734965\r\n16 Test2 0x00273502 _ZN2TI11Interpreter7executeEPNS_17ProgramExecutableEPNS_10TiExcStateEPNS_14ScopeChainNodeEPNS_8TiObjectEPNS_7TiValueE + 648\r\n17 Test2 0x00242f34 _ZN2TI8evaluateEPNS_10TiExcStateERNS_10ScopeChainERKNS_10SourceCodeENS_7TiValueE + 388\r\n18 Test2 0x002bd109 TiEvalScript + 297\r\n19 Test2 0x00042112 -[KrollBridge evalFileOnThread:context:] + 2082\r\n20 Test2 0x000496e7 -[KrollInvocation invoke:] + 135\r\n21 Test2 0x000475de -[KrollContext invokeOnThread:method:withObject:callback:selector:] + 286\r\n22 Test2 0x000418de -[KrollBridge evalFile:callback:selector:] + 126\r\n23 Test2 0x00041223 -[KrollBridge didStartNewContext:] + 2579\r\n24 Test2 0x0004626e -[KrollContext main] + 3214\r\n25 Foundation 0x008b6cf4 -[NSThread main] + 81\r\n26 Foundation 0x008b6c80 __NSThread__main__ + 1387\r\n27 libSystem.B.dylib 0x92170259 _pthread_start + 345\r\n28 libSystem.B.dylib 0x921700de thread_start + 34\r\n{code}\r\n\r\nh4. Workaround\r\nconcatenate the window with a string.\r\nTi.API.info(\"win: \"+win);\r\n\r\nh4. Associated Helpdesk Ticket\r\nhttP://appc.me/c/APP-794556", "attachment": [], "flagged": false, "summary": "iOS: Ti.API.info crashes if passed a window when debugging", "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.7.2\r\niOS Simulator 4.3", "comment": { "comments": [ { "id": "166020", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We are unable to recreate this problem if the project is created from 1.8 master.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-14T11:01:31.000+0000", "updated": "2011-09-14T11:01:31.000+0000" }, { "id": "166021", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is resolved if the app is created in 1.8.0.v20110908112549\r\nIt only happens if the project was originally created with 1.7.2.\r\nConfirmed resolved by creating a new project with 1.8.0.v20110908112549\r\n\r\nThis will not affect customers that create an app with 1.8.0.\r\nThis will affect customers that create an app with 1.7.2 (the current live sdk) even if they update to 1.8.0 (where the fix exists)\r\n\r\nh4. Updated steps to reproduce\r\nStep 1: create a project using 1.7.2\r\nStep 2: change the sdk to 1.8.x \r\nStep 3: In studio run the above example with debugging", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-14T11:05:45.000+0000", "updated": "2011-09-14T11:30:12.000+0000" }, { "id": "167720", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110928105812\nCan no longer reproduce this issue.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-03T18:57:13.000+0000", "updated": "2011-10-03T18:57:13.000+0000" }, { "id": "189294", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.0.0.201203291340\r\nTi Mobile SDK 2.0.0.v20120329191102 hash r1fbf18c4\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nCannot reproduce issue", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T10:07:01.000+0000", "updated": "2012-03-30T10:07:01.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }