MPV revision 100 is broken on wayland + nvidia

Bug #2041720 reported by PersianGolf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MPV-Snap
Fix Released
Undecided
Sameer Sharma

Bug Description

$ snap list --all mpv
Name Version Rev Tracking Publisher Notes
mpv 0.36.0 50 latest/stable capecrusader-121 disabled
mpv 0.36.0 100 latest/stable capecrusader-121 -

rev 100 in stable channel won't launch and spits this when i try to run it:

$ mpv --player-operation-mode=pseudo-gui
libEGL warning: egl: failed to create dri2 screen
warning: queue 0x7fad94043720 destroyed while proxies still attached:
  wl_display@1 still attached
libEGL warning: egl: failed to create dri2 screen
Segmentation fault (core dumped)

snap revert mpv will fix the issue.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote (last edit ):

The revision works fine in X11 in my Xubuntu 22.04.3, probably you are using wayland ? also details on your DE, snapd version output etc. would be helpful.

Try defaulting to xwayland or use a X11 session if the error occurs in wayland.

If this happens globally in wayland ? I can force the following env var 'DISABLE_WAYLAND: 1' for the snap.

Though first i need to confirm weather my assumptions on this error due to wayland is True or not ?

Also can you see if this is an upstream issue as well & not specific to snap in general ?

P.S. Very few changes have been done between Rev.50 & 100, it may be good to see if everything is fine with your native back-ends ?

Changed in mpv-snap:
status: New → Incomplete
assignee: nobody → Sameer Sharma (capecrusader-121)
Revision history for this message
PersianGolf (persiangolf81) wrote (last edit ):

"probably you are using wayland ?"
yes i'm using wayland and NVIDIA. Rev 50 was working flawlessly and reverting back to rev 50 fixes the issue for me.

"also details on your DE, snapd version output etc. would be helpful."
Sure, I use vanilla KDE 5.27 and my snapd version is:
$ snap list snapd
Name Version Rev Tracking Publisher Notes
snapd 2.60.4 20290 latest/stable canonical✓ snapd
Also my NVIDIA driver: 535.113.01

"If this happens globally in wayland ? I can force the following env var 'DISABLE_WAYLAND: 1' for the snap."

Please don't. Native Wayland is much better than XWayland. XWayland apps always look blurry. Previous revision works completely fine with wayland. Maybe upstream messed something up.

I opened up a random video and mpv gave this:

$ mpv ~/Videos/
[file] This is a directory - adding to playlist.

Playing: /home/ubuntu/Videos/something.mp4
 (+) Video --vid=1 (*) (h264 1280x720 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
libEGL warning: egl: failed to create dri2 screen
warning: queue 0x7f0bf40f7930 destroyed while proxies still attached:
  wl_display@1 still attached
[vo/gpu/opengl] Suspected software renderer or indirect context.
libEGL warning: egl: failed to create dri2 screen
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu] Failed to create GBM surface.
[vo/gpu] Failed to setup GBM.
[vo/gpu] Failed to commit atomic request: Function not implemented
Segmentation fault (core dumped)
__________________________________________________________

looks like something is wrong with video.
playing with --no-video option still works fine.

In X11 everything works fine with both Rev 50 and 100 and video poped up as expected.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote (last edit ):

Thanks for providing the info, as you said do this problem persists for one video or for all videos ?
Regarding upstream breaking its not possible as i use source-tag to build the snap and the source-tag is same as of Rev.50, only changes i did was building latest dav1d from source previously it was used from jammy repo & updating yt-dlp and placebo to latest releases.

As asked previously have you checked upstream for similar problems ?

I recommend you to stay on Rev.50 for now until this is sorted with --> sudo snap refresh --hold mpv

Changed in mpv-snap:
status: Incomplete → New
summary: - mpv rev 100 is broken
+ MPV revision 100 is broken on wayland
summary: - MPV revision 100 is broken on wayland
+ MPV revision 100 is broken on wayland + nvidia
Revision history for this message
PersianGolf (persiangolf81) wrote :

"do this problem persists for one video or for all videos ?"
For all videos AND the pseudo GUI mode. (desktop launcher command)

~$ mpv --player-operation-mode=pseudo-gui --
libEGL warning: egl: failed to create dri2 screen
warning: queue 0x7f15e40345a0 destroyed while proxies still attached:
  wl_display@1 still attached
libEGL warning: egl: failed to create dri2 screen
Segmentation fault (core dumped)

"As asked previously have you checked upstream for similar problems ?"
I tested latest mpv through pacman on arch and it worked just fine (Dual booted so same hardware). Haven't tried anything else.

"I recommend you to stay on Rev.50 for now until this is sorted with --> sudo snap refresh --hold mpv"
OK. Thanks for helping.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote (last edit ):

Hey there @persiangolf81 , is this still occurring after mpv snap upgrade to V0.37.0 ?

Revision history for this message
PersianGolf (persiangolf81) wrote :

Nope, It's now working fine on my end.

it still gives some error:

mpv something.mp4

 (+) Video --vid=1 (mpeg4 672x512 25.000fps)
 (+) Audio --aid=1 (mp3 2ch 48000Hz)
libEGL warning: egl: failed to create dri2 screen
warning: queue 0x7fb5ac0f36b0 destroyed while proxies still attached:
  wl_display@1 still attached
[vo/gpu/opengl] Suspected software renderer or indirect context.
libEGL warning: egl: failed to create dri2 screen
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu] Failed to create GBM surface.
[vo/gpu] Failed to setup GBM.
[vo/gpu] Failed to commit atomic request: Function not implemented
libEGL warning: egl: failed to create dri2 screen
warning: queue 0x7fb5ac6f6290 destroyed while proxies still attached:
  wl_display@1 still attached
[vo/gpu-next/opengl] Suspected software renderer or indirect context.
libEGL warning: egl: failed to create dri2 screen
[vo/gpu-next/opengl] Suspected software renderer or indirect context.
[vo/gpu-next/drm] Can't handle VT release - signal already used
[vo/gpu-next/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu-next] Failed to create GBM surface.
[vo/gpu-next] Failed to setup GBM.
[vo/gpu-next] Failed to commit atomic request: Function not implemented
[vo/vdpau] Error when calling vdp_device_create_x11: 1
AO: [pulse] 48000Hz stereo 2ch float
VO: [wlshm] 672x512 yuv420p
Exiting... (Quit)

I don't know if its important or not i played a 1080p video and the output was nice and smooth. Also judging by graphics usage in Nvidia Driver settings, HW accel is working as well.

Thanks, Sameer.

Changed in mpv-snap:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.