-
Notifications
You must be signed in to change notification settings - Fork 136
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
Datadog SDK Crash, Device Out of Memory #58
Comments
Hey @lmramirez 👋. Thanks for details, this pretty much narrows the issue to one particular place in the SDK. We will work on this with the highest priority and see what's possible to solve this issue. As a side note - this unfortunately comes from Apple's dd-sdk-ios/Sources/Datadog/Core/Persistence/Files/File.swift Lines 51 to 64 in 7a7766e
We'll try to install additional checks around to mitigate this as much as possible. |
@ncreated thank you! I'm familiar with the same issue since we actually ran into it in our application. For what it's worth, we ended up implementing an objective-c method to catch the exceptions. Not super pretty, but seems wo work well. Posting here in case it's helpful:
There is probably a nicer way to do this using a function instead of a static method too. |
Thank you @lmramirez 💪. This might be tricky as SPM doesn't allow mixing Obj-C with Swift code inside single package, and separating packages will not work easily for Cocoa Pods, but we'll have a look and fix this ASAP. |
Fixed in 1.0.1 |
Describe what happened
Include any error message or stack trace if available.
The
FileWriter
class implemented in this SDK crashes if the device is out of memory. I have attached the stacktrace and some details below.Additional context
Device Info
Stacktrace
The text was updated successfully, but these errors were encountered: