Closed Jappie3 closed 6 months ago
For the record: I am aware of ValveSoftware/steam-for-linux#10645, but the logs of that issue seem to be completely unrelated to mine:
steam-runtime-launch-client[2083]: E: Could not find requesting pid
libbeidpkcs11.so
Try disabling that module? It looks like it's causing (or involved in) a NULL pointer dereference.
First of all, thank you so much for the quick reply @smcv I have no idea how I looked over that error, libbeid is some module for Belgium's Web Eid software. It seems completely unrelated to Steam though, so I have no idea how it would make a difference.
I don't have the time to dive into this further now, but in a few days I might try to look into it a little more... after all, this used to work just fine.
For any Nix users stumbling upon this: I basically commented the following module out:
programs.firefox = {
enable = true;
nativeMessagingHosts.packages = [pkgs.web-eid-app];
policies.SecurityDevices.p11-kit-proxy = "${pkgs.p11-kit}/lib/p11-kit-proxy.so";
};
services.pcscd.enable = true;
environment = {
etc."pkcs11/modules/opensc-pkcs11".text = ''
module: ${pkgs.opensc}/lib/opensc-pkcs11.so
'';
systemPackages = with pkgs; [
firefox
eid-mw # eID middleware
ccid # ccid drivers for pcsclite
acsccid # PC/SC driver which supports ACS CCID smart card readers
pinentry # GNUPG interface for passphrase input
opensc # set of libraries to access smart cards
p11-kit # library for loading & sharing PKCS#11 modules
];
};
I had the exact same issue. Uninstalling eid-mw (containing libbeidpkcs11.so) solved this issue for me. Thanks for this report.
@MarkRijckenberg I still don't understand why this eid thing breaks anything but you just saved my sanity.
@Norfairking It's thanks to the genius of the nix package management system (and https://hydra.nixos.org/ ). Reproducible builds mean reproducible bugs/results. I have noticed this with other NixOS bugs as well. I can often take a peek at the Hydra build results and immediately see it is a general issue for everyone. I opened a new bugreport about this issue (https://github.com/NixOS/nixpkgs/issues/298662) , because I really want to use eid-mw and steam on the same PC at the same time. Uninstalling eid-mw is just a workaround, not a solution.
@NorfairKing @Jappie3
I have created an ugly hack that circumvents this issue, allowing to run eid-mw and steam(webhelper) on the same PC. steamwebhelper crashloops due to reading /run/current-system/sw/lib/libbeidpkcs11.so from ~/.pki/nssdb/pkcs11.txt steamwebhelper should of course not be reading from ~/.pki/nssdb/pkcs11.txt , but that is the crazy situation we are in.....
See https://github.com/NixOS/nixpkgs/issues/298662#issuecomment-2067634035
@MarkRijckenberg Thanks for figuring this out! Luckily I almost never have to use this e-reader thing. Now that we have a workaround, we can start to think about a long-term solution. What do you think that would look like?
Instead of repeating myself across 2 separate threads, please look at my latest comments here: The thread below is still "open/unresolved", after 30 comments... :
Thanks for putting in the time & effort, I had forgotten about this a little bit until now. I'll have a look at the nixpkgs issue to see if there's anything I can do
@Jappie3 I explained everything in the other open thread. https://github.com/NixOS/nixpkgs/issues/298662
But in summary, my theory is that the long-term solution is to remove libnss3 from both steam-runtime-heavy.tar.xz and steam-runtime-sniper.tar.xz, which are both part of the steam install. Unless steam really needs libnss3, libnss3 should be removed from steam.
See here: https://packages.debian.org/bookworm/libnss3
libnss3 is a set of libraries designed to support cross-platform development of security-enabled client and server applications. It can support SSLv2 and v4, TLS, PKCS ValveSoftware/steam-for-linux#5, ValveSoftware/steam-for-linux#7, ValveSoftware/steam-for-linux#11, ValveSoftware/steam-for-linux#12, S/MIME, X.509 v3 certificates and other security standards.
Now my question is: is steam really going to be using PKCS security modules, like the one used for authenticating Belgian eid cards? I would hope not...... These types of use cases - like PKCS - should be reserved for pure web browsers like chromium, not for gaming clients that should only use certain features of web browsers just to display web pages, nothing more....
One of the NixOS maintainers of the steam client advised me to report this issue to Valve. Issue created here: https://github.com/ValveSoftware/steam-runtime/issues/667 Let's continue the discussion at https://github.com/ValveSoftware/steam-runtime/issues/667 as I don't think the NixOS maintainers can solve this issue.
I solved my crashlooping issue by performing a complete reinstall of the steam client on NixOS unstable. I ran rm -rf ~/.local/share/Steam Then reran steam to force a new install. No more crashlooping of steam, even when libbeidpkcs11.so is loaded via eid-nssdb add
System information
1.0.0.74
, since that's what's in Nixpkgstar -zcvf ~/Desktop/steam-logs.tar.gz ~/.steam/steam/logs
] steam-logs.tar.gzThe issue
A couple of days ago, I opened Steam and everything worked fine. I exited (fully closed) Steam & opened it again a few hours later. The loading screen appeared, but after that it crashed. Running from CLI indicated that steamwebhelper was stuck in a crashloop.
The issue occurs on both Hyprland & Sway, leading me to believe that it's a Steam issue and not an issue with my compositor. I also tried reinstalling by removing
~/.steam
&.local/share/Steam
, to no avail. Here are the relevant logs fromsteamwebhelper.log
:Journalctl also lists a bunch of coredumps from
.local/share/Steam/ubuntu12_64/steamwebhelper
:Steps for reproducing: