-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Memory leaks #2980
Comments
Thanks @vaibhavTM for reaching out. We're going to investigate this. |
Thankyou @brustolin for quick response. |
@brustolin Could you please confirm these issues exist in your SDK. |
Hello @vaibhavTM. Can you update your Sentry SDK version and let us know please? |
Okay. |
Out of curiosity I tried the SDK 8.1 and I was able to see the leaks. We need to fixed leaks regarding profiling tho. |
@vaibhavTM, try run |
@philipphofmann this worked. Now I am at the latest version of SDK (8.7.0) |
Profiling is a experimental feature right now, so please use it with caution, my guess is that this leaks will be fixed soon, but I can't give you an ETA. |
Thanks for writing in @vaibhavTM . I'm looking at the possible leaks from the profiler now. I tried an instruments run with our Swift-iOS test app, and started a manual transaction with profiling and let it go until the profiler timed out. There are some symbols for me to investigate related to profiling: I hope to get updates on this today. |
@armcknight okay. |
@armcknight @brustolin I made some progress tracking this down. Basically what appears to be happening is that we're capturing Some memory that we can't identify (represented by the |
#3055 fixes all of these except for 1 leak |
This fixes most of the memory leaks reported in #2980 The root of the problem seems to be that `std::thread` does not correctly deallocate parameters that are passed to the newly spawned thread. It's unclear if this is expected behavior or not, but the fix was simple: pass parameters that were being copied (and leaked) by reference. There's also one more unrelated fix to a crash that I found while debugging the leaks - it turns out `-[NSString stringWithUTF8String:]` can return `nil` for malformed data and we weren't checking for nil. --------- Co-authored-by: Sentry Github Bot <[email protected]>
@vaibhavTM We are cutting a new release with this fix soon. |
This was solved in 8.7.3 |
Platform
iOS
Installed
CocoaPods
Version
8.1.0
Steps to Reproduce
Just run the app
Expected Result
No memory leaks.
Actual Result
Are you willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: