{ "id": "154515", "key": "TIMOB-20283", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-01-31T05:33:37.000+0000", "created": "2016-01-26T14:37:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.2.0", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-02-02T22:20:30.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": "The new version of FB module 5.0.0 crashes on iOS 8.4\r\n\r\nWhen the module is connected as described (app id and everything), and there is only a require and no other fb-related javascript code, the app crashes on resume on iOS 8.4. On iOS 9, it does not happen. \r\n\r\nFrom what I have figured out, the crash source is in this line: \r\n{code:objc}\r\nNSString* annotation = [launchOptions objectForKey:UIApplicationOpenURLOptionsAnnotationKey];\r\n{code}\r\n\r\nUpdate: as it has been proven yesterday, mysterious crashes on startup on the device of my coworker were also due to this bug. After I wrapped it into \"version more than 9.0\" statement, the crashes were fixed", "attachment": [], "flagged": false, "summary": "Facebook iOS Module 5.0.0 crashes on resume on iOS 8.4", "creator": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.4", "closedSprints": [ { "id": 580, "state": "closed", "name": "2016 Sprint 3 SDK", "startDate": "2016-01-30T01:31:48.991Z", "endDate": "2016-02-13T01:31:00.000Z", "completeDate": "2016-02-15T05:32:40.725Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "375425", "author": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, I have this issue ongoing as well (duplicate ticket - now closed). Crashes with Seg Fault 11 when this occurs (log is from iOS system level):\r\n\r\n{code}\r\nJan 27 15:15:35 computer com.apple.CoreSimulator.SimDevice.39126AA9-9E22-4A0E-ADCC-3F148A3F0994.launchd_sim[6823] (UIKitApplication:ca.XXXXX.m[0xd21][7153]): Service exited due to signal: Segmentation fault: 11\r\n{code}\r\n", "updateAuthor": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T14:26:03.000+0000", "updated": "2016-01-28T14:26:20.000+0000" }, { "id": "375431", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "May I know which Ti SDK Version is being used?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T17:10:22.000+0000", "updated": "2016-01-28T17:10:22.000+0000" }, { "id": "375432", "author": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've made a pull request regarding this here:\r\nhttps://github.com/appcelerator-modules/ti.facebook/pull/41\r\nIt fixed it at least in my specific use case (using the module for login + share on iOS 8, 9). \r\nThe webpage to sign the Appcelerator CLA doesn't work for me somehow. \r\n\r\nEDIT: Ti SDK 5.1.2", "updateAuthor": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T17:11:32.000+0000", "updated": "2016-01-28T17:12:03.000+0000" }, { "id": "375433", "author": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, I used the latest SDK, 5.1.2\r\n\r\n------\r\nMy quick fix is dumb, this is why I did not make any pull request. \r\n\r\nI am not 100% sure what information comes in the \"annotation\" string, so I just skipped that statement for IOS less than 9.0, and it just works (so that my app does not crash right now in this release)\r\nWe only use statistics from FB, and it does send install statistics even without annotation. \r\n\r\n{code:ObjectiveC}\r\n#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:(v) options:NSNumericSearch] != NSOrderedAscending)\r\n{code}\r\n\r\n{code:ObjectiveC}\r\nNSString *annotation;\r\n if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@\"9.0\")) {\r\n annotation = [launchOptions objectForKey:UIApplicationOpenURLOptionsAnnotationKey];\r\n NSLog(@\"[DEBUG] annotation is not nil\");\r\n }\r\n{code}", "updateAuthor": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T17:14:37.000+0000", "updated": "2016-01-28T17:14:37.000+0000" }, { "id": "375435", "author": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The CLA works in the incognito window, there is some bug with browser cache", "updateAuthor": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T17:19:32.000+0000", "updated": "2016-01-28T17:19:32.000+0000" }, { "id": "375436", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Sorry about the CLA issue. We are looking into that. And thanks for the PR! will take a look!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T17:20:32.000+0000", "updated": "2016-01-28T17:20:32.000+0000" }, { "id": "375437", "author": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "About pull request. \r\nI am not Appc employee, but I kinda object to replacing a constant with a string of the same name. \r\nIt was not crashing on 9.x, and unless the constant is equal to a string on 9.x (which I don't know, I did not find any such information in the docs), it is going to lose the information from annotation variable on 9.x\r\n\r\nWrap it into statement that it's only for the systems lesser than 9.x please", "updateAuthor": { "name": "annakozy@direcciona.me", "key": "annakozy@direcciona.me", "displayName": "Ganna Kozynenko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T17:26:38.000+0000", "updated": "2016-01-28T17:27:17.000+0000" }, { "id": "375438", "author": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That sounds like a good idea, I'll do that now. ", "updateAuthor": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-28T17:29:56.000+0000", "updated": "2016-01-28T17:29:56.000+0000" }, { "id": "375528", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! I cherry-picked the community PR of [~adipa] because of continuing problems with the CLA server.\r\n\r\nPR (appcelerator_modules/ti.facebook): https://github.com/appcelerator-modules/ti.facebook/pull/42\r\nPR (titlanium_mobile/master): https://github.com/appcelerator/titanium_mobile/pull/7650\r\nPR (titlanium_mobile/5_2_X): https://github.com/appcelerator/titanium_mobile/pull/7651", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-01-30T20:18:12.000+0000", "updated": "2016-01-30T20:44:43.000+0000" }, { "id": "375532", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] cool. go ahead to merge and resolve.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-30T23:17:45.000+0000", "updated": "2016-01-30T23:17:45.000+0000" }, { "id": "375533", "author": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the taking the time out of your weekends to look into this. Appreciate it very much. ", "updateAuthor": { "name": "adipa", "key": "adipa", "displayName": "Adipa Wijayathilaka", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-30T23:21:22.000+0000", "updated": "2016-01-30T23:21:22.000+0000" }, { "id": "375641", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, Facebook Module 5.0.1 with the latest SDK {{5.2.0.v20160131224748}} no longer crashes on iOS 8.4 Devices.\r\n\r\niPhone 6s Plus Device (9.2) & iPhone 6 Plus Device (8.4) \r\nMac OSX El Capitan 10.11 (15A284)\r\nTi SDK: 5.2.0.v20160131224748\r\nAppc Studio: 4.5.0.201601262138\r\nAppc NPM: 4.2.3-1\r\nApp CLI: 5.2.0-238\r\nXcode 7.2\r\nNode v4.2.3\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-01T21:47:22.000+0000", "updated": "2016-02-01T21:47:22.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }