bugsnag / bugsnag-unity

Automatic error reporting for Unity games
https://docs.bugsnag.com/platforms/unity
MIT License
89 stars 31 forks source link

PLAT-10762 fix android breadcrumb memory leak #738

Closed richardelms closed 1 year ago

richardelms commented 1 year ago

Goal

Some AndroidJavaObject instances were not properly Disposed when passing breadcrumbs through to the native android layer.

Changeset

Testing

Created an example app that, when using the latest release, always crashed within 2 seconds of launching due to the leak. Then rebuilt the app with a new build containing the fix and left it running with a profiler attached for 30 mins. It did not crash and memory usage remaind constant.

jchowdown commented 11 months ago

out of curiosity, do we know when this bug was introduced?