Open damianpetla opened 6 days ago
Look like same thing happens when closing Bug report dialog
┬───
│ GC Root: Global variable in native code
│
├─ <package>.AndroidApplication instance
│ Leaking: NO (Application is a singleton)
│ mBase instance of android.app.ContextImpl
│ ↓ Application.mActivityLifecycleCallbacks
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
├─ java.util.ArrayList instance
│ Leaking: UNKNOWN
│ Retaining 80.4 kB in 1429 objects
│ ↓ ArrayList[22]
│ ~~~~
├─ io.getstream.chat.android.common.notifications.permissions.
│ SnackbarNotificationPermissionHandler instance
│ Leaking: UNKNOWN
│ Retaining 77 B in 3 objects
│ context instance of <package>.AndroidApplication
│ currentActivity instance of com.instabug.bug.invocation.invocationdialog.
│ InstabugDialogActivity with mDestroyed = true
│ ↓ SnackbarNotificationPermissionHandler.currentActivity
│ ~~~~~~~~~~~~~~~
╰→ com.instabug.bug.invocation.invocationdialog.InstabugDialogActivity instance
Leaking: YES (ObjectWatcher was watching this because com.instabug.bug.
invocation.invocationdialog.InstabugDialogActivity received
Activity#onDestroy() callback and Activity#mDestroyed is true)
Retaining 79.7 kB in 1401 objects
key = a0ceee20-fa84-4436-b28c-1ea9e1aa95cf
watchDurationMillis = 5650
retainedDurationMillis = 644
mApplication instance of <package>.AndroidApplication
mBase instance of androidx.appcompat.view.ContextThemeWrapper
Steps to Reproduce the Problem
Start the app with enabled Instabug and wait for welcome message.
I have discovered this with LeakCanary. As soon as welcome message disappear leak canary reports leak
Expected Behavior
No memory leaks
Actual Behavior
Instabug integration code
Make sure to remove your app token.
SDK Version
13.0.1
Android Version
12
Device Model
Pixel 3 XL
[Optional] Project That Reproduces the Issue