Problem With Mesa

OK, there was an update today which updated a lot of Mesa stuff. I don’t even know what that all is except it appears to have something to do with multimedia. The update complained about various parts of Mesa not being supplied, and gave me options to uninstall packages, install packages with vendor change to openSUSE, and break dependencies. I was I thought smart enough to install packages with vendor change. Perhaps I wasn’t.

The update said there were running programs that should be restarted, so I restarted the media programs I usually have open, which are Exaile and SMPlayer.

So I was playing a video on SMPlayer an hour ago and it seemed choppy and stuttering somewhat, so I decided to reboot the system entirely to see if that would fix it on the assumption that perhaps other updated components were not loaded.

Instead now when I try to play the video with SMPlayer, the backend mpv video player dies with the following errors messages in the log.

/usr/bin/mpv --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-159d --msg-level=ffmpeg/demuxer=error --video-rotate=no --no-config --no-fs --hwdec=no --sub-auto=fuzzy --ao=pulse, --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=25165848 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1 --osd-bar-align-y=0.6 --sub-ass --embeddedfonts --sub-ass-line-spacing=0 --sub-scale=1 --sub-font=Arial --sub-color=#ffffffff --sub-shadow-color=#ff000000 --sub-border-color=#ff000000 --sub-border-size=0.75 --sub-shadow-offset=2.5 --sub-font-size=50 --sub-bold=no --sub-italic=no --sub-margin-y=8 --sub-margin-x=20 --sub-codepage=ISO-8859-1 --vid=1 --sub-pos=100 --volume=53 --cache=auto --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/Data2/Work --audio-pitch-correction=yes --volume-max=110 --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-params/aspect}
INFO_VIDEO_FPS=${=container-fps:${=fps}}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_DEMUX_ROTATION=${=track-list/0/demux-rotation}
INFO_AUDIO_FORMAT=${=audio-codec-name}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-params/samplerate}
INFO_AUDIO_NCH=${=audio-params/channel-count}
INFO_LENGTH=${=duration:${=length}}
INFO_DEMUXER=${=current-demuxer:${=demuxer}}
INFO_SEEKABLE=${=seekable}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
INFO_STREAM_PATH=${stream-path}
 --audio-client-name=SMPlayer --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} VB: ${=video-bitrate:0} AB: ${=audio-bitrate:0} /Data2/Work/Work2/NATO Testing Waters on Buffer Zone as Ukraine Offensive Grinds to Halt.mp4

Running mpv from command line gives similar error messages about the DRI driver:

rhack@localhost:/Data2/Work/Work2> mpv "NATO Testing Waters on Buffer Zone as Ukraine Offensive Grinds to Halt.mp4" 
 (+) Video --vid=1 (*) (h264 1280x720 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
libEGL warning: DRI2: failed to authenticate
[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.
DRI driver not from this Mesa build ('23.1.6' vs '23.1.8')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.6' vs '23.1.8')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.6' vs '23.1.8')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.6' vs '23.1.8')
failed to bind extensions
[vo/gpu] Failed to create GBM device.
[vo/gpu] Failed to setup GBM.
[vo/gpu] Failed to commit atomic request: No such file or directory

I did a little Google research and I see that this appears to be a problem that crops up with various Linux distros, including Tumbleweed in the past. I suspected that this issue might be a mismatch between openSUSE programs and packman programs, but it looks to me like all of the relevant programs are openSUSE installs, not packman. What I have installed for mpv and SMPlayer and Mesa are the following:

Information for package mpv:
----------------------------
Repository     : Main Repository (OSS) (20230906)
Name           : mpv
Version        : 0.36.0+git20230826.83c0e980-1.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 3.5 MiB
Installed      : Yes
Status         : up-to-date
Source package : mpv-0.36.0+git20230826.83c0e980-1.1.src
Upstream URL   : http://mpv.io
Summary        : Advanced general-purpose multimedia player
    
Information for package smplayer:
---------------------------------
Repository     : Main Repository (OSS) (20230906)
Name           : smplayer
Version        : 23.6.0-1.2
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 4.4 MiB
Installed      : Yes
Status         : up-to-date
Source package : smplayer-23.6.0-1.2.src
Upstream URL   : https://smplayer.info/
Summary        : Complete frontend for MPV

Information for package Mesa:
-----------------------------
Repository     : Main Repository (OSS) (20230906)
Name           : Mesa
Version        : 23.1.6-356.1
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 9.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : Mesa-23.1.6-356.1.src
Upstream URL   : https://www.mesa3d.org
Summary        : System for rendering 3-D graphics

As you can see, I have Mesa Mesa-23.1.6-356.1.src installed and the error messages are complaining about “DRI driver not from this Mesa build (‘23.1.6’ vs ‘23.1.8’)”.

VLC appears to be unaffected.

How can I fix this? How can I get the right DRI drivers installed?

OK, I did a list of everything related to Mesa:

rhack@localhost:/Data2/Work/Work2> zypper se -is Mesa-*
Loading repository data...
Reading installed packages...

S  | Name                      | Type    | Version              | Arch   | Repository
---+---------------------------+---------+----------------------+--------+---------------------------------
i  | Mesa-demo-egl             | package | 9.0.0-1.3            | x86_64 | Main Repository (OSS) (20230906)
i  | Mesa-demo-x               | package | 9.0.0-1.3            | x86_64 | Main Repository (OSS) (20230906)
i+ | Mesa-dri                  | package | 23.1.6-356.1         | x86_64 | Main Repository (OSS) (20230906)
i+ | Mesa-gallium              | package | 23.1.6-356.1         | x86_64 | Main Repository (OSS) (20230906)
i+ | Mesa-libEGL1              | package | 23.1.6-356.1         | x86_64 | Main Repository (OSS) (20230906)
i+ | Mesa-libGL1               | package | 23.1.6-356.1         | x86_64 | Main Repository (OSS) (20230906)
i  | Mesa-libglapi0            | package | 23.1.8-1699.359.pm.1 | x86_64 | Packman
i+ | Mesa-libva                | package | 23.1.6-356.1         | x86_64 | Main Repository (OSS) (20230906)
i  | Mesa-vulkan-device-select | package | 23.1.8-1699.359.pm.3 | x86_64 | Packman

As you see, there are two packages which 23.1.8 not 23.1.6. So I used Yast to update them with vendor change to openSUSE, then rebooted the system.

Unfortunately this produced no change in the problem. mpv still crashes with the same error messages.

I did a Google search with the phrase “DRI2: failed to authenticate” and that seems to be all over the place as to reasons why it might occur, something having to do with the interaction between the GPU and the drives. I have no clue what to do about that if that is the issue. So I still think it has to do with a driver not being updated properly.

I found a list of what was installed from update yesterday morning (actually from the 30th). Here is the list of the update installed, if that helps.

2023-09-30 14:43:01|install|microsoft-edge-stable|117.0.2045.47-1|x86_64||microsoft-edge|b646c8b42dbc6dc6aeb55ecbe9a1eb0d3a2bf0ac1f43e211404ff2f0bf345c38|
2023-09-30 14:43:01|install|Mesa-vulkan-device-select|23.1.8-1699.359.pm.2|x86_64||packman|1c3c4c9840fde303908acec4490ff2abf6a306fb0cb44c919e9b568d853fbca0|
2023-09-30 14:43:01|install|libvdpau_radeonsi|23.1.8-1699.359.pm.2|x86_64||packman|0a0f426db13649372c9a14a54f5c0dc029f0c481c3a5ea9b7ed8459303a338a1|
2023-09-30 14:43:01|install|Mesa-libva|23.1.8-1699.359.pm.2|x86_64||packman|e702093a259047f10c4d2c42ea9a5ca9cf48f9bf8aa9abc1912fdd02f41b26f3|
2023-09-30 14:43:02|install|libvdpau_r600|23.1.8-1699.359.pm.2|x86_64||packman|f94d91b964a481803c77f5f2383f33a229de1605a2198b3942be2da0a0a6f004|
2023-09-30 14:43:02|install|libavutil58|6.0-1699.5.pm.10|x86_64||packman|b1ca315fe91cc10c299f6ac035b0ba9fef56ba4d59339ae973363807d0c50501|
2023-09-30 14:43:02|install|Mesa-gallium|23.1.8-1699.359.pm.2|x86_64||packman|74125dee3e60d7b277dc934c082e8920ae0477a79d17f86d69382bfcc551ef40|
2023-09-30 14:43:02|install|Mesa-dri|23.1.8-1699.359.pm.2|x86_64||packman|c3c3ac5ad3ec94b24ed66427f85134efce936e0f07a7a6fd3313105ae52f652a|
2023-09-30 14:43:02|install|libvulkan_radeon|23.1.8-1699.359.pm.2|x86_64||packman|faebac4361cd74aec98f3367bf0b7d5f81de67f6ef9855c9e61260000ee485ce|
2023-09-30 14:43:03|install|libpostproc57|6.0-1699.5.pm.10|x86_64||packman|d0ed6bbde7362609cb8b6ac4f11e7434f71e8bc9837d03c18fb79417337c675c|
2023-09-30 14:43:03|install|libswresample4|6.0-1699.5.pm.10|x86_64||packman|677438e8ebf98a59997486e1465f37f59d188d13c7d40110640cc44a12ac950d|
2023-09-30 14:43:03|install|libswscale7|6.0-1699.5.pm.10|x86_64||packman|724ed526adb0f956fe18809ab7bcd30e8f72b993d44c7aa9b5416eb0e4e85887|
2023-09-30 14:43:03|install|libavcodec60|6.0-1699.5.pm.10|x86_64||packman|be9195e324c532f3164ddb6b00ab8076c41c8113809dc0a210c981d81d6489a5|
2023-09-30 14:43:04|install|libavformat60|6.0-1699.5.pm.10|x86_64||packman|47c1029b67776e16fbbca6eeaeae59591b5d15b10558e1b1576df6aa1f858e35|
2023-09-30 14:43:04|install|libavfilter9|6.0-1699.5.pm.10|x86_64||packman|77c8e13d5308292ec42db7bcd91394543571bc16da99ceda7fdc39d5ce60fd68|
2023-09-30 14:43:04|install|libavdevice60|6.0-1699.5.pm.10|x86_64||packman|eb51ddffc40f157e138bbd9ce909e7e41c7e4c543434a51be0491d040f07bec3|
2023-09-30 14:43:04|install|ffmpeg-6|6.0-1699.5.pm.10|x86_64||packman|46d8888f552c9432bac4cf97e3c735f5307c684582e0ff1cb41217b247cf39de|
2023-10-01 16:55:02|command|root@localhost.localdomain|'zypper' 'dup'|
2023-10-01 16:55:03|install|Mesa-libEGL1|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|16288090ac0e957335934a3a3e4205e3fc3c09f7464c94b60e572c6bbf25f3fc44f9b34b1b0d79522c6acfea055337af9a1ab9147eb7823a94fc0f3d919ceb30|
2023-10-01 16:55:03|install|Mesa-libva|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|b2fe072009842424cecf45e40eff4aefc5aa0ab8b70d3683b7ceba13be5589b9747f5b834ded1b568ad84a0f405b4d3de5778bae79396636cb3726a659eb2597|
2023-10-01 16:55:03|install|libavutil58|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|816bd145d5802a28590db19598b37ee521a05dc0707f82ce4371bc20f1f5af823db5820892c5420eda4095f71280282a6b4c3f8ba2c751a12ecd243837e1998d|
2023-10-01 16:55:03|install|libvdpau_r600|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|8ef0db4aee56124b87d320f03d2156cd49da537fd2426416f2094ab1d6c6caae0765f21c316bc5db5acbee4e9c62a39554abe1a5abdecba151e070c476e9ec14|
2023-10-01 16:55:03|install|libvdpau_radeonsi|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|075397caa31bc6d01366267b2f91f94d2cf06275e006ca3e03ce06d8381ca54bd1402fb5a5d7d351a4115e0c2dbfa6e80995710c50f8663f01b4b276a3f60f9d|
2023-10-01 16:55:03|install|Mesa|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|d8fae43b19a0fac63200d2462ad7991712380b298535918b5593c3b237dc93b16229c3af45b6caa14f0ab842eafd217b04e3e4efa9a7a3d1e0130b6246d4af20|
2023-10-01 16:55:04|install|Mesa-libGL1|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|88faee06126fbf771f0744c84c22269d6ff6e35e49d1290c410b1a204012cfeedffc4be2ffc2be5cc622b4a629b254257d53ae35791aa825061f8f091705e5a7|
2023-10-01 16:55:04|install|libswscale7|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|56db2828026c412dcc71b8558c2c3dbd4ed69ae536dfdd6dcfcaac4847535f179375b056f7799fdf9bc826e8d0a30620ae6b9087d29fcebbe58442942df44eb5|
2023-10-01 16:55:04|install|libswresample4|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|271be56a0b6144cbe10cc6beced932bb4d5ef858ad659f717e18b1ff30d3eb986f853cc042ba2cb113e5b60d52de999247f7f56795026696091e01e50ae1f35c|
2023-10-01 16:55:04|install|libpostproc57|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|5e938fc016a4658706abf3ceec29655db6982d4725de92bfedda92634981a123f815e71b5119d516b7b410f7524071c8f87427e7613ae3ece56e4e14d4d481b0|
2023-10-01 16:55:05|install|Mesa-dri|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|e989575bf626966287714894daf70a4304a532282ba73fb38b4c005b133337b4ff02bd5d52060d4bacd6795dfbe82718fe79e48ab08fd6bdca6fbe6c4bdd0018|
2023-10-01 16:55:05|install|libavcodec60|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|153d811a4d0acf6402855f0a56ae4003c2008f8eb0802e712f58359a6bb26bf33f80972568f63da4b1f0765db3624ceb4d8fd08b8669968825a870f3501bbc82|
2023-10-01 16:55:05|install|Mesa-gallium|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|c8d58ac75eeb8f869490676adfb0e03fa4ef81c39f0ceab7a55c795b76b0e63a900db0f6fefe8e9ec02cf81b1fffeea9b5c5c3415263ec84b7e0746f3199f162|
2023-10-01 16:55:05|install|libavformat60|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|e7fe8f33574acf0dcd91834ad646f99a99cce6fff3cee42f0e054b2189d51e4695ea4d64d6ae4213a0e1804c6b08004d70dbf7d398f12897355607c7c507c7f8|
2023-10-01 16:55:06|install|libavfilter9|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|16e4669cba1915b9c1b6314c331d055c86ed3b17734c427e485fefbe73ec56906e6c57b7570fe1e25047260142577a08b29bbbffd6caf6ba2348d5eeb1194dcf|
2023-10-01 16:55:06|install|libavdevice60|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|3e3aadc1532ce3f7dcfc8d9da26f833f37d0f161ac923ae8d48e533904a6f7b3e09e0585c4ba7ed8264da4441086d23f69b5442d4ef3a245f5fa3f67c6bd3364|
2023-10-01 16:55:06|install|ffmpeg-6|6.0-3.2|x86_64|root@localhost.localdomain|download.opensuse.org-oss|8da5ae3376d8f943b85407b7fc5b0cfa1f30118c4623e0ce25ec1dfdadba01932629fbaae53b5f30ab788ab420bbd287fca2bcd492fec1e95fb7e1102d4cff1d|
2023-10-01 16:55:06|install|Mesa-vulkan-device-select|23.1.8-1699.359.pm.3|x86_64||packman|aaf9c74c07617164c4901557a8ac16188b5ced558d2bd69990331351419f789c|
2023-10-01 16:55:06|install|libvulkan_radeon|23.1.6-356.1|x86_64|root@localhost.localdomain|download.opensuse.org-oss|d2bc3c247b5f41d4fc5c04ffea0e3fcde4b831496deac313890d664ca700bb4b1a36c70c6ba7e4e8168f6d58abd1342ac8809d2e78a6fbe8df41d9c73bd24b8c|

Should I switch all of this stuff back from Packman to openSUSE? The Mesa installs appear to be a mix of 23.1.6 and 23.1.8, which doesn’t sound right to me. Shouldn’t they all be in the same build?

Actually on reviewing the current versions installed, all the 23.1.8 have been changed to 23.1.6 either at the time of install or when I manually changed those 2 others I mentioned earlier.

So where could the conflict be?

Fixed it! I found a web page where someone was having similar problems and someone suggested to them that they search Yast for all mention of Mesa including in the Description block. So i did that as well as “RPM Requires” and “RPM Provides” checkboxes.

I found this was still on Mesa 23.1.8:

libgbm1 - Generic buffer management API
This package contains the GBM buffer management library. It provides a mechanism for allocating buffers for graphics rendering tied to Mesa.
GBM is intended to be used as a native platform for EGL on drm or openwfd.

I change vendor to openSUSE, rebooted - problem fixed. The video I was trying to play now plays, although it still looks a little jittery from time to time. Probably an issue either with the video itself or something else in the update that occurred yesterday. For now, however, the issue appears to be solved. SMPlayer and mpv play.

Update: Tried to play another video, no sound from SMPlayer. Finally installed mplayer and switched the backend from mpv to mplayer. Now I have video and no jitter. So whatever the problem was with the recent updates, switching from mpv to mplayer as the backend appears to have fixed it. Hopefully that’s the end of it.