-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
the iOS app crashed on Sentry SDK [SentrySerialization dataWithJSONObject:] #3050
Comments
Hello @Mohsenkhodadadzadehthelist thanks for the detailed information we will investigate numbers 1 and 3 and get back to you. Number 2 looks like that the app has already crashed, and the screenshot failed. The screenshot process is a "Best effort" approach, but since the app is already in a crash state, its behavior becomes unpredictable. Unfortunately, there is nothing else we can do to guarantee that a screenshot will be taken. Occasionally, it may fail, but we consider this tradeoff acceptable. The only alternative to completely avoid encountering this issue again is to disable screenshots. |
@brustolin, I think it would be great to add that info about screenshots to the docs https://docs.sentry.io/platforms/apple/guides/ios/enriching-events/screenshots/. |
Hi @Mohsenkhodadadzadehthelist , thanks for the report and information! We believe we fixed 1 in the 8.7.2 release. I'll take a look at 3 with @brustolin . |
@Mohsenkhodadadzadehthelist that third crash has a message that is truncated:
Any chance you can grab the full contents of that entry? |
@Mohsenkhodadadzadehthelist we are also wondering what the impact is of the third crash for you, if you could share any numbers on that. We actually have seen this crash in the past, but made a small change we thought would help, but it appears in some cases it still is problematic. We are also considering other solutions for it, and even removing the queue label collection entirely as so far it has been of limited value. Any additional info we can get on this will help our decision making. Thanks again! |
Hey @Mohsenkhodadadzadehthelist we recently released a couple of fixes that could be related to this issue, did you have a chance to update and test? Please let us know if the problem persists. |
I'm facing same issue in SDK version 8.38.0 any work around or solution? |
Hello @kahest Yes it is same here is stack trace. Please let me know if it is different then reported Fatal Exception: NSMallocException |
@SMzig the stack trace is slightly different, but it's possible it has a similar root cause. If you can get a stack trace with complete info on the Sentry frames (or a link to the issue on sentry.io - you can send it to [email protected] if you prefer) it would be appreciated if you create a new issue and refer to this one. |
@SMzig, I think this is related to #4424. If it is, it could be that you're passing too large strings to the SentryScope, especially the extra of the scope. To fix this, you could reduce the length of the strings you're passing. We plan on truncating the strings so the SDK doesn't crash if somebody accidentally passes in huge strings. |
@philipphofmann thanks for reply, |
@kahest I only have that stack trace for now, but I'll send you more details if I find them. Currently few user faced this issue I'm trying to figure out root cause. Here is configuration which I used to start sentry and it will be execute on launch
|
Platform
iOS
Installed
Swift Package Manager
Version
8.7.1
Steps to Reproduce
we are using Sentry for our product since 3 days ago and the firebase crashlytics reported to us we had 3 crashes on the Sentry SDK
Expected Result
work properly without crash
Actual Result
The first one :
+[SentrySerialization dataWithJSONObject:]
NSInvalidArgumentException - Invalid type in JSON write ((null))
and the device information:
Device Model:iPhone 14 Pro
Orientation:Portrait
RAM free: 79.48 MB
Disk free: 125.62 GB
Operating system Version:16.4.1
Jailbroken:No
the second one is
-[SentryScreenshot takeScreenshots]
SIGABRT (ABORT)
The device information is :
Model:iPhone 7
Orientation:Portrait
RAM free: 59.39 MB
Disk free: 102.19 GB
Version:15.7.5
Orientation:Portrait
Jailbroken:No
The third one is
sentry::profiling::ThreadHandle::dispatchQueueAddress() co...
SIGSEGV
the device information is
Model:iPhone 7
Orientation:Portrait
RAM free: 33.83 MB
Disk free: 102.17 GB
Version:15.7.5
Orientation:Portrait
Jailbroken:No
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: