Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in SentryMetricProfiler.recordCPUsage #4581

Open
philipphofmann opened this issue Nov 27, 2024 · 0 comments
Open

Fix crash in SentryMetricProfiler.recordCPUsage #4581

philipphofmann opened this issue Nov 27, 2024 · 0 comments

Comments

@philipphofmann
Copy link
Member

Description

The SDK sometimes crashes with NSInvalidArgumentException in SentryMetricProfiler.recordCPUsage.

Exception Type: EXC_CRASH (SIGABRT)

Thread 0 Crashed:
0   CoreFoundation                  0x19118a2e0         __exceptionPreprocess
1   libobjc.A.dylib                 0x190c6e154         objc_exception_throw
2   CoreFoundation                  0x19123c568         -[NSObject(NSObject) doesNotRecognizeSelector:]
3   CoreFoundation                  0x1910f3f38         ___forwarding___
4   CoreFoundation                  0x1910f384c         __forwarding_prep_0___
5   Sentry.framework                0x1044b7ea8         -[SentryMetricProfiler recordCPUsage] (Sentry.framework:267)
6   Sentry.framework                0x1044b70cc         -[SentryMetricProfiler recordMetrics] (Sentry.framework:136)
7   Sentry.framework                0x1044b7a3c         __39-[SentryMetricProfiler registerSampler]_block_invoke (Sentry.framework:232)

We see this also in our internal SDK crash detection.

Originally reported here: #4579.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

No branches or pull requests

1 participant