Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

리소스를 해제하는 release() 메소드가 없습니다. #1

Open
person-worspace opened this issue Dec 10, 2019 · 2 comments
Open

Comments

@person-worspace
Copy link

동영상 로드 또는 재생을 중지하고
이 YouTubePlayer에서 사용한 시스템 리소스를 해제하는 메소드가 없습니다.
추가 요청 드립니다.

@ted-prnd
Copy link
Contributor

@person-worspace
Youtube자체로 내부에서 Lifecycle관리를 해주기때문에 release하는 작업도 내부적으로 이루어질것이라고 생각됩니다.
혹시 메모리릭이 발생하셨다면 그와 관련된 로그를 올려주시면 정확하게 다시 한번 살펴보겠습니다.

@person-worspace
Copy link
Author

답변 감사합니다. 로그는 다음과 같습니다.

1376 bytes retained
┬
├─ com.google.android.youtube.player.internal.r$d
│    Leaking: UNKNOWN
│    GC Root: Global variable in native code
│    ↓ r$d.a
│          ~
├─ com.google.android.youtube.player.internal.o
│    Leaking: UNKNOWN
│    ↓ o.d
│        ~
├─ java.util.ArrayList
│    Leaking: UNKNOWN
│    ↓ ArrayList.elementData
│                ~~~~~~~~~~~
├─ java.lang.Object[]
│    Leaking: UNKNOWN
│    ↓ array Object[].[0]
│                     ~~~
├─ com.google.android.youtube.player.YouTubePlayerView$1
│    Leaking: UNKNOWN
│    Anonymous class implementing com.google.android.youtube.player.internal.t$a
│    ↓ YouTubePlayerView$1.b
│                          ~
╰→ com.google.android.youtube.player.YouTubePlayerView
​     Leaking: YES (View.mContext references a destroyed activity and ObjectWatcher was watching this)
​     mContext instance of com.xxx.xx.ui.DetailActivity with mDestroyed = true
​     View#mParent is null
​     View#mAttachInfo is null (view detached)
​     View.mWindowAttachCount = 1
​     key = 117a36a7-ede8-4475-b2e5-05d02a06e7eb
​     watchDurationMillis = 5318
​     retainedDurationMillis = 316
​     key = 324f885d-8fe3-453f-8190-542ac55db686
​     retainedDurationMillis = 317

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants