sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Crash in `SentryConnectivityCallback`

Open sindresorhus opened this issue 8 months ago • 1 comments

Platform

macOS

Environment

Production

Installed

Swift Package Manager

Version

8.50.1

Xcode Version

16.4

Did it work on previous versions?

No response

Steps to Reproduce

Happened to an unknown user, not me.

Crash report: https://sindresorhus.sentry.io/share/issue/ef101484202b4a57ab3977994b19e973/

Expected Result

Expected Sentry SDK to never cause a crash.

Actual Result

Crashed

Are you willing to submit a PR?

No response

sindresorhus avatar Jun 17 '25 11:06 sindresorhus

Thanks for reporting this @sindresorhus. I see a few occurences of this in our internal SDK crash detection. I'm unsure what causes this.

It makes sense to switch to using NWPathMonitor instead of checking the SCNetworkReachabilityFlags as also pointed out here https://github.com/getsentry/sentry-cocoa/issues/4488, before fixing this issue.

philipphofmann avatar Jun 18 '25 14:06 philipphofmann