Hang in __futex_abstimed_wait_common64 on trying to play with nvdec
Nobody has claimed this yet.
- 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.1+git.20210630T163736.f2afae55e9-1.4
- Linux Distribution and Version: OpenSUSE Tumbleweed 20211011
- Source of the mpv binary: Main repo
- Window Manager and version: Kwin 5.22.5-1.2
- GPU driver and version: Nvidia 470.74-44.1
Reproduction steps
Play a video file with --hwdec=nvdec. Seems to work with any file with hardware decoding, at least AVC and HEVC.
Expected behavior
The video plays as normal, with hardware decoding.
Actual behavior
Some of the time (though not every time), mpv will completely hang, and just display an empty window (filled with whatever was behind it). It will use 100% CPU (on one core). At this point, mpv needs to be killed (SIGTERM or SIGINT twice).
It doesn't seem to happen if you try it multiple times in rapid succession. If you successfully play the file, you have to wait for a bit to reproduce the issue.
Log file
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the hang by playing a video with --hwdec=nvdec on the reported Linux/NVIDIA setup, then inspect the linked log and backtrace. Done means mpv reliably plays AVC or HEVC with hardware decoding without hanging, leaving an empty window, or consuming 100% of one CPU core.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100