Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26854] iOS: Crash when handling user-activies

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-06-14T22:17:12.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.1.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeVijay Singh
Created2019-02-23T19:24:19.000+0000
Updated2019-06-14T22:17:12.000+0000

Description

When trying to handle user activities, the app experiences a hard crash because the underlaying completion handler passed to the NSOrderedSet is GC'd due to a memory leak. It can be fixed by properly copy'ing the completion handler. I scanned other parts of the SDK where this can happen and fixed some more cases as well. I also fixed some duplicate method definitions / leftovers from the SDK 8 Swift support migration.

Comments

  1. Hans Knöchel 2019-02-23

    Pull: https://github.com/appcelerator/titanium_mobile/pull/10725 Test-Case: Run any app that uses handoff / UserActivity API's, like described [here](https://wiki.appcelerator.org/display/guides2/Handoff+User+Activities).
  2. Hans Knöchel 2019-05-02

    [~vijaysingh] Is there a chance to get this merged into master / 8.1.0 soon? It's approved already and would need to be manually patched on every SDK update right now.
  3. Satyam Sekhri 2019-05-21

    FR passed. No crash observed during handoff. Tested between three devices one iOS 9 and two iOS 12 device. Also tested the handoff immediately after launch on first device and after a while. No crash observed.
  4. Satyam Sekhri 2019-06-14

    Verified on: Mac OS 10.14.3 Ti SDK: 8.1.0.v20190611140242 Appc CLI: 7.0.11 Node: 10.13.0 XCode: 10.2.1

JSON Source