You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pressure-vessel fails to link in gbm backends from the host (regression since mesa-24.3.0) #797
But it does not link in the /usr/lib/gbm directory. This means that when an application tries to use libgbm from within the container, it fails with:
MESA-LOADER: failed to open dri: /usr/lib64/gbm/dri_gbm.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/gbm/, suffix _gbm)
By analogy, dri uses a similar mechanism and pressure-vessel does handle it correctly:
Is there an example of a hardware/OS/game combination where this concretely causes a problem, preferably with either a native Linux title or an official/supported version of Proton?
The pressure-vessel code that handles dri drivers is here. A similar codepath is needed for gbm.
This seems likely to be a correct diagnosis, but it isn't clear from your report what practical impact this has.
It impacts something I'm working on. In terms of Steam apps this tool applies to, VTube Studio and Warudo are some, but there are probably others. As far as hardware, this happens on at least Radeon and I presume anything using Mesa drivers at the very least. OSes, probably ~everything but confirmed on Fedora and Debian-based distros. As for Proton versions, aside for the tool itself being an installable extension for Proton itself, the base version just needs to be 10 or newer.
As far as potential audience, I would say this tool would benefit and will probably wind up being used by the majority of VTube Studio users on Linux, if you want to put some stats on this (I'm fixing what is a major regression from Windows for VTubing on Linux). Obviously we're not there yet since I just pre-released this yesterday, but it would be nice to fix this bug before ending up with all the users using hacks to work around it ^^ (and people are certainly interested!)
I sent an email to wine-devel about this extension, and changes in proton would also help make it easier to integrate. I planned to start off as a third-party installable without having to bother Valve/Proton about this from day one, but I didn't expect a bug in pressure-vessel (which everyone uses precompiled through steam runtime, even outside of the "supported" Steam/Proton use cases) to affect me...
I've seen libgbm log messages for a fairly long time without a functional impact to to the feedback coming in along with it appearing in the log. I think that @smcv's comment is asking for help identifying a test case where libgbm is required for a game to run as intended instead of a scenario where a non-fatal warning appears in the logs.
A simple workaround is to set GBM_BACKENDS_PATH=/run/host/usr/lib64/gbm, which makes things work.
Beware that if pressure-vessel learns to handle GBM modules in a similar way to how it currently handles DRI modules, this workaround will change from "makes it work" to "makes it not work".
I think that @smcv's comment is asking for help identifying a test case where libgbm is required for a game to run as intended instead of a scenario where a non-fatal warning appears in the logs.
libgbm is required for libfunnel, which is a dependency of the tool I linked above. Without it, it does not work (and therefore users will be unable to use that tool to support PipeWire streaming from Steam apps using Spout2, like the ones I mentioned).
I'd provide the libfunnel demo apps as a native linux test case you can use, but there's another catch: steamrt3 is currently shipping an ancient libpipewire, which is also not going to work. I currently work around this by doing some positively horrendous things to link in libpipewire and all the required modules and plugins statically... I was thinking of asking for a backport, but with steamrt4 coming up, I figured it'd be easier to wait and see and use the static hack for now, and ask for a minor backport if needed for steamrt4 (for some relatively recent libpipewire fixes for proper Nvidia/explicit sync support) and drop the static hack once Proton moves over to it, rather than asking for a much larger version bump for steamrt3. Of course, libgbm backends are not something I can reasonably ship statically like I can libpipewire, so that's a bigger issue. (edit: just checked, steamrt4 has an ABI-compatible new enough libpipewire so it will work with the libfunnel test apps, though it's missing recent fixes/minor bug-related-feature addons that would be nice to have eventually, but not mandatory).
There's another conversation to be had about how to ship/integrate things like the spout2 support going forward (the current solution dumping it into an existing Proton install ad-hoc, small wine/proton core changes + simple install into WINEPREFIX only, one-line proton launcher change + WINEDLLPATH requirement, even something distributed on steam itself?, or outright merging the whole thing into proton/wine are all possibilities), but I wanted to file this bug first since this gbm issue is a problem no matter what.
A simple workaround is to set GBM_BACKENDS_PATH=/run/host/usr/lib64/gbm, which makes things work.
Beware that if pressure-vessel learns to handle GBM modules in a similar way to how it currently handles DRI modules, this workaround will change from "makes it work" to "makes it not work".
git clone https://github.com/hoshinolina/libfunnel/
cd libfunnel
meson setup build -Degl=false
ninja -C build
<path to steamrt4>/run build/funnel-test-vk
MESA-LOADER: failed to open dri: /usr/lib64/gbm/dri_gbm.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/gbm, suffix _gbm)
funnel-test-vk: ../test-vk.c:867: main: Assertion `ret == 0' failed.
The outcome with the spout2pw setup and Proton is the same, just under a bunch more layers of complexity/wrapping.
As far as native Linux apps go, I plan to develop a Godot component for libfunnel and am in talks with related app developers to integrate support, and several have expressed interest. It's not particularly relevant for most "games" in the gaming sense, but any app likely to want to provide a dedicated video output feed for YouTube/Twitch streaming (usually without the UI and possibly with alpha with transparency) or for video mixing/productions is likely to end up using libfunnel like this, and any such apps distributed via Steam will run into the issue. This is a whole ecosystem on Windows (Spout2) and macOS (Syphon) that is essentially unfilled on Linux today due to PipeWire video being too hard to use and poorly documented, and that is what I'm hoping to fix with libfunnel.
The project I've been working on is now released, and I ended up having to add quite a bit of logic to make the workaround work properly across distros/setups... it's quite messy.
This is being worked on, tracked as steamrt/tasks#900 internally. The Steam Runtime's diagnostic tool can now detect gbm backends (similar to how it detects DRI and VA-API drivers), which is most of the infrastructure for this; that just needs wiring up inside pressure-vessel now.
Awesome, thanks! I'll give it a try tomorrow.
Is there any easy way I can identify if the installed runtime has this fix (once released)? I'd like to get ahead of the release with gating the spout2pw workaround on that. I'd also appreciate it if you give me a rough TLDR on the expected release schedule/flow (I'm not familiar with how SRT rollouts work).
~~ Lina
Is there any easy way I can identify if the installed runtime has this fix (once released)?
From inside the container? Probably the easiest is that if the host system has one or more GBM backends (which seems to be a requirement for your project anyway?) then the environment variable GBM_BACKENDS_PATH will be set to a value that mentions pressure-vessel somewhere.
I'd also appreciate it if you give me a rough TLDR on the expected release schedule/flow (I'm not familiar with how SRT rollouts work)
Official beta will happen when it happens, I would guess maybe next week but I can't guarantee a timeline. When it exists, you can opt-in to it by following something similar to these instructions, but instead of CS2, select the beta branch of one of the Steam Linux Runtime tools. The beta branch is variously called client_beta or just beta depending on major version.
If the beta contains a showstopper regression then it might have to be held back or even reverted.
After the beta has had "enough" testing, it gets copied to the default branch and is what users will get by default. This usually happens at the same time a new beta is released: typically expect about once a month, but again I can't guarantee anything.
If the new default version contains a showstopper regression that wasn't caught during the beta phase then, again, it might have to be held back or even reverted. (This is unusual, but can happen.)
In principle from outside (since I need to find out so as to not set GBM_BACKENDS_PATH myself before launching it, which happens outside the container), but it's easy enough to just run sh -c 'echo...' inside as a probe if that's the best way.
Thanks for the notes! I'll cook up an update and announce it. What's the behavior if GBM_BACKENDS_PATH is already set on the host? If it's ignored it'd be harmless, if it breaks then I'll do an announcement to encourage people to upgrade spout2pw before getting caught.
~~ Lina
In principle from outside (since I need to find out so as to not set GBM_BACKENDS_PATH myself before launching it, which happens outside the container)
VERSIONS.txt in the various SteamLinuxRuntime_*/ directories is machine-readable, if you must. It's a tab-delimited table, the relevant row is the one that starts with pressure-vessel, and versions strictly older than 0.20260218.0 (according to strverscmp()) need the workaround. 0.20260218.0 is the first version that doesn't.
(Not a super stable API guarantee, but it has been true for a few years, so you can safely assume that any version older than that will be something you can parse successfully.)
What's the behavior if GBM_BACKENDS_PATH is already set on the host?
It's assumed to be correct for the host (in case you genuinely do have your gbm backend in /opt/my-super-gbm-backend/ or something), and used to find gbm backends on the host to "capture" into the container, aiming to follow the same logic that "real" Mesa would. The general design principle for SLR is that if it wants to use some component from the host, then it tries to locate that component in the same way that the "real" host libraries would do.
So, as I warned in #797 (comment), setting GBM_BACKENDS_PATH to a value that contains /run/host is very likely to break the new version.
Updated betas are now available. They will be copied to the default branch after more testing.
Depending on the game (or Proton version), the updated version identifies itself as SteamLinuxRuntime_soldier 2.0.20260218.209090, SteamLinuxRuntime_sniper 3.0.20260218.209091, or SteamLinuxRuntime_4 4.0.20260218.209092 (the latter not used in production for anything yet, I don't think). It's the version of pressure-vessel that is actually significant for this particular issue: you want 0.20260218.0 or newer.
(The logic falls back to assuming newer steamrt and not applying the workaround, so if any of the steamrt path detection and VERSIONS.txt stuff breaks in the future, it won't cause an issue)
Tested under umu-launcher (already picking up the beta channel), and Steam using both old/new steamrt. Tested the new steamrt under both Flatpak and non-Flatpak, AMD and Nvidia (all combinations).
FWIW, under Fedora, the old workaround does not break due to:
$ ls -al /run/host
lrwxrwxrwx. 1 root root 3 Jan 28 15:40 /run/host -> ../
but this is not the case on other distros of course.
Thank you for fixing this so quickly! I feel a lot more comfortable not having to have that ugly workaround in there.
Depending on the game (or Proton version), the updated version identifies itself as SteamLinuxRuntime_soldier 2.0.20260218.209090, SteamLinuxRuntime_sniper 3.0.20260218.209091, or SteamLinuxRuntime_4 4.0.20260218.209092 (the latter not used in production for anything yet, I don't think). It's the version of pressure-vessel that is actually significant for this particular issue: you want 0.20260218.0 or newer.
This version was promoted to stable on 2026-03-17, so I think we can close this issue now. (I can't do this myself: @kisak-valve or @hoshinolina, perhaps one of you could close it?)
Activity
smcv commentedon Jan 19, 2026
Is there an example of a hardware/OS/game combination where this concretely causes a problem, preferably with either a native Linux title or an official/supported version of Proton?
This seems likely to be a correct diagnosis, but it isn't clear from your report what practical impact this has.
hoshinolina commentedon Jan 19, 2026
It impacts something I'm working on. In terms of Steam apps this tool applies to, VTube Studio and Warudo are some, but there are probably others. As far as hardware, this happens on at least Radeon and I presume anything using Mesa drivers at the very least. OSes, probably ~everything but confirmed on Fedora and Debian-based distros. As for Proton versions, aside for the tool itself being an installable extension for Proton itself, the base version just needs to be 10 or newer.
As far as potential audience, I would say this tool would benefit and will probably wind up being used by the majority of VTube Studio users on Linux, if you want to put some stats on this (I'm fixing what is a major regression from Windows for VTubing on Linux). Obviously we're not there yet since I just pre-released this yesterday, but it would be nice to fix this bug before ending up with all the users using hacks to work around it ^^ (and people are certainly interested!)
I sent an email to wine-devel about this extension, and changes in proton would also help make it easier to integrate. I planned to start off as a third-party installable without having to bother Valve/Proton about this from day one, but I didn't expect a bug in pressure-vessel (which everyone uses precompiled through steam runtime, even outside of the "supported" Steam/Proton use cases) to affect me...
kisak-valve commentedon Jan 19, 2026
I've seen libgbm log messages for a fairly long time without a functional impact to to the feedback coming in along with it appearing in the log. I think that @smcv's comment is asking for help identifying a test case where libgbm is required for a game to run as intended instead of a scenario where a non-fatal warning appears in the logs.
smcv commentedon Jan 19, 2026
Beware that if pressure-vessel learns to handle GBM modules in a similar way to how it currently handles DRI modules, this workaround will change from "makes it work" to "makes it not work".
hoshinolina commentedon Jan 19, 2026
libgbm is required for libfunnel, which is a dependency of the tool I linked above. Without it, it does not work (and therefore users will be unable to use that tool to support PipeWire streaming from Steam apps using Spout2, like the ones I mentioned).
I'd provide the libfunnel demo apps as a native linux test case you can use, but there's another catch: steamrt3 is currently shipping an ancient libpipewire, which is also not going to work. I currently work around this by doing some positively horrendous things to link in libpipewire and all the required modules and plugins statically... I was thinking of asking for a backport, but with steamrt4 coming up, I figured it'd be easier to wait and see and use the static hack for now, and ask for a minor backport if needed for steamrt4 (for some relatively recent libpipewire fixes for proper Nvidia/explicit sync support) and drop the static hack once Proton moves over to it, rather than asking for a much larger version bump for steamrt3. Of course, libgbm backends are not something I can reasonably ship statically like I can libpipewire, so that's a bigger issue. (edit: just checked, steamrt4 has an ABI-compatible new enough libpipewire so it will work with the libfunnel test apps, though it's missing recent fixes/minor bug-related-feature addons that would be nice to have eventually, but not mandatory).
There's another conversation to be had about how to ship/integrate things like the spout2 support going forward (the current solution dumping it into an existing Proton install ad-hoc, small wine/proton core changes + simple install into WINEPREFIX only, one-line
protonlauncher change + WINEDLLPATH requirement, even something distributed on steam itself?, or outright merging the whole thing into proton/wine are all possibilities), but I wanted to file this bug first since this gbm issue is a problem no matter what.Right, that's why I'm not a fan of such hacks...
hoshinolina commentedon Jan 19, 2026
Since steamrt4 does have a reasonable libpipewire, here's a practical repro of the issue:
(dependencies to build: meson, ninja, libgbm-dev, libdrm-dev, libvulkan-dev, libpipewire-dev, glslang, libwayland-dev, wayland-protocols)
The outcome with the spout2pw setup and Proton is the same, just under a bunch more layers of complexity/wrapping.
As far as native Linux apps go, I plan to develop a Godot component for libfunnel and am in talks with related app developers to integrate support, and several have expressed interest. It's not particularly relevant for most "games" in the gaming sense, but any app likely to want to provide a dedicated video output feed for YouTube/Twitch streaming (usually without the UI and possibly with alpha with transparency) or for video mixing/productions is likely to end up using libfunnel like this, and any such apps distributed via Steam will run into the issue. This is a whole ecosystem on Windows (Spout2) and macOS (Syphon) that is essentially unfilled on Linux today due to PipeWire video being too hard to use and poorly documented, and that is what I'm hoping to fix with libfunnel.
hoshinolina commentedon Feb 2, 2026
The project I've been working on is now released, and I ended up having to add quite a bit of logic to make the workaround work properly across distros/setups... it's quite messy.
https://github.com/hoshinolina/spout2pw/blob/0c92633b5623b825d5531eeb93a3e323ee906970/misc/spout2pw.sh#L67
smcv commentedon Feb 10, 2026
This is being worked on, tracked as steamrt/tasks#900 internally. The Steam Runtime's diagnostic tool can now detect gbm backends (similar to how it detects DRI and VA-API drivers), which is most of the infrastructure for this; that just needs wiring up inside pressure-vessel now.
smcv commentedon Feb 19, 2026
The next round of SLR betas should have a fix for this. For now, we have a release of pressure-vessel: you can test it by replacing
SteamLinuxRuntime_soldier/pressure-vessel,SteamLinuxRuntime_sniper/pressure-vesselorSteamLinuxRuntime_4/pressure-vessel(whichever is appropriate for a particular app, game or Proton version) with the result of unpacking https://repo.steampowered.com/pressure-vessel/snapshots/0.20260218.0/pressure-vessel-bin.tar.gz.hoshinolina commentedon Feb 19, 2026
smcv commentedon Feb 19, 2026
From inside the container? Probably the easiest is that if the host system has one or more GBM backends (which seems to be a requirement for your project anyway?) then the environment variable
GBM_BACKENDS_PATHwill be set to a value that mentionspressure-vesselsomewhere.client_betaor justbetadepending on major version.hoshinolina commentedon Feb 19, 2026
smcv commentedon Feb 19, 2026
VERSIONS.txtin the variousSteamLinuxRuntime_*/directories is machine-readable, if you must. It's a tab-delimited table, the relevant row is the one that starts withpressure-vessel, and versions strictly older than 0.20260218.0 (according tostrverscmp()) need the workaround. 0.20260218.0 is the first version that doesn't.(Not a super stable API guarantee, but it has been true for a few years, so you can safely assume that any version older than that will be something you can parse successfully.)
It's assumed to be correct for the host (in case you genuinely do have your gbm backend in
/opt/my-super-gbm-backend/or something), and used to find gbm backends on the host to "capture" into the container, aiming to follow the same logic that "real" Mesa would. The general design principle for SLR is that if it wants to use some component from the host, then it tries to locate that component in the same way that the "real" host libraries would do.So, as I warned in #797 (comment), setting
GBM_BACKENDS_PATHto a value that contains/run/hostis very likely to break the new version.smcv commentedon Feb 20, 2026
Updated betas are now available. They will be copied to the default branch after more testing.
Depending on the game (or Proton version), the updated version identifies itself as
SteamLinuxRuntime_soldier2.0.20260218.209090,SteamLinuxRuntime_sniper3.0.20260218.209091, orSteamLinuxRuntime_44.0.20260218.209092 (the latter not used in production for anything yet, I don't think). It's the version ofpressure-vesselthat is actually significant for this particular issue: you want0.20260218.0or newer.hoshinolina commentedon Feb 22, 2026
Looks like umu-launcher is already on the new version, interestingly enough. I guess they track the beta. I'll get this sorted out now!
Do not apply GBM workaround for pressure-vessel >= 0.20260218.0
hoshinolina commentedon Feb 22, 2026
This is now released: https://github.com/hoshinolina/spout2pw/releases/tag/0.1.7
(The logic falls back to assuming newer steamrt and not applying the workaround, so if any of the steamrt path detection and VERSIONS.txt stuff breaks in the future, it won't cause an issue)
Tested under umu-launcher (already picking up the beta channel), and Steam using both old/new steamrt. Tested the new steamrt under both Flatpak and non-Flatpak, AMD and Nvidia (all combinations).
FWIW, under Fedora, the old workaround does not break due to:
but this is not the case on other distros of course.
Thank you for fixing this so quickly! I feel a lot more comfortable not having to have that ugly workaround in there.
ao2 commentedon Feb 26, 2026
@hoshinolina can this issue be closed?
smcv commentedon Feb 26, 2026
If an issue is fixed in the beta, we normally leave it open until the fixed version gets "promoted" to the default branch, so the answer is: not yet.
smcv commentedon Mar 25, 2026
This version was promoted to stable on 2026-03-17, so I think we can close this issue now. (I can't do this myself: @kisak-valve or @hoshinolina, perhaps one of you could close it?)
Do not apply GBM workaround for pressure-vessel >= 0.20260218.0