Skip to content

Crashing in connectionStatus() on app start #290

Closed
@tristan-warner-smith

Description

@tristan-warner-smith

Describe the bug
On app start we're getting crashes pointing to the segment library.
The Xcode crash logger seems to show two parallel calls in different threads to AppleUtils.connectionStatus() referencing an unsafe pointer.

To Reproduce
Steps to reproduce the behavior:

  1. Start app
  2. Dispatch analytics events
  3. See error

Expected behavior
No crashes

Screenshots
If applicable, add screenshots to help explain your problem.
The two concurrent calls:
Screenshot 2024-01-25 at 09 52 25
Screenshot 2024-01-25 at 09 53 39

Stack traces of other Segment threads:
Screenshot 2024-01-25 at 09 48 22

Screenshot 2024-01-25 at 09 44 03 Screenshot 2024-01-25 at 09 49 02

Platform (please complete the following information):

  • Library Version in use: 1.4.8
  • Platform being tested: iOS
  • Integrations in use: Firebase, TwilioEngage

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions