You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There are fragments and activities leaks in the library, cause original instances will be retained as _source variable inside scope, which will be retained inside ScopeHandlerViewModel
LeakCanary report below:
References underlined with "~~~" are likely causes.
Learn more at https://squ.re/leaks.
51348 bytes retained by leaking objects
Signature: 7d4dbd1635a1ddbc84ef328cb276f6d1a0c9769b
┬───
│ GC Root: Local variable in native code
│
├─ android.os.HandlerThread instance
│ Leaking: NO (PathClassLoader↓ is not leaking)
│ Thread name: 'LeakCanary-Heap-Dump'
│ ↓ HandlerThread.contextClassLoader
├─ dalvik.system.PathClassLoader instance
│ Leaking: NO (GlobalContext↓ is not leaking and A ClassLoader is never leaking)
│ ↓ PathClassLoader.runtimeInternalObjects
├─ java.lang.Object[] array
│ Leaking: NO (GlobalContext↓ is not leaking)
│ ↓ Object[].[949]
├─ org.koin.core.context.GlobalContext class
│ Leaking: NO (a class is never leaking)
│ ↓ static GlobalContext._koin
│ ~~~~~
├─ org.koin.core.Koin instance
│ Leaking: UNKNOWN
│ Retaining 2151 bytes in 78 objects
│ ↓ Koin.scopeRegistry
│ ~~~~~~~~~~~~~
├─ org.koin.core.registry.ScopeRegistry instance
│ Leaking: UNKNOWN
│ Retaining 1341 bytes in 47 objects
│ ↓ ScopeRegistry._scopes
│ ~~~~~~~
├─ java.util.HashMap instance
│ Leaking: UNKNOWN
│ Retaining 225 bytes in 6 objects
│ ↓ HashMap.table
│ ~~~~~
├─ java.util.HashMap$Node[] array
│ Leaking: UNKNOWN
│ Retaining 173 bytes in 4 objects
│ ↓ HashMap$Node[].[0]
│ ~~~
├─ java.util.HashMap$Node instance
│ Leaking: UNKNOWN
│ Retaining 85 bytes in 2 objects
│ ↓ HashMap$Node.value
│ ~~~~~
├─ org.koin.core.scope.Scope instance
│ Leaking: UNKNOWN
│ Retaining 51822 bytes in 847 objects
│ ↓ Scope._source
│ ~~~~~~~
╰→ com.example.ui.AFlowFragment instance
Leaking: YES (ObjectWatcher was watching this because com.example.ui.AFlowFragment received
Fragment#onDestroy() callback and Fragment#mFragmentManager is null)
Retaining 51348 bytes in 830 objects
key = 1694cf9c-a177-4656-a465-1822ff48cbb2
watchDurationMillis = 199459
retainedDurationMillis = 194458
====================================
0 LIBRARY LEAKS
Koin project used and used version: koin-androidx-ext version 2.2.0
The text was updated successfully, but these errors were encountered:
Describe the bug
There are fragments and activities leaks in the library, cause original instances will be retained as
_source
variable inside scope, which will be retained insideScopeHandlerViewModel
LeakCanary report below:
Koin project used and used version:
koin-androidx-ext version 2.2.0
The text was updated successfully, but these errors were encountered: