mpv-player / mpv-player/mpv

AV1 crashing with `hwdec=auto` with Nvidia

Open
#17,688 3 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

mpv Information
mpv v0.41.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.360.1 (v7.360.1)
FFmpeg version: n8.1
FFmpeg library versions:
   libavcodec      62.28.100
   libavdevice     62.3.100
   libavfilter     11.14.100
   libavformat     62.12.100
   libavutil       60.26.100
   libswresample   6.3.100
   libswscale      9.5.100
Other Information
- Linux version: Kubuntu 25.10
- Kernel Version: 6.17.0-19-generic
- GPU Model: Nvidia RTX 4070
- Mesa/GPU Driver Version: NVIDIA 590.48.01
- Window Manager and Version: kwin 6.4.5
- Source of mpv: Flathub
- Latest known working version: unknown
- Issue started after the following happened: enabled `hwdec=auto`
Reproduction Steps

Add hwdec=auto to config file.

Expected Behavior

Nvidia hardware decoding should play the media, and not crash.

Actual Behavior

MPV is playing the video with Vulkan decoding according to the terminal output.

Using hardware decoding (vulkan).

The video plays fine, but will crash if you buffer/skim through the video timeline.

Log File

log.txt

The Arch wiki page doesn't mention how to do a backtrace for a Flatpak app. I tried the command, but it seems like the gdb command thinks I'm trying to use it on Flatpak itself, and not the MPV app. Please advise if needed.

Sample Files

No response

I carefully read all instruction and confirm that I did the following:
  • I tested and confirmed that the issue exists with the latest release version or newer.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

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 by reviewing the attached log.txt and reproducing the crash with hwdec=auto on the listed Nvidia and Linux setup. Compare playback with timeline buffering or seeking enabled, then verify that Vulkan hardware decoding no longer crashes while seeking.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.