Ok, I did some more testing on this one: Does not matter if it's a gif or a video.
What __does__ matter is if the gif or video is zoomed, AND make fullscreen, e.g using Alt + and Alt - and "f" for fullscreen, and of course "L" for loop infinitely so the video or gif keeps playing and doesn't immediately exit. When the video or gif is zoomed, then when mpv exits, e.g using "q", then either Wayland crashes or the desktop session auto logs out. Needless to say, this is annoying. Found this: [vo=gpu-next] Video hangs after seek then mpv crashes after CTRL-C https://github.com/mpv-player/mpv/issues/9526 and so: $ mpv --vo=help ------->> 20231122@11:16:23 <<------- Available video outputs: libmpv render API for libmpv gpu Shader-based GPU Renderer gpu-next Video output based on libplacebo vdpau VDPAU with X11 wlshm Wayland SHM video output (software scaling) xv X11/Xv sdl SDL 2.0 Renderer dmabuf-wayland Wayland dmabuf video output vaapi VA API with X11 x11 X11 (software scaling) null Null video output image Write video frames to image files tct true-color terminals caca libcaca drm Direct Rendering Manager (software scaling) sixel terminal graphics using sixels and testing this (one line): $ mpv --vo=null --gpu-debug=yes /usr/share/cups/doc-root/images/wait.gif > mpv-out.log 2>&1 is fine, but no interaction of course, so testing the "gpu-next" ("Video output based on libplacebo" seemingly software rendering) seemed like a good place to start (again, single line): $ mpv --vo=gpu-next --gpu-debug=yes /usr/share/cups/doc-root/images/wait.gif > mpv-out.log 2>&1 and surprisingly, after L(oop), f(ullscreen), zoom (with Alt +), then q(uit), Wayland hung. Finally! we have some data. See attached. I note the first log output line as follows: [vo/gpu-next/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback. and I have experienced on occasion, the screen blanking as stated in that log line above. Also experienced that under Ubunutu. But, the last line of log/debug within that log output file, is possibly the hopeful bit: [vo/gpu-next/libplacebo] gl_fb_query: OpenGL error: GL_INVALID_OPERATION I only find this when searching: https://github.com/mpv-player/mpv/issues/10324 which says "Ah yeah, that message is from libplacebo. It's harmless but perhaps scary looking." but in my case, the "scary" (Wayland or desktop crash/ auto logout/ whatever it is that logs me out of my desktop) is in fact happening. I also note this: mpv crash in Ubuntu 22.10 https://askubuntu.com/questions/1447790/mpv-crash-in-ubuntu-22-10 which suggests: "This fixed it. $ sudo apt install intel-media-va-driver-non-free The above will REMOVE intel-media-va-driver " and I note that I have the non-free driver installed, not the intel-media-va-driver (free) driver. Should I perhaps remove the non-free driver (with all its hardware codec support) and try the 'free' driver? In any case, if it's the driver, I would like to locate/identify the bug and file a bug report, so that the non-free driver developers can look at it, or otherwise file a bug report against the appropriate (Wayland?) component so that can get fixed. Perhaps I should re-open the bug above about that GL_INVALID_OPERATION error? At this point, I'm not sure what's the best thing to do, or how to solve this problem - I am at my limit of debugging this. If anyone can suggest a next step I would appreciate that. Best regards, Zenaan On 11/21/23, Zenaan Harkness <zen...@gmail.com> wrote: > Using mpv for media - videos, music and gifs. > > Running mpv to view a gif, e.g: > > mpv /usr/share/cups/doc-root/images/wait.gif > > - then immediately type "L" to loop (so mpv does not exit too quickly) > > - then type "f" to make mpv full screen > > - then type "q" to quit mpv > > this causes wayland to die/ auto "logout" to occur, losing all my > terms and other apps, and having to log back in. > > Any ideas? >
(+) Video --vid=1 (gif 16x16 20.000fps) [vo/gpu-next/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback. VO: [gpu-next] 16x16 bgra [vo/gpu-next/libplacebo] GL: GL_INVALID_OPERATION in glGetFramebufferAttachmentParameteriv(invalid pname GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE) [vo/gpu-next/libplacebo] Backtrace: [vo/gpu-next/libplacebo] #0 /lib/x86_64-linux-gnu/libplacebo.so.208(+0x767c1) [0x7fc1db6767c1] [vo/gpu-next/libplacebo] #1 /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0x26f6fa) [0x7fc1bda6f6fa] [vo/gpu-next/libplacebo] #2 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_opengl_wrap+0x2f2) [0x7fc1db6b8692] [vo/gpu-next/libplacebo] #3 /lib/x86_64-linux-gnu/libplacebo.so.208(+0xbbffb) [0x7fc1db6bbffb] [vo/gpu-next/libplacebo] #4 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_swapchain_resize+0x41) [0x7fc1db69aca1] [vo/gpu-next/libplacebo] #5 mpv(gpu_ctx_resize+0x43) [0x55eb9ede2ce3] [vo/gpu-next/libplacebo] #6 mpv(+0x160b09) [0x55eb9eddfb09] [vo/gpu-next/libplacebo] #7 mpv(+0x160b3f) [0x55eb9eddfb3f] [vo/gpu-next/libplacebo] #8 mpv(+0x12cf46) [0x55eb9edabf46] [vo/gpu-next/libplacebo] #9 mpv(mp_dispatch_queue_process+0xd7) [0x55eb9ed35fb7] [vo/gpu-next/libplacebo] #10 mpv(+0x12e115) [0x55eb9edad115] [vo/gpu-next/libplacebo] #11 /lib/x86_64-linux-gnu/libc.so.6(+0x89044) [0x7fc1db038044] [vo/gpu-next/libplacebo] #12 /lib/x86_64-linux-gnu/libc.so.6(+0x10961c) [0x7fc1db0b861c] [vo/gpu-next/libplacebo] GL: GL_INVALID_OPERATION in glGetFramebufferAttachmentParameteriv(invalid pname GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE) [vo/gpu-next/libplacebo] Backtrace: [vo/gpu-next/libplacebo] #0 /lib/x86_64-linux-gnu/libplacebo.so.208(+0x767c1) [0x7fc1db6767c1] [vo/gpu-next/libplacebo] #1 /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0x26f6fa) [0x7fc1bda6f6fa] [vo/gpu-next/libplacebo] #2 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_opengl_wrap+0x35e) [0x7fc1db6b86fe] [vo/gpu-next/libplacebo] #3 /lib/x86_64-linux-gnu/libplacebo.so.208(+0xbbffb) [0x7fc1db6bbffb] [vo/gpu-next/libplacebo] #4 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_swapchain_resize+0x41) [0x7fc1db69aca1] [vo/gpu-next/libplacebo] #5 mpv(gpu_ctx_resize+0x43) [0x55eb9ede2ce3] [vo/gpu-next/libplacebo] #6 mpv(+0x160b09) [0x55eb9eddfb09] [vo/gpu-next/libplacebo] #7 mpv(+0x160b3f) [0x55eb9eddfb3f] [vo/gpu-next/libplacebo] #8 mpv(+0x12cf46) [0x55eb9edabf46] [vo/gpu-next/libplacebo] #9 mpv(mp_dispatch_queue_process+0xd7) [0x55eb9ed35fb7] [vo/gpu-next/libplacebo] #10 mpv(+0x12e115) [0x55eb9edad115] [vo/gpu-next/libplacebo] #11 /lib/x86_64-linux-gnu/libc.so.6(+0x89044) [0x7fc1db038044] [vo/gpu-next/libplacebo] #12 /lib/x86_64-linux-gnu/libc.so.6(+0x10961c) [0x7fc1db0b861c] [vo/gpu-next/libplacebo] GL: GL_INVALID_OPERATION in glGetFramebufferAttachmentParameteriv(invalid pname GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE) [vo/gpu-next/libplacebo] Backtrace: [vo/gpu-next/libplacebo] #0 /lib/x86_64-linux-gnu/libplacebo.so.208(+0x767c1) [0x7fc1db6767c1] [vo/gpu-next/libplacebo] #1 /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0x26f6fa) [0x7fc1bda6f6fa] [vo/gpu-next/libplacebo] #2 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_opengl_wrap+0x379) [0x7fc1db6b8719] [vo/gpu-next/libplacebo] #3 /lib/x86_64-linux-gnu/libplacebo.so.208(+0xbbffb) [0x7fc1db6bbffb] [vo/gpu-next/libplacebo] #4 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_swapchain_resize+0x41) [0x7fc1db69aca1] [vo/gpu-next/libplacebo] #5 mpv(gpu_ctx_resize+0x43) [0x55eb9ede2ce3] [vo/gpu-next/libplacebo] #6 mpv(+0x160b09) [0x55eb9eddfb09] [vo/gpu-next/libplacebo] #7 mpv(+0x160b3f) [0x55eb9eddfb3f] [vo/gpu-next/libplacebo] #8 mpv(+0x12cf46) [0x55eb9edabf46] [vo/gpu-next/libplacebo] #9 mpv(mp_dispatch_queue_process+0xd7) [0x55eb9ed35fb7] [vo/gpu-next/libplacebo] #10 mpv(+0x12e115) [0x55eb9edad115] [vo/gpu-next/libplacebo] #11 /lib/x86_64-linux-gnu/libc.so.6(+0x89044) [0x7fc1db038044] [vo/gpu-next/libplacebo] #12 /lib/x86_64-linux-gnu/libc.so.6(+0x10961c) [0x7fc1db0b861c] [vo/gpu-next/libplacebo] GL: GL_INVALID_OPERATION in glGetFramebufferAttachmentParameteriv(invalid pname GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE) [vo/gpu-next/libplacebo] Backtrace: [vo/gpu-next/libplacebo] #0 /lib/x86_64-linux-gnu/libplacebo.so.208(+0x767c1) [0x7fc1db6767c1] [vo/gpu-next/libplacebo] #1 /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0x26f6fa) [0x7fc1bda6f6fa] [vo/gpu-next/libplacebo] #2 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_opengl_wrap+0x394) [0x7fc1db6b8734] [vo/gpu-next/libplacebo] #3 /lib/x86_64-linux-gnu/libplacebo.so.208(+0xbbffb) [0x7fc1db6bbffb] [vo/gpu-next/libplacebo] #4 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_swapchain_resize+0x41) [0x7fc1db69aca1] [vo/gpu-next/libplacebo] #5 mpv(gpu_ctx_resize+0x43) [0x55eb9ede2ce3] [vo/gpu-next/libplacebo] #6 mpv(+0x160b09) [0x55eb9eddfb09] [vo/gpu-next/libplacebo] #7 mpv(+0x160b3f) [0x55eb9eddfb3f] [vo/gpu-next/libplacebo] #8 mpv(+0x12cf46) [0x55eb9edabf46] [vo/gpu-next/libplacebo] #9 mpv(mp_dispatch_queue_process+0xd7) [0x55eb9ed35fb7] [vo/gpu-next/libplacebo] #10 mpv(+0x12e115) [0x55eb9edad115] [vo/gpu-next/libplacebo] #11 /lib/x86_64-linux-gnu/libc.so.6(+0x89044) [0x7fc1db038044] [vo/gpu-next/libplacebo] #12 /lib/x86_64-linux-gnu/libc.so.6(+0x10961c) [0x7fc1db0b861c] [vo/gpu-next/libplacebo] GL: GL_INVALID_OPERATION in glGetFramebufferAttachmentParameteriv(invalid pname GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE) [vo/gpu-next/libplacebo] Backtrace: [vo/gpu-next/libplacebo] #0 /lib/x86_64-linux-gnu/libplacebo.so.208(+0x767c1) [0x7fc1db6767c1] [vo/gpu-next/libplacebo] #1 /usr/lib/x86_64-linux-gnu/dri/iris_dri.so(+0x26f6fa) [0x7fc1bda6f6fa] [vo/gpu-next/libplacebo] #2 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_opengl_wrap+0x3af) [0x7fc1db6b874f] [vo/gpu-next/libplacebo] #3 /lib/x86_64-linux-gnu/libplacebo.so.208(+0xbbffb) [0x7fc1db6bbffb] [vo/gpu-next/libplacebo] #4 /lib/x86_64-linux-gnu/libplacebo.so.208(pl_swapchain_resize+0x41) [0x7fc1db69aca1] [vo/gpu-next/libplacebo] #5 mpv(gpu_ctx_resize+0x43) [0x55eb9ede2ce3] [vo/gpu-next/libplacebo] #6 mpv(+0x160b09) [0x55eb9eddfb09] [vo/gpu-next/libplacebo] #7 mpv(+0x160b3f) [0x55eb9eddfb3f] [vo/gpu-next/libplacebo] #8 mpv(+0x12cf46) [0x55eb9edabf46] [vo/gpu-next/libplacebo] #9 mpv(mp_dispatch_queue_process+0xd7) [0x55eb9ed35fb7] [vo/gpu-next/libplacebo] #10 mpv(+0x12e115) [0x55eb9edad115] [vo/gpu-next/libplacebo] #11 /lib/x86_64-linux-gnu/libc.so.6(+0x89044) [0x7fc1db038044] [vo/gpu-next/libplacebo] #12 /lib/x86_64-linux-gnu/libc.so.6(+0x10961c) [0x7fc1db0b861c] [vo/gpu-next/libplacebo] gl_fb_query: OpenGL error: GL_INVALID_OPERATION [KV: 00:00:00 / 00:00:00 (0%) [KV: 00:00:00 / 00:00:00 (8%) [KV: 00:00:00 / 00:00:00 (17%) [KV: 00:00:00 / 00:00:00 (25%) [KV: 00:00:00 / 00:00:00 (33%) [KV: 00:00:00 / 00:00:00 (42%) [K(Paused) V: 00:00:00 / 00:00:00 (50%) [KV: 00:00:00 / 00:00:00 (50%) [KV: 00:00:00 / 00:00:00 (58%) [KV: 00:00:00 / 00:00:00 (67%) [KV: 00:00:00 / 00:00:00 (75%) [KV: 00:00:00 / 00:00:00 (83%) [KV: 00:00:00 / 00:00:00 (92%) [KV: 00:00:00 / 00:00:00 (0%) [KV: 00:00:00 / 00:00:00 (8%) [KV: 00:00:00 / 00:00:00 (17%) [KV: 00:00:00 / 00:00:00 (25%) [KV: 00:00:00 / 00:00:00 (33%) [KV: 00:00:00 / 00:00:00 (42%) [KV: 00:00:00 / 00:00:00 (50%) [KV: 00:00:00 / 00:00:00 (58%) [KV: 00:00:00 / 00:00:00 (67%) [KV: 00:00:00 / 00:00:00 (75%) [KV: 00:00:00 / 00:00:00 (83%) [KV: 00:00:00 / 00:00:00 (92%) [KV: 00:00:00 / 00:00:00 (0%) [KV: 00:00:00 / 00:00:00 (8%) [KV: 00:00:00 / 00:00:00 (17%) [KV: 00:00:00 / 00:00:00 (25%) [KV: 00:00:00 / 00:00:00 (33%) [KV: 00:00:00 / 00:00:00 (42%) [KV: 00:00:00 / 00:00:00 (50%) [KV: 00:00:00 / 00:00:00 (58%) [KV: 00:00:00 / 00:00:00 (67%) [KV: 00:00:00 / 00:00:00 (75%) [KV: 00:00:00 / 00:00:00 (83%) [KV: 00:00:00 / 00:00:00 (92%) [KV: 00:00:00 / 00:00:00 (0%) [KV: 00:00:00 / 00:00:00 (8%) [KV: 00:00:00 / 00:00:00 (17%) [KV: 00:00:00 / 00:00:00 (25%) [KV: 00:00:00 / 00:00:00 (33%) [KV: 00:00:00 / 00:00:00 (42%) [KV: 00:00:00 / 00:00:00 (50%) [KV: 00:00:00 / 00:00:00 (58%) [KV: 00:00:00 / 00:00:00 (67%) [KV: 00:00:00 / 00:00:00 (75%) [KV: 00:00:00 / 00:00:00 (83%) [KV: 00:00:00 / 00:00:00 (92%) [KV: 00:00:00 / 00:00:00 (0%) [KV: 00:00:00 / 00:00:00 (8%) [KV: 00:00:00 / 00:00:00 (17%) [KV: 00:00:00 / 00:00:00 (25%) [KV: 00:00:00 / 00:00:00 (33%) [KV: 00:00:00 / 00:00:00 (42%) [KV: 00:00:00 / 00:00:00 (50%) [KV: 00:00:00 / 00:00:00 (58%) [KV: 00:00:00 / 00:00:00 (67%) [KV: 00:00:00 / 00:00:00 (75%) [KV: 00:00:00 / 00:00:00 (83%) [KV: 00:00:00 / 00:00:00 (92%) [KV: 00:00:00 / 00:00:00 (0%) [KV: 00:00:00 / 00:00:00 (8%) [KV: 00:00:00 / 00:00:00 (17%) [KV: 00:00:00 / 00:00:00 (25%) [KV: 00:00:00 / 00:00:00 (33%) [KV: 00:00:00 / 00:00:00 (42%) [KV: 00:00:00 / 00:00:00 (50%) [KV: 00:00:00 / 00:00:00 (58%) [KV: 00:00:00 / 00:00:00 (67%) [KV: 00:00:00 / 00:00:00 (75%) [KV: 00:00:00 / 00:00:00 (83%) [KV: 00:00:00 / 00:00:00 (92%) [KV: 00:00:00 / 00:00:00 (0%) [KV: 00:00:00 / 00:00:00 (8%) [KV: 00:00:00 / 00:00:00 (17%) [KV: 00:00:00 / 00:00:00 (25%) Exiting... (Quit)