bugsnag / bugsnag-cocoa

BugSnag error monitoring & exception reporter for iOS, macOS, tvOS and watchOS
https://docs.bugsnag.com/platforms/ios
MIT License
234 stars 128 forks source link

StartWithConfig memory leak #1641

Closed jorgefrazaocosta closed 2 months ago

jorgefrazaocosta commented 5 months ago

Describe the bug

When Bugsnag is initiated, Leaks tool says it catch a Memory Leak.

Steps to reproduce

  1. Implements 6.28.0 SDK
  2. Start Bugsnag using BugsnagConfiguration.loadConfig() and set APIKey
  3. Launch instruments
  4. Observe memory leak

Environment

Screenshot 2024-03-22 at 14 47 29
clr182 commented 5 months ago

Hi @jorgefrazaocosta Thanks for reaching out.

Can you please share a copy of your code for the BugSnag configuration with us for further investigation?

jorgefrazaocosta commented 5 months ago

Hi @clr182,

Yes, I can.

let config = BugsnagConfiguration.loadConfig()
config.enabledErrorTypes.appHangs = false
config.apiKey = /* API KEY */

Bugsnag.start(with: config)
clr182 commented 5 months ago

Hi @jorgefrazaocosta

I've passed this issue onto our engineering team who believe this does seem to be an issue on our side. We now have a backlog item aimed at investigating this further when priorities allow. Once we have more information to share we will be sure to reach out again with an update.

n1tesh commented 4 months ago

@clr182 any update on this issue ?

mclack commented 4 months ago

Hi @jorgefrazaocosta and @n1tesh

We have some ideas about what this issue may be caused by, but unfortunately we've been unable to reproduce this using the information provided so far.

Would either of you be able to share a stripped down reproduction application with us for further investigation? As this is a public thread, please feel free to share any further details with us directly by contacting support@bugsnag.com.

clr182 commented 2 months ago

Hi :wave:

As this thread has not seen any activity for some time I am going to close this issue out. If you would like to continue this investigation please reach out and we can reopen this issue.