mpv crashes when run on wayland session on nvidia/intel (optimus) system when prime-select is on-demand
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MPV |
Fix Released
|
Unknown
|
|||
NVIDIA / egl-wayland |
Fix Released
|
Unknown
|
|||
egl-wayland (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
(+) Video --vid=1 (*) (h264 640x480 29.970fps)
(+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 640x480 yuv420p
[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
Mpv crashes on system after running it when prime-select is on-demand
If we set prime-select intel then it works.
Seems to be same as https:/
one more thing to note is that eglinfo by default shows nvidia but using the workaround makes it show Intel.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mpv 0.34.1-1ubuntu3
ProcVersionSign
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 10 21:32:14 2022
InstallationDate: Installed on 2022-03-13 (28 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220312)
SourcePackage: mpv
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in mpv: | |
status: | Unknown → Fix Released |
Changed in egl-wayland: | |
status: | Unknown → New |
tags: | added: protocol-error |
tags: | added: nvidia-wayland |
Changed in mpv (Ubuntu): | |
status: | Confirmed → Fix Released |
affects: | mpv (Ubuntu) → egl-wayland (Ubuntu) |
tags: | added: fixed-in-1.1.10 fixed-upstream |
tags: | added: rls-jj-incoming |
Changed in egl-wayland: | |
status: | New → Fix Released |
I have attached eglinfo with and without using __EGL_VENDOR_ LIBRARY_ FILENAMES= /usr/share/ glvnd/egl_ vendor. d/50_mesa. json
egl seems to default to nvidia which may indicate the issue.
eglinfo.log> $ eglinfo workaround. log> $ __EGL_VENDOR_ LIBRARY_ FILENAMES= /usr/share/ glvnd/egl_ vendor. d/50_mesa. json eglinfo
eglinfo-