{ "id": "151205", "key": "TIMOB-19528", "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": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-23T23:53:36.000+0000", "created": "2015-09-16T01:12:58.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.0.0" ], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "49440", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152241", "key": "TIMOB-19760", "fields": { "summary": "iOS: Enabled main thread produces unexpected behavior", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49439", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152246", "key": "TIMOB-19762", "fields": { "summary": "iOS Debugger/profiler fails when run-on-main-thread is enabled", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T17:02:19.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" }, { "id": "10207", "name": "Tooling" } ], "description": "*Details:* If you try to debug your app on device, the app will crash on launch. If you try to debug your app on device again, then the build will fail to install to device all together.\r\n\r\n*Steps to reproduce:*\r\n# Create the default Alloy app from Studio\r\n# Add a breakpoint on line 2 in the index.js file\r\n# Next, debug your app to device\r\n# Once the app is installed, try to launch the app\r\n*Actual:* The app will crash on launch:\r\n{code}\r\nThread 0 name: Dispatch queue: com.apple.main-thread\r\nThread 0 Crashed:\r\n0 CoreFoundation 0x0000000184779bec CFRelease + 1128\r\n1 monkeyBuggy 0x000000010030d8fc +[TiDebuggerDiscovery currentWiFiName] + 344\r\n2 monkeyBuggy 0x000000010030d8fc +[TiDebuggerDiscovery currentWiFiName] + 344\r\n3 monkeyBuggy 0x000000010030cb0c -[TiDebuggerDiscovery startWithKey:hosts:resultBlock:] + 188\r\n4 monkeyBuggy 0x00000001001787ec __TiThreadPerformOnMainThread_block_invoke (TiBase.m:284)\r\n5 monkeyBuggy 0x0000000100178bf8 TiThreadProcessPendingMainThreadBlocks (TiBase.m:395)\r\n6 monkeyBuggy 0x00000001001789f8 __TiThreadPerformOnMainThread_block_invoke214 (TiBase.m:323)\r\n7 libdispatch.dylib 0x0000000199b0184c _dispatch_call_block_and_release + 24\r\n8 libdispatch.dylib 0x0000000199b0180c _dispatch_client_callout + 16\r\n9 libdispatch.dylib 0x0000000199b06e9c _dispatch_main_queue_callback_4CF + 1844\r\n10 CoreFoundation 0x0000000184850d90 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12\r\n11 CoreFoundation 0x000000018484ebf8 __CFRunLoopRun + 1628\r\n12 CoreFoundation 0x000000018477d8a0 CFRunLoopRunSpecific + 384\r\n13 GraphicsServices 0x000000018f7d8088 GSEventRunModal + 180\r\n14 UIKit 0x0000000189e120d4 UIApplicationMain + 204\r\n15 monkeyBuggy 0x000000010005b72c main (main.m:37)\r\n16 libdyld.dylib 0x0000000199b328b8 start + 4\r\n{code}\r\n# Delete the app and try to debug your app to device again\r\n*Actual:* Build will fail with the following error:\r\n{code}\r\n[INFO] : Installing app on device: Eric's 6\r\n[ERROR] : An error occurred during build after 18s 731ms\r\n[ERROR] : Failed to copy app to device (0xe8000005)\r\n[ERROR] : For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.\r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/eric/.appcelerator/install/5.0.0-55/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)\r\n at ChildProcess.emit (events.js:117:20)\r\n at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\n{code}\r\n\r\n*Expected:* You should be able to debug your app onto device without any issues.", "attachment": [ { "id": "56726", "filename": "monkeyBuggy 9-15-15, 5-11 PM.crash", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-16T01:12:56.000+0000", "size": 42634, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: Debugging your app onto device will crash on launch and fail on subsequent builds", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.3.0.201509151348\r\nAppc CLI NPM: 4.2.0-8\r\nAppc CLI Core: 5.0.0-55\r\nArrow: 1.2.48\r\nSDK: 5.0.0.v20150915162307\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.5)\r\nXcode: 7 GM Seed\r\nDevice: iphone 6 plus (9.0)", "closedSprints": [ { "id": 485, "state": "closed", "name": "2015 Sprint 19 SDK", "startDate": "2015-09-12T00:30:29.539Z", "endDate": "2015-09-26T00:30:00.000Z", "completeDate": "2015-09-28T02:29:14.458Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "364036", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "debugger PR: https://github.com/appcelerator/titanium_debugger/pull/37\r\ntimob 5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7194\r\ntimob master PR: https://github.com/appcelerator/titanium_mobile/pull/7195", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-16T05:54:15.000+0000", "updated": "2015-09-16T06:03:52.000+0000" }, { "id": "364051", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-16T07:52:12.000+0000", "updated": "2015-09-16T07:52:12.000+0000" }, { "id": "364120", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified fixed, cannot reproduce the error. Able to debug the default Alloy app to device without issue, even after deleting the app and running the debug again. \r\n\r\nAppcelerator Studio, build: 4.3.0.201509140942\r\nAppc CLI NPM: 4.2.0-8 \r\nAppc CLI Core: 5.0.0 \r\nSDK: 5.0.0.v20150915230722\r\nNode: v0.10.38 \r\nOS: Yosemite (10.10.5) \r\nXcode: 7 GM Seed \r\nDevice: iphone 6 plus (8.3)", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-09-16T21:30:31.000+0000", "updated": "2015-09-16T21:30:31.000+0000" }, { "id": "367709", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening as this appears to be happening again. I just encountered this error (same output/errors) using:\r\n\r\nMacOS 10.11.1 (15B42)\r\nStudio 4.4.0.201510231805\r\nTi SDK 5.1.0.v20151022152020\r\nAppc NPM \r\nAppc CLI 5.1.0-38\r\nTi CLI 5.0.5\r\nAlloy 1.7.16\r\nArrow 1.3.13\r\nXcode 7.1 (7B91b)\r\nNode v0.12.7\r\nJava 1.7.0_80\r\nproduction\r\n\r\n{code}\r\n[INFO] : debugtest/1.0 (0.0.0.442676a)\r\n[INFO] : -[KrollContext contextId]: unrecognized selector sent to instance 0x1380364b0\r\n[INFO] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[KrollContext contextId]: unrecognized selector sent to instance 0x1380364b0'\r\n[INFO] : *** First throw call stack:\r\n[INFO] : (0x186288f48 0x19ae3bf80 0x18628fc5c 0x18628cc00 0x186190cac 0x100336a00 0x10009dc8c 0x10009d214 0x19b6596e8 0x19b6596a8 0x19b65edb0 0x1862401f8 0x18623e060 0x18616cca0 0x1913a8088 0x18b884ffc 0x10007da8c 0x19b68a8b8)\r\n{code}\r\n\r\nHowever, setting false will allow you to debug your app as intended.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-23T23:30:10.000+0000", "updated": "2015-10-23T23:46:24.000+0000" }, { "id": "367718", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Once TIMOB-19760 is merged, this default behavior will be to run off the main thread by default.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-23T23:53:36.000+0000", "updated": "2015-10-23T23:53:36.000+0000" }, { "id": "414212", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T17:02:19.000+0000", "updated": "2017-03-21T17:02:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }