Skip to content

pressure-vessel fails to link in gbm backends from the host (regression since mesa-24.3.0) #797

Closed

Description

@hoshinolina

Pressure-vessel links in libgbm from the host:

.local/share/umu/steamrt3/var/tmp-M308I3/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libgbm.so.1 -> /run/host/lib64/libgbm.so.1.0.0

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:

.local/share/umu/steamrt3/var/tmp-LRY2I3/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/dri/radeonsi_dri.so -> /run/host/usr/lib64/dri/libdril_dri.so

This is a regression since this mesa commit (released in mesa-24.3.0), which split off gbm into backends similar to how dri already worked.

A simple workaround is to set GBM_BACKENDS_PATH=/run/host/usr/lib64/gbm, which makes things work.

The pressure-vessel code that handles dri drivers is here. A similar codepath is needed for gbm.

Your system information

  • Steam Runtime Version: sniper_platform_3.0.20251216.191774
  • Distribution (e.g. Ubuntu 18.04): Fedora 42
  • Have you checked for system updates?: Yes
  • What compatibility tool are you using?: Proton-GE
  • What versions are listed in steamapps/common/SteamLinuxRuntime_sniper/VERSIONS.txt?
#Name   Version         Runtime Runtime_Version Comment
depot   3.0.20251216.191774                     # Overall version number
pressure-vessel 0.20251210.0    scout           # pressure-vessel-bin.tar.gz
scripts 0.20251210.0                    # from steam-runtime-tools
sniper  3.0.20251216.191774     sniper  3.0.20251216.191774     # sniper_platform_3.0.20251216.191774/

Activity

  1. smcv commented on Jan 19, 2026

    @smcv
    Contributor

    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.

  2. hoshinolina commented on Jan 19, 2026

    @hoshinolina
    Author

    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...

  3. kisak-valve commented on Jan 19, 2026

    @kisak-valve
    Member

    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.

  4. smcv commented on Jan 19, 2026

    @smcv
    Contributor

    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".

  5. hoshinolina commented on Jan 19, 2026

    @hoshinolina
    Author

    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".

    Right, that's why I'm not a fan of such hacks...

  6. hoshinolina commented on Jan 19, 2026

    @hoshinolina
    Author

    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)

    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.

  7. hoshinolina commented on Feb 2, 2026

    @hoshinolina
    Author

    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

  8. smcv commented on Feb 10, 2026

    @smcv
    Contributor

    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.

  9. smcv commented on Feb 19, 2026

    @smcv
    Contributor

    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-vessel or SteamLinuxRuntime_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.

  10. hoshinolina commented on Feb 19, 2026

    @hoshinolina
    Author
  11. smcv commented on Feb 19, 2026

    @smcv
    Contributor

    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.)
  12. hoshinolina commented on Feb 19, 2026

    @hoshinolina
    Author
  13. smcv commented on Feb 19, 2026

    @smcv
    Contributor

    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.

  14. smcv commented on Feb 20, 2026

    @smcv
    Contributor

    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.

  15. hoshinolina commented on Feb 22, 2026

    @hoshinolina
    Author

    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!

  16. hoshinolina commented on Feb 22, 2026

    @hoshinolina
    Author

    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:

    $ 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.

  17. ao2 commented on Feb 26, 2026

    @ao2

    @hoshinolina can this issue be closed?

  18. smcv commented on Feb 26, 2026

    @smcv
    Contributor

    can this issue be closed?

    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.

  19. smcv commented on Mar 25, 2026

    @smcv
    Contributor

    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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions