yandexmobile / yandex-ads-sdk-android

Other
78 stars 22 forks source link

Утечка в com.yandex.mobile.ads.impl.vr0.a (mobileads:5.7.0) #202

Closed DimaKoz closed 1 year ago

DimaKoz commented 1 year ago
mobileads:5.7.0
mobmetricalib:5.3.0

android.widget.ProgressBar - скорее всего, ваш в нативной рекламе, которая отображает видео

Лог LeakCanary:

┬───
│ GC Root: System class
│
├─ java.lang.ref.FinalizerReference class
│    Leaking: NO (a class is never leaking)
│    ↓ static FinalizerReference.head
│                                ~~~~
├─ java.lang.ref.FinalizerReference instance
│    Leaking: UNKNOWN
│    Retaining 343,5 kB in 2487 objects
│    ↓ Reference.referent
│                ~~~~~~~~
├─ com.yandex.mobile.ads.impl.vr0 instance
│    Leaking: UNKNOWN
│    Retaining 343,4 kB in 2486 objects
│    ↓ vr0.a
│          ~
├─ android.widget.ProgressBar instance
│    Leaking: YES (View.mContext references a destroyed activity)
│    Retaining 343,1 kB in 2475 objects
│    View not part of a window view hierarchy
│    View.mAttachInfo is null (view detached)
│    View.mID = R.id.video_progress_control
│    View.mWindowAttachCount = 1
│    mContext instance of ru.mypackage.activity.Activity with
│    mDestroyed = true
│    ↓ View.mContext
╰→ ru.mypackage.activity.Activity instance
​     Leaking: YES (ObjectWatcher was watching this because ru.mypackage.
​     activity.Activity received Activity#onDestroy() callback and
​     Activity#mDestroyed is true)
​     Retaining 4,8 MB in 19108 objects
​     key = 0ee21cd6-cb27-4220-97ce-c291f29b251e
​     watchDurationMillis = 6691
​     retainedDurationMillis = 1645
​     mApplication instance of ru.mypackage.App
​     mBase instance of androidx.appcompat.view.ContextThemeWrapper

METADATA

Build.VERSION.SDK_INT: 29
Build.MANUFACTURER: samsung
LeakCanary version: 2.10
App process name: 
Class count: 24035
Instance count: 266859
Primitive array count: 142670
Object array count: 35424
Thread count: 130
Heap total bytes: 36103273
Bitmap count: 69
Bitmap total bytes: 49004203
Large bitmap count: 0
Large bitmap total bytes: 0
Stats: LruCache[maxSize=3000,hits=78611,misses=201405,hitRate=28%]
RandomAccess[bytes=11457411,reads=201405,travel=124800096587,range=42839558,size
=50366353]
Analysis duration: 16863 ms
mobile-ads-github commented 1 year ago

Добрый день! Разбираемся с этой проблемой

mobile-ads-github commented 1 year ago

Добрый день. Данная проблема была исправлена в версии рекламного SDK 5.8.0. Обновление версии SDK должно помочь.

DimaKoz commented 1 year ago

Спасибо