Public bug reported:
Since upgrading to Xubuntu 26.04, video playback in SMPlayer turns black
after the SMPlayer window has been in the background for a while. When I
bring the window back to the foreground, the video area stays black.
Restarting playback in the same window then often fails with
"MPlayer/mpv has finished unexpectedly. Exit code: 2". Only restarting
SMPlayer brings the picture back.
Steps to reproduce:
1. Play an .mp4 file (h264 1080p) in SMPlayer.
2. Put the SMPlayer window in the background and wait a while.
3. Bring the window back to the foreground.
-> Video area is black.
4. Try to play the file again from the beginning.
-> mpv exits with exit code 2.
Expected: video is shown again after bringing the window back.
mpv output (SMPlayer embeds mpv via --wid, vo=gpu-next):
VO: [gpu-next] 1920x1080 yuv420p
[vo/gpu-next/libplacebo] vk->GetSwapchainImagesKHR(...): VK_ERROR_UNKNOWN
(../src/vulkan/swapchain.c:771)
[vo/gpu-next/libplacebo] Failed (re)creating swapchain!
Could not initialize video chain.
[vo/gpu-next/libplacebo] vk->CreateSwapchainKHR(...):
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR (../src/vulkan/swapchain.c:766)
[vo/gpu-next/libplacebo] Failed (re)creating swapchain!
Video: no video
The SMPlayer log shows the exit code 2 cases as:
end-file: "error" -> MPVProcess::processFinished: exitCode: 2
It looks like the Vulkan swapchain cannot be recreated after the embedded
window was in the background, and afterwards the window is considered
"in use", so a new mpv instance cannot attach to it.
Reproducible on two different machines:
- AMD Ryzen 5 5600G + NVIDIA GTX 1650
- AMD Ryzen 5 5600G (integrated Radeon graphics)
So it does not seem to be driver-specific.
Versions:
- Xubuntu 26.04
- mpv 0.41.0
- smplayer 25.6.0 (revision 10369), Qt 5.15.18
This did not happen before the upgrade to 26.04.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: mpv 0.41.0-2ubuntu4
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: XFCE
Date: Thu Nov 19 14:45:50 2026
InstallationDate: Installed on 2023-10-21 (1125 days ago)
InstallationMedia: Xubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64
(20230223)
ProcEnviron:
LANG=de_DE.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: mpv
UpgradeStatus: Upgraded to resolute on 2026-10-13 (37 days ago)
** Affects: mpv (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175039
Title:
mpv (vo=gpu-next, Vulkan): black video in SMPlayer after window was in
background, swapchain recreation fails
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mpv/+bug/2175039/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs