Video Glitches via Vulkan on Prime GNU/Linux system.
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv Information
mpv v0.41.0-dev-g102e693f4-dirty Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
built on Feb 2 2026 21:40:46
libplacebo version: v7.360.0 (v7.360.0-2-g74b32f3)
FFmpeg version: git-2026-02-13-a7522f3
FFmpeg library versions:
libavcodec 62.23.103
libavdevice 62.2.100
libavfilter 11.12.100
libavformat 62.9.101
libavutil 60.25.100
libswresample 6.2.100
libswscale 9.3.100
Other Information
- Linux version: Mint 22.3 (basically Ubuntu 24.04)
- Kernel Version: 6.14.0 and 6.17.0
- GPU Model: I have an Intel SkyLake "GT2 [HD Graphics 520]" and a secondary "GM180M GeForce 940M]". (Quoted values are copied/pasted from the "lspci" utility.)
- Mesa/GPU Driver Version: 25.2.8-0ubuntu0.24.04.1
- Window Manager and Version: Kwin (via X11) 5.27.11
- Source of mpv: Custom build.
- Latest known working version: I don't know.
- Issue started after the following happened: I noticed it after updating from kernel 6.14.0 to 6.17.0. However, reverting back to the old kernel didn't fix it.
Reproduction Steps
If I play a video, then pause it for => 15 seconds, various glitches occur. With one glitch, the window turns pitch-black, and I suddenly can't see anything. This seems easy for me to reproduce... usually. However, there's another glitch, in which the video becomes highly distorted. This happens if I leave the video paused for 15 seconds, but rather than unpausing, I press "i", bringing up those various media stats. The issue can sometimes also exist with --profile=fast, but it's been far more difficult to reproduce. When it does happen, is isn't nearly as bad. It also happens with both the gpu and gpu-next outputs.
Expected Behavior
No corruption.
Actual Behavior
I was having this issue with some build I have from Februrary 02 2026, but decided to make a fresh build from git master, which also has the problem. I even tested it with --no-config. That build is as follows:
v0.41.0-dev-gdb22a4528 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects built on Feb 2 2026 21:40:46 libplacebo version: v7.351.0 FFmpeg version: git-2026-02-02-b613eeb FFmpeg library versions: libavcodec 62.23.103 libavdevice 62.2.100 libavfilter 11.12.100 libavformat 62.8.102 libavutil 60.24.100 libswresample 6.2.100 libswscale 9.3.100
This must be a bug in vulkan, since I can prevent it with either --gpu-api=opengl or --gpu-context=x11egl.
I also think this has something to do with my computer's NVIDIA Prime hardware. If I use --vulkan-device to force my machine to use either the Intel GPU or llvmpipe, the problem goes away. However, if I force my NVIDIA GPU, or do away with the parameter altogether, the problem occurs. I'm using Nouveau drivers for my NVIDIA GPU, and I don't want the proprietary drivers on principal. Libre software FTW! I find this happens regardless of whether I'm using GPU decompression or not. I have not set any DRI_PRIME environmental variables.
I will run with --gpu-debug and --log-file.
Log File
Also, there's no output in the terminal when this happens, so I have no idea if there will be anything relevant in the log. I suspect there won't be, but I'll keep my fingers crossed.
Sample Files
When writing this bug report, I used this file to test my system, but honestly, it seems to happen with literally any video.
I carefully read all instruction and confirm that I did the following:
- I tested with the latest mpv version to validate that the issue is not already fixed.
- 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
- 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
Start by reproducing the pause-for-15-seconds case with the attached MPV.log conditions, comparing Vulkan on the default NVIDIA Prime device with Intel, llvmpipe, OpenGL, and x11egl. Use --gpu-debug and --log-file as described; done means the black-window and distorted-video glitches no longer occur under the affected Vulkan configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- computer-graphics, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100