ValveSoftware / steam-runtime

A runtime environment for Steam applications
Other
1.18k stars 86 forks source link

Driver/layer dependencies not available in container if used via dlopen #584

Open 82157402 opened 1 year ago

82157402 commented 1 year ago

My VK Driver need two Libraray. It donot load the second library. For Example: VK json : { "file_format_version": "1.0.0", "ICD": { "_comment": "library_path can be a relative path as long as it's in the default search path", "library_path": "libAAA.so", "api_version": "1.0.0" } } libAAA.so will load libBBB.so when VK Driver is running. But Porton don't support becase it will show " not Found libBBB.so "

kisak-valve commented 1 year ago

Hello @82157402, starting with Proton 5.13, Proton is run inside one of the Steam Linux Runtime container environments. This reads more like an issue with Pressure Vessel setting up that environment. Please give https://github.com/ValveSoftware/steam-runtime/blob/master/doc/reporting-steamlinuxruntime-bugs.md#essential-information a read and share the requested information.

82157402 commented 1 year ago

In "~/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/var/tmp-O3IX31/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu" dir , these are some softlink , include libAAA.so ,But not include libBBB.so. i think these need to create a softlink link to libBBB.so.

In SourceCode, libBBB,so is loader by "dlopen". So the softlink(libBBB) isnot created.

image

smcv commented 1 year ago

In SourceCode, libBBB,so is loader by "dlopen"

There is no way for the container runtime to know that this is going to happen.

smcv commented 1 year ago

@kisak-valve, please retitle to: "Driver/layer dependencies not available in container if used via dlopen"

I don't think this is going to be solvable in general, so it will probably have to be a known issue.