SIGSEGV on vulkan fullscreen swapchain recreation (wayland-native, NVIDIA 595.91.07, mpv 0.41.0) — deterministic
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 40/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c, linux
- Domain
- audio-video-rtc, computer-graphics
Research direction
Start from the log line '(Re)creating swapchain' and locate where mpv (or libplacebo 7.360.0, which drives Vulkan swapchain setup for vo=gpu-next) triggers swapchain recreation on a wayland-native resize, likely under player/video or the gpu-next rendering path. Compare the fullscreen toggle path with the maximize path to see what differs in the resize size passed to the Vulkan surface. Done looks like either a minimal mpv-side guard that avoids the crash path on wayland-native fullscreen recreation, or a documented, reproducible confirmation that the fault is inside the NVIDIA driver with attachable logs and torture scripts.
Written by the indexing model from the issue text.
Description
Summary
On wayland-native with --gpu-api=vulkan, ANY fullscreen swapchain recreation to panel-native size segfaults deterministically — every time, both vo=gpu and vo=gpu-next, driver 595.91.07 (also 595.84). The last log line before the crash is always (Re)creating swapchain of size 2560x1440.
This is a sharper repro of the behavior previously seen as a cross-monitor maximize crash: the trigger is any fullscreen swapchain recreation on native wayland; cross-monitor move+maximize was merely one route into it. Xwayland (X11 context) is fully immune (20 maximize + 5 fullscreen cycles clean).
Minimal repro
# any h264 clip; toggle fullscreen a few times on a wayland-native display
mpv --no-config --vo=gpu-next --gpu-api=vulkan --msg-level=gpu=v clip.mp4
# press f (or maximize) once or twice → SIGSEGV
Our measured runs: fullscreen-only torture → SIGSEGV on cycle 1, 3/3. maximize-only → 20/20 clean. Xwayland → all clean.
Environment
- mpv 0.41.0, libplacebo 7.360.0
- NVIDIA RTX 3070, driver 595.91.07 (and 595.84 — same crash)
- Ubuntu, GNOME/mutter wayland session, native (not XWayland) window
Full verbose logs + the torture scripts: happy to attach (they're in our repo's lane evidence dir). This looks like the NVIDIA vulkan driver's wayland swapchain recreation path; an mpv-side guard (refuse/recreate differently) may also be possible.
- Dominant language
- C
- Stars
- 38.2k
- Forks
- 3.7k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 76
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
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.
More from mpv-player/mpv
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mpv-player/mpv#18855 · 2 comments ·
Maintainers usually reply within 1 day
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
mpv-player/mpv#18683 · 4 comments ·
Maintainers usually reply within 1 day
-
Subtitle delay value displays "-0ms"May be free again A pull request for this issue was closed without being merged. Openos:linux
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mpv-player/mpv#18649 · 1 comment ·
Maintainers usually reply within 1 day
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mpv-player/mpv#18464 ·
Maintainers usually reply within 1 day
-
Keyboard shortcut next and previous secondary subtitle filePossibly taken @ravarnax claimed this 225 days ago. Openmeta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mpv-player/mpv#17693 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterPossibly taken @colinhacks claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tursodatabase/libsql#2333 ·
Maintainers usually reply within 11 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenPrinting/cups#1826 ·
Maintainers usually reply within 1 day
-
Backport to 3.0 advertises a suffix that does not existPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
389ds/389-ds-base#8152 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RetroAchievements/rcheevos#580 · 1 comment ·
Maintainers usually reply within 5 days