bilibili / bilibili/ijkplayer

音频在后台使用service播放超过15分钟后,关闭service,导致anr

Open
#3,902 0 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

音频在后台使用service播放超过15分钟后,关闭service,release mediaplayer会导致程序卡顿很长时间,中间做任何操作都会导致程序ANR

E/IJKMEDIA: SDL_Overlay(ffmpeg): overlay_free_l(0xc8f11900)
01-05 17:11:18.669 27001-29120/com.hikistor.histor E/IJKMEDIA: SDL_JNI_ThreadDestroyed: [29120] didn't call

SDL_JNI_DetachThreadEnv() explicity
01-05 17:11:18.720 27001-29128/com.hikistor.histor E/IJKMEDIA: Option ijkiomanager not found.
01-05 17:11:22.693 27001-29195/com.hikistor.histor E/IJKMEDIA: SDL_JNI_ThreadDestroyed: [29195] didn't call

SDL_JNI_DetachThreadEnv() explicity
01-05 17:11:40.912 3703-21685/? E/IPCThreadState: binder thread pool (15 threads) starved for 119 ms

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce Android audio playback in a background service for more than 15 minutes, then stop the service and release MediaPlayer. Start by examining the MediaPlayer release path and the reported SDL_JNI and binder starvation logs. Done means stopping playback does not cause a prolonged freeze or an ANR.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
mobile-dev
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.