-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
iOS app crash when use AttachScreenshot=true #3880
Comments
@albilaga are you able to reproduce this issue? If so, you could try setting |
@jamescrosswell unfortunately not but we are setting the |
Hi @jamescrosswell after setting |
@jamescrosswell that option just forwards to native code, right? If so, it may be worth moving the issue to sentry-cocoa. My two cents: it may be due to memory pressure so the device is unable to allocate desired screenshot size. |
The stack trace from the zip file:
|
Thanks, so it is actually MAUI code. We could either do it ourselves properly (with reduced pixel ratio) or raise it upstream. Does that make sense @jamescrosswell ? |
Thanks @bruno-garcia @vaind
Yes to both of these things. As this results in a crash, I'll bump the priority on this.
|
Package
Sentry.Maui
.NET Flavor
Other
.NET Version
8.0.403
OS
iOS
SDK Version
4.13.-
Self-Hosted Sentry Version
No response
Steps to Reproduce
We have error report in Sentry that saying
Application Specific Information: UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={810, 1080}, scale=2.000000, bitmapInfo=0x2002. Use UIGraphicsImageRenderer to avoid this assert.
when we look at the thread that cause it also contain stack trace sayingSentry_Maui_Sentry_Maui_Internal_ScreenshotAttachmentContent__c__GetStreamb__2_1
. I am not really sure actually if this is caused by Sentry or not but we do attach the attachment on sentry so it might be the cause. Here I also attach the crash report dbc983a62a9a4fb7bdef3f940462a18d-symbolicated.crash.zipExpected Result
App should not crash or throwing exception
Actual Result
App throwing exception
The text was updated successfully, but these errors were encountered: