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

Memory leaks in iOS SentryNativeBridge #1619

Open
etnlGD opened this issue Apr 13, 2024 · 3 comments
Open

Memory leaks in iOS SentryNativeBridge #1619

etnlGD opened this issue Apr 13, 2024 · 3 comments
Labels

Comments

@etnlGD
Copy link

etnlGD commented Apr 13, 2024

Environment

How do you use Sentry?
self-hosted

Which version of the SDK?
1.8.0

How did you install the package? (Git-URL, Assetstore)
Git-URL

Which version of Unity?
2020.3.11f1

Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
iOS

Steps to Reproduce

Debug.Log lots of things

Expected Result

No memory leaks

Actual Result

Memory leak found in the screenshot. @autoreleasepool should be added in every callbacks in the Plugins/iOS/SentryNativeBridge.m

Any logs or screenshots

img_v3_029t_7bff532f-1b5e-4712-91f5-6593eb97f36g

@bitsandfoxes
Copy link
Contributor

Thanks for raising this and providing a solution too!

@bitsandfoxes bitsandfoxes added Bug Something isn't working iOS labels Apr 15, 2024
@bitsandfoxes
Copy link
Contributor

Hey @etnlGD, are you sure you're experiencing a memory leak and those objects aren't just retained longer than expected but end up being released eventually?

@etnlGD
Copy link
Author

etnlGD commented May 16, 2024

Hey @etnlGD, are you sure you're experiencing a memory leak and those objects aren't just retained longer than expected but end up being released eventually?

I'm sure it's a memory leak, these objects will never be released until the program exits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Status: No status
Status: Waiting for: Product Owner
Development

No branches or pull requests

2 participants