Skip to content

Wayland+Vulkan: --force-window=immediate does not reliably work #10433

Description

@MoSal

Important Information

version
mpv 8ef744d
libplacebo e448e5b3257c2356b283b569ae3f277724f9dd4b
mesa 22.1.3-1
amdvlk 2022.Q2.3-1
wayland 1.21.0
weston 10.0.1
wlroots add44b3e2
sway 8d8a21c9

Reproduction steps

mpv  --no-config --gpu-api=vulkan --force-window=immediate -
  • May require multiple tries to trigger.
  • Reproducible in both weston (release) and sway/wlroots (git)

Expected behavior

Window created.

Actual behavior

mpv gets stuck with this message appearing:

xdg_surface@3: error 3: xdg_surface has never been configured

I added some debug messages to compare successful runs with failed ones, and the difference is
that in a successful run, mpv receives dmabuf and output info from Wayland early enough to avoid the issue.

Note that further more serious issues can be triggered with certain configurations (e.g. autofit with percentage values)
as mpv may proceed with a screen size of 0x0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions