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 eglinfo-workaround.log> $ __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json eglinfo ** Attachment added: "eglinfo.zip" https://bugs.launchpad.net/ubuntu/+source/mpv/+bug/1968488/+attachment/5579031/+files/eglinfo.zip ** Bug watch added: github.com/mpv-player/mpv/issues #9393 https://github.com/mpv-player/mpv/issues/9393 ** Also affects: mpv via https://github.com/mpv-player/mpv/issues/9393 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968488 Title: mpv crashes when run on wayland session on nvidia/intel (optimus) system when prime-select is on-demand To manage notifications about this bug go to: https://bugs.launchpad.net/mpv/+bug/1968488/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs