analytics-ios
analytics-ios copied to clipboard
App freeze on first launch
On the first launch of my app (after reinstall as well), it would freeze immediately at the start and crash after a few seconds. Reopening it would have no issues.
After long debugging hours, I found out that it is caused by this library. By simply disabling code that initializes and uses Segment.Analytics
the issue does not occur anymore.
The reproduction rate is at 100%. Interestingly, it is not reported by Crashlytics or Bugsnag.
I also noticed there is a network request to https://cdn-settings.segment.com, only at the first launch. The request never completes. Not sure if it is related to the issue, but seems weird.
This is a critical issue for us, as every user who installs the app, experiences a crash at the first launch!
Please advise a quick fix if possible, and have a look into the problem.
Thanks!
We're encountering the same issue: the app can be killed by the OS watchdog because of a lock in the Segment SDK.
We also recovered crash logs from user devices showing this issue. It does not show up in usual crash reporting tools because of the nature of the crash:
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<co.dance.rider>:787 exhausted real (wall clock) time allowance of 19.83 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 50.410 (user 50.410, system 0.000), 42% CPU", | "Elapsed application CPU time (seconds): 0.127, 0% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Running the SDK version 4.1.3
Looks like this was reported before: https://github.com/segmentio/analytics-ios/issues/1008