NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

Steam fails to display and/or start on unstable.hyprland or possibly through xwayland specifically #290752

Open TheK0tYaRa opened 9 months ago

TheK0tYaRa commented 9 months ago

Describe the bug

Possible outcomes of running it are:

  1. Black login window
  2. See-through main window
  3. Infinite loading user data

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install programs.steam from nixos (23.11) and programs.hyprland from nixos-unstable
  2. Log in
  3. Close steam
  4. Launch steam

Expected behavior

Steam main ui, functioning.

Screenshots

image image image

Additional context

> hyprctl version
Hyprland, built from branch  at commit v0.35.0  ().
Date: 2024-02-05

266260 is probably related.

Attempting to use unstable.steam instead is worse, steamwebhelper crashes and failing allowUnfreePredicate.

Notify maintainers

@jagajaga @jonringer

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.78, NixOS, 23.11 (Tapir), 23.11.4575.526d051b128b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"home-manager-23.11.tar.gz, nixos-23.11, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

imadnyc commented 9 months ago

Can you try making it paned and then unpaned again? That works for me as a workaround.

TheK0tYaRa commented 9 months ago

If you meant making it a floating tile - didn't change nothing.

TheK0tYaRa commented 9 months ago

It may be a cef dependency of steam acting up

imadnyc commented 9 months ago

Could you try running the flatpak version to see if it's a steam issue? Also, some users in the issue you linked mentioned something to do with nvidia drivers. Can you post some more details about your hardware?

TheK0tYaRa commented 9 months ago

Settings are openable when the steam is see-through so disabling the web-based acceleration helps.

$ inxi -G
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] driver: amdgpu 
           v: kernel 
           Display: wayland server: X.Org 23.2.4 driver: loaded: amdgpu note: n/a (using device driver) 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 16.0.6 256 bits) v: 4.5 Mesa 23.1.9
TheK0tYaRa commented 9 months ago

Speaking of past knowledge. vkcube doesn't start up in hyprland but does in xfce. Need i post the output here or is it worth a separate issue? vkcube-wayland runs fine however.

Oh nevermind i've noticed the llvmpipe part. glxgears also runs via it. Here is the hardware part of nix config:

hardware.opengl = {
    enable = true;
    driSupport = true;
    driSupport32Bit = true;
  };
imadnyc commented 9 months ago

@samueldr @K900 Do you folk have any insight considering your work on Jovian?

TheK0tYaRa commented 9 months ago

Not a steamdeck either. Just an all-amd PC. Self-...assembled is the word, i suppose.

TheK0tYaRa commented 9 months ago

Speaking of the unstable branch steam:

# dmesg
...
[ 6766.736231] steamwebhelper[53472]: segfault at 0 ip 00007f808c172eab sp 00007ffc2add39c8 error 4 in libc.so.6[7f808c03d000+15b000] likely on CPU 3 (core 4, socket 0)
[ 6766.736242] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 25 03 00 00 <c5> fe 6f 07 c5 fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1
[ 6776.678899] steamwebhelper[53616]: segfault at 0 ip 00007fee0f972eab sp 00007ffc6dafc2b8 error 4 in libc.so.6[7fee0f83d000+15b000] likely on CPU 6 (core 0, socket 0)
[ 6776.678910] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 25 03 00 00 <c5> fe 6f 07 c5 fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1
[ 6860.365004] gldriverquery[54426]: segfault at 0 ip 00007f6a6a172eab sp 00007ffe367d15c8 error 4 in libc.so.6[7f6a6a03d000+15b000] likely on CPU 11 (core 6, socket 0)
[ 6860.365016] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 25 03 00 00 <c5> fe 6f 07 c5 fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1
[ 6862.147686] steamwebhelper[54323]: segfault at 0 ip 00007f2f9a372eab sp 00007ffe461b1d58 error 4 in libc.so.6[7f2f9a23d000+15b000] likely on CPU 2 (core 2, socket 0)
[ 6862.147696] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 25 03 00 00 <c5> fe 6f 07 c5 fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1
[ 6872.751423] steamwebhelper[54619]: segfault at 0 ip 00007fe539572eab sp 00007ffc16048978 error 4 in libc.so.6[7fe53943d000+15b000] likely on CPU 2 (core 2, socket 0)
[ 6872.751433] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 25 03 00 00 <c5> fe 6f 07 c5 fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1
[ 6883.059865] steamwebhelper[54747]: segfault at 0 ip 00007fdeadd72eab sp 00007ffe5ad4fb88 error 4 in libc.so.6[7fdeadc3d000+15b000] likely on CPU 8 (core 2, socket 0)
[ 6883.059876] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 25 03 00 00 <c5> fe 6f 07 c5 fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1
TheK0tYaRa commented 9 months ago

try running the flatpak version

By the way, i still don't understand why would i try flatpak version if the nix one works in xfce. Do reply with "do it anyways" if it's mandatory.

justinrubek commented 8 months ago

There's also #238101 that seems related.

I seem to be able to run steam fine using plasma, but hyprland isn't working properly. For a while I was able to run it in hyprland by launching it from a terminal but this appears to no longer be the case.

JohnRTitor commented 5 months ago

Is this still an issue? If not, consider closing this.