mpv crashes on 22.04 Wayland (Intel i7-1265U, nvidia GeForce MX570) [error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mpv (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to get mpv to play a video on Wayland with my configuration leads to the following crash:
-------
$ mpv Chimera-
(+) Video --vid=1 (*) (av1 960x540 25.000fps)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
VO: [gpu] 960x540 yuv420p10
[destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a
V: 00:00:00 / 00:23:48 (0%)
[vo/gpu/wayland] Error occurred on the display fd, closing
Exiting... (Quit)
-------
The same happens no matter if I try to enable or disable the HW encoding:
-------
$ mpv --hwdec=no Chimera-
(+) Video --vid=1 (*) (av1 960x540 25.000fps)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
VO: [gpu] 960x540 yuv420p10
[destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a
[vo/gpu/wayland] Error occurred on the display fd, closing
V: 00:00:00 / 00:23:48 (0%)
Exiting... (Quit)
-------
-------
$ mpv --hwdec=yes Chimera-
(+) Video --vid=1 (*) (av1 960x540 25.000fps)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Using hardware decoding (nvdec).
VO: [gpu] 960x540 cuda[p010]
[destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a
[vo/gpu/wayland] Error occurred on the display fd, closing
V: 00:00:00 / 00:23:48 (0%)
Exiting... (Quit)
-------
I've tried installing either intel-media-
It's also worth noting that the same issue (and same output) happens no matter what file I'm using. I also tried loading an H264 file (http://
Finally, running the same commands on Xorg works as expected.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mpv 0.34.1-1ubuntu3
ProcVersionSign
Uname: Linux 5.15.0-47-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Sep 16 13:51:10 2022
InstallationDate: Installed on 2022-09-08 (7 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
SourcePackage: mpv
UpgradeStatus: No upgrade log present (probably fresh install)
Seems this is bug 1968488.