mpv-player / mpv-player/mpv

Memory leak when use qt_opengl/qt of mpv_examples play video many times.

Open
#8,516 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:linux
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

Provide following Information:

  • mpv version:0.33,0.29
  • Linux Distribution and Version:x86
  • Source of the mpv binary :
  • If known which version of mpv introduced the problem
  • Window Manager and version: x11
  • GPU driver and version: Radeon
  • Possible screenshot or video of visual glitches:
    start:
    截图录屏_选择区域_20210127090350
    play 1 time:
    截图录屏_选择区域_20210127090417

play 10 times:
截图录屏_选择区域_20210127090455
more:
The number of threads continues to increase with the number of playback

Reproduction steps
Expected behavior
Actual behavior
Log file

log.log

Sample files

mpv-examples-master.zip
qt-opengl is /libmpv/qt-opengl

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied mpv-examples-master.zip and its qt-opengl/libmpv/qt-opengl example, then reproduce repeated video playback while comparing the thread count and the attached log.log. Done means identifying and fixing the resource growth so repeated playback no longer continually increases the number of threads.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.