bilibili / bilibili/ijkplayer

Native内存是不是有泄露

Open
#3,960 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
33.2k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

我用的Andorid 0.8.4版本的demo进行测试,持续的播放视频,然后退出播放,反复操作,一边用Android Studio内存查看器查看内存,发现一个很奇怪的现象,Native的内存占用很高,即便是退出了播放,也还是很高,但是并不是说一直涨,测试到后面Native层的内存在不播放视频的情况下,占用都达到了60M,这是什么原因,是泄露了吗。
PS:播放本地视频尤为明显,尤其是播放大分辨率的视频,很容易出现这个情况。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the report with the Android 0.8.4 demo, repeatedly playing and exiting local high-resolution videos while watching native memory in Android Studio's memory viewer. Trace native allocations through playback teardown and compare whether memory is reclaimed between cycles. Done means identifying a reproducible leak or documenting why the retained native memory is expected, with measurements.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.