{ "id": "174225", "key": "TIMOB-27459", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-15T14:22:05.000+0000", "created": "2019-10-07T20:47:27.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "engSchedule", "iOS" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-10-15T15:42:27.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": [], "description": "After upgrading to 8.2.0.GA.\r\n- App crashes as soon as I switch to Airplane mode\r\n- App crashes on app launch with same error\r\n\r\nTerminating app due to uncaught exception 'NSInvalidArgumentException'\r\n\r\nI have attached a sample app using geolocation. Code snipped is same as mentioned in documentation.\r\n\r\nThis is iOS app. This is always reproducible.\r\nXcode - 10.3\r\nnode - v10.16.3\r\n\r\nSame code \r\nworks fine if built with 8.0.1.GA\r\nCrashes if built with 8.2.0.GA\r\n\r\nAttached- \r\n1. Screen recording of crash\r\n2. Sample app project\r\n3. Sample app ipa\r\n\r\nCrash log:\r\n{code:java}\r\n\r\ndefault\t15:18:01.721620 -0500\tGeolocationCrash\t{\"msg\":\"delivering locations to client's delegate\", \"self\":\"0x2824b8680\", \"delegate\":\"0x155d072b0\"}\r\ndefault\t15:18:01.797652 -0500\tGeolocationCrash\t-[GeolocationModule fireEvent:withObject:errorCode:message:]: unrecognized selector sent to instance 0x155d072b0\r\ndefault\t15:18:01.797787 -0500\tGeolocationCrash\t[ERROR] Application received error: -[GeolocationModule fireEvent:withObject:errorCode:message:]: unrecognized selector sent to instance 0x155d072b0\r\n 0 CoreFoundation 0x00000001c2e649a0 8D0042D6-AED4-39A5-9EE6-10D9A4CCD8E3 + 1227168\r\n 1 libobjc.A.dylib 0x00000001c2b8d0a4 objc_exception_throw + 56\r\n 2 CoreFoundation 0x00000001c2d6843c 8D0042D6-AED4-39A5-9EE6-10D9A4CCD8E3 + 193596\r\n 3 CoreFoundation 0x00000001c2e68e08 8D0042D6-AED4-39A5-9EE6-10D9A4CCD8E3 + 1244680\r\n 4 CoreFoundation 0x00000001c2e6abec _CF_forwarding_prep_0 + 92\r\n 5 GeolocationCrash 0x0000000104f9888c GeolocationCrash + 346252\r\n 6 CoreLocation 0x00000001c5f8de0c CLClientStopVehicleHeadingUpdates + 72136\r\n 7 CoreLocation 0x00000001c5f774a4 CLClientInvalidate + 1400\r\n 8 CoreFoundation 0x00000001c2de2614 8D0042D6-AED<…>\r\ndefault\t15:18:01.797995 -0500\tGeolocationCrash\t*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GeolocationModule fireEvent:withObject:errorCode:message:]: unrecognized selector sent to instance 0x155d072b0'\r\n*** First throw call stack:\r\n(0x1c2e6498c 0x1c2b8d0a4 0x1c2d6843c 0x1c2e68e08 0x1c2e6abec 0x104f9888c 0x1c5f8de0c 0x1c5f774a4 0x1c2de2614 0x1c2de1db4 0x1c2ddd4ec 0x1c2ddc8bc 0x1ccc41328 0x1c6e716d4 0x104f48bd8 0x1c2c67460)\r\ndefault\t15:18:01.823594 -0500\tbackboardd\tConnection removed: IOHIDEventSystemConnection uuid:FB3D98B9-260A-414D-81A4-762AFAC211FD pid:1891 process:GeolocationCrash type:Passive entitlements:0x0 caller:BackBoardServices: + 380 attributes:{\r\n HighFrequency = 0;\r\n bundleID = \"com.svm.TMXFieldServTest\";\r\n pid = 1891;\r\n} inactive:0 events:0 mask:0x0\r\ndefault\t15:18:01.838460 -0500\tReportCrash\tcr_update: Parsing corpse data for process GeolocationCrash [pid 1891]\r\n\r\n{code}\r\n\r\n", "attachment": [ { "id": "67015", "filename": "Crash_ScreenRecording.mov", "author": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-07T20:45:32.000+0000", "size": 7377180, "mimeType": "video/quicktime" }, { "id": "67013", "filename": "GeolocationCrash_8.2.ipa", "author": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-07T20:46:01.000+0000", "size": 9146579, "mimeType": "application/octet-stream" }, { "id": "67016", "filename": "GeolocationCrash 10-7-19, 5-08 PM.crash", "author": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-07T22:11:05.000+0000", "size": 68615, "mimeType": "application/octet-stream" }, { "id": "67014", "filename": "GeolocationCrashSampleAppCode.zip", "author": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-07T20:45:52.000+0000", "size": 5710506, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: App crashes when error happens in fetching location", "creator": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1168, "state": "closed", "name": "2019 Sprint 21", "startDate": "2019-10-07T18:35:57.052Z", "endDate": "2019-10-20T18:35:00.000Z", "completeDate": "2019-10-21T15:38:00.182Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "451881", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you please share the trace log of the crash? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-10-07T21:43:37.000+0000", "updated": "2019-10-07T21:43:37.000+0000" }, { "id": "451885", "author": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't see any track logs in IDE after crash - I exported crash log from xcode - please check if this is what you want.\r\n\r\n [^GeolocationCrash 10-7-19, 5-08 PM.crash] ", "updateAuthor": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-07T22:11:22.000+0000", "updated": "2019-10-07T22:11:22.000+0000" }, { "id": "451925", "author": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "just checking, is it being looked into?", "updateAuthor": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-09T16:02:51.000+0000", "updated": "2019-10-09T16:02:51.000+0000" }, { "id": "451938", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Case - \r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow();\r\nvar btn = Ti.UI.createButton({\r\n title: 'Show Location'\r\n});\r\n\r\nbtn.addEventListener('click', function() { \r\n Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_HIGH;\r\n var whenInUsePermission = Ti.Geolocation.hasLocationPermissions(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE);\r\n\tvar alwaysPermission = Ti.Geolocation.hasLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS);\r\n if (whenInUsePermission || alwaysPermission) {\r\n getLocation();\r\n } else {\r\n Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e) {\r\n if (e.success) {\r\n getLocation();\r\n } else {\r\n alert('could not obtain location permissions');\r\n }\r\n });\r\n }\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n\r\nfunction getLocation() {\r\n Ti.Geolocation.addEventListener('location', function(e) {\r\n alert(JSON.stringify(e, null, 2));\r\n });\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-09T20:00:10.000+0000", "updated": "2019-10-09T20:00:10.000+0000" }, { "id": "451939", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11273", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-09T20:11:53.000+0000", "updated": "2019-10-09T20:11:53.000+0000" }, { "id": "452026", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "FR: Passed. I have confirmed that this issue affects > iOS 12. This does not affect < iOS 12. PR Merged.\r\n\r\n*Test Environment*\r\nStudio Ver: 5.1.4.201909061933\r\nSDK Ver: 8.3.0 (PR-11273)\r\nOS Ver: 10.14.6\r\nXcode Ver: Xcode 11.1\r\nAppc NPM: 4.2.15\r\nAppc CLI: 7.1.1\r\nAlloy Ver: 1.14.1\r\nNode Ver: 10.16.3\r\nNPM Ver: 6.11.3\r\nDevices: iPhone 7 (iOS 13), iPhone 6 (iOS 12), iPhone 6 (iOS 11)\r\n", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-10-14T11:37:04.000+0000", "updated": "2019-10-14T11:37:04.000+0000" }, { "id": "452061", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "Verified with build: 8.3.0.v20191015062903.\r\n\r\nTicked closed.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-10-15T14:21:52.000+0000", "updated": "2019-10-15T14:21:52.000+0000" }, { "id": "452068", "author": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks", "updateAuthor": { "name": "suhas.kumbhar", "key": "suhas.kumbhar", "displayName": "suhas.kumbhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-15T15:42:27.000+0000", "updated": "2019-10-15T15:42:27.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }