Skip to content

Vulkan output stops working on window resize with NVIDIA driver 595.x #17543

@rkfg

Description

@rkfg

mpv Information

mpv v0.41.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.360.0
FFmpeg version: 8.0.1-3+b1 (runtime 8.0.1)
FFmpeg library versions:
   libavcodec      62.11.100
   libavdevice     62.1.100
   libavfilter     11.4.100
   libavformat     62.3.100
   libavutil       60.8.100
   libswresample   6.1.100
   libswscale      9.1.100

Other Information

- Linux version: Debian testing
- Kernel Version: 6.18.6
- GPU Model: NVIDIA GeForce RTX 5090
- Mesa/GPU Driver Version: 595.45.04
- Window Manager and Version: awesome 4.3-8.1
- Source of mpv: Debian repository
- Latest known working version:
- Issue started after the following happened: updating NVIDIA driver from 590.48.01 to 595.45.04

Note that it could be a driver issue of course, or it could be some API change. 595.45.04 is a beta version so there's time to report it to NVIDIA and fix if that's the case.

Reproduction Steps

Update the NVIDIA driver to 595.45.04, the current beta. mpv window either instantly disappears (if resized by the WM) or shows normally but freezes as soon as it's resized. Note that switching to fullscreen and back works fine. Affected video outputs are gpu and gpu-next with Vulkan API. gpu-api=opengl is not affected but it shows heavy artifacts on my system (on both stable and beta driver). Vdpau, x11, xv all work fine.

Expected Behavior

Window can be resized normally with no freezes. Works ok on 590.48.01.

Actual Behavior

After any window resize the window freezes.

Log File

output.txt

[vo/gpu/libplacebo] vk->GetSwapchainImagesKHR(vk->dev, current->swapchain, &num_images, current->vkimages.elem): VK_ERROR_UNKNOWN (../src/vulkan/swapchain.c:771)
[vo/gpu/libplacebo] Failed (re)creating swapchain!
Could not initialize video chain.

Also if the window is resized, it spams this: vk->CreateSwapchainKHR(...): VK_ERROR_NATIVE_WINDOW_IN_USE_KHR (../src/vulkan/swapchain.c:766)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions