Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Steam 'add a game' submenu transparent

Open Rabcor opened this issue 1 year ago • 9 comments

Hyprland Version

System/Version info
Hyprland, built from branch HEAD at commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d  (props: bump ver to 0.34.0).
Date: Mon Jan 1 12:03:15 2024
Tag: v0.34.0

flags: (if any)

Bug or Regression?

Bug

Description

Certain popups (notably the 'add a game' submenu in steam)

24-01-59- steam

Notes: The same effect does sometimes happen when i open other menus in steam, however their buttons are clickable despite not being able to read them; and usually they'll show if u wait a few seconds, with this menu I cannot click any of it's buttons at all, it is completely broken. More Notes: It seems steam fails to initialize vulkan, it shouldn't though, because vkcube and vulkaninfo report everythign fine.

I have tried:

  • Fiddling with scaling (enabled or disabled or disabled/enabled only on xwayland)
  • Disabling hwaccel for steam webhelper
  • Prime-run steam (same result, but vulkan initalizes correctly)
  • With & without steam runtime

How to reproduce

  1. Start Steam on Hyprland
  2. Log in
  3. Click add a game

Crash reports, logs, images, videos

Steam output at event:

[0128/104313.615748:WARNING:connection.cc(41)] X error received.  Request: DestroyWindowRequest, Error: WindowError{.sequence = 1631, .bad_value = 18874443, .minor_opcode = 0, .major_opcode = 4}

Steam output from start until event:

steam.sh[2093947]: Running Steam on endeavouros rolling 64-bit
steam.sh[2093947]: STEAM_RUNTIME is disabled by the user
steam.sh[2093947]: Can't find 'steam-runtime-check-requirements', continuing anyway
tid(2094100) burning pthread_key_t == 0 so we never use it
[2024-01-28 10:42:26] Startup - updater built Jan 27 2024 20:57:56
[2024-01-28 10:42:26] Startup - Steam Client launched with: '/home/rabcor/.local/share/Steam/ubuntu12_32/steam'
[2024-01-28 10:42:26] Opted in to client beta 'publicbeta' via beta file
You are in the 'publicbeta' client beta.
01/28 10:42:26 Init: Installing breakpad exception handler for appid(steam)/version(1706390103)/tid(2094100)
[2024-01-28 10:42:26] Loading cached metrics from disk (/home/rabcor/.local/share/Steam/package/steam_client_metrics.bin)
[2024-01-28 10:42:26] Using the following download hosts for Public, Realm steamglobal
[2024-01-28 10:42:26] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2024-01-28 10:42:26] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2024-01-28 10:42:26] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-01-28 10:42:26] Verifying installation...
[2024-01-28 10:42:26] Verification complete

Steam logging initialized: directory: /home/rabcor/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xdc9e0dc0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xdc9df500
steamwebhelper.sh[2097975]: === sun 28.jan 2024, 10:42:30 +07 ===
steamwebhelper.sh[2097975]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/rabcor/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
pressure-vessel-wrap[2098013]: W: Failed to load Vulkan ICD #1 from /usr/share/vulkan/icd.d/radeon_icd.i686.json: openat(/usr/share/vulkan/icd.d/radeon_icd.i686.json): No such file or directory
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 2098547
sh: line 1: exec: steam-runtime-launcher-service: not found
CAppInfoCacheReadFromDiskThread took 123 milliseconds to initialize
exec ./steamwebhelper --no-sandbox -lang=en_US -cachedir=/home/rabcor/.local/share/Steam/config/htmlcache -steampid=2094100 -buildid=1706390103 -steamid=0 -logdir=/home/rabcor/.local/share/Steam/logs -uimode=7 -startcount=0 -steamuniverse=Public -realm=Global -clientui=/home/rabcor/.local/share/Steam/clientui -steampath=/home/rabcor/.local/share/Steam/ubuntu12_32/steam -launcher=0 -no-restart-on-ui-mode-change --enable-media-stream --enable-smooth-scrolling --password-store=basic --log-file=/home/rabcor/.local/share/Steam/logs/cef_log.txt --disable-quick-menu --disable-features=DcheckIsFatal
[0128/104231.605467:ERROR:context.cc(100)] The browser_subprocess_path directory (./steamwebhelper) is not an absolute path. Defaulting to empty.
[0128/104231.629978:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 0
[0128/104231.630030:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1706389061
[0128/104231.630033:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0128/104231.630036:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0128/104231.630038:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0128/104231.630594:INFO:crash_reporting.cc(239)] Crash reporting enabled for process: browser
[0128/104231.631767:WARNING:task_impl.cc(32)] No task runner for threadId 0
[0128/104231.633075:WARNING:task_impl.cc(32)] No task runner for threadId 0
[0128/104231.657497:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 0
[0128/104231.657498:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 0
[0128/104231.657562:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1706390103
[0128/104231.657562:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1706390103
[0128/104231.657565:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0128/104231.657565:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0128/104231.657566:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0128/104231.657567:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0128/104231.657568:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0128/104231.657568:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0128/104232.060844:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: gpu-process
[0128/104232.184001:WARNING:sandbox_linux.cc(385)] InitializeSandbox() called with multiple threads in process gpu-process.
[0128/104232.343417:WARNING:crash_reporting.cc(278)] Failed to set crash key: UserID with value: 0
[0128/104232.343464:WARNING:crash_reporting.cc(278)] Failed to set crash key: BuildID with value: 1706390103
[0128/104232.343466:WARNING:crash_reporting.cc(278)] Failed to set crash key: SteamUniverse with value: Public
[0128/104232.343468:WARNING:crash_reporting.cc(278)] Failed to set crash key: Vendor with value: Valve
[0128/104232.343470:WARNING:crash_reporting.cc(278)] Failed to set crash key: Platform with value: Linux
[0128/104232.344148:INFO:crash_reporting.cc(239)] Crash reporting enabled for process: utility
Steam Runtime Launch Service: steam-runtime-launcher-service pid 2098547 exited
Steam Runtime Launch Service: steam-runtime-launcher-service possible problem, disabling
[0128/104232.384754:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: utility
[0128/104232.416822:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: renderer
Vulkan missing requested extension 'VK_KHR_surface'.
Vulkan missing requested extension 'VK_KHR_xlib_surface'.
BInit - Unable to initialize Vulkan!
BRefreshApplicationsInLibrary 1: 22ms
Invalid browser dimensions: 0 x 0
src/webhelper/html_chrome.cpp (3435) : CefCurrentlyOn( TID_UI )
BuildCompleteAppOverviewChange: 801 apps
failed to create drawable
RegisterForAppOverview 1: 34ms
RegisterForAppOverview 2: 34ms
[0128/104243.940958:INFO:crash_reporting.cc(262)] Crash reporting enabled for process: renderer
[0128/104244.406568:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[0128/104244.420826:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[0128/104244.437675:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

Rabcor avatar Jan 28 '24 03:01 Rabcor

try latest git

phonetic112 avatar Jan 28 '24 20:01 phonetic112

try latest git

Hyprland, built from branch main at commit 4b4bd90b1450cbfc01d9ac429363cc7cecd6be8b dirty (renderer: fixup misaligned fsv1 surfaces with uv).
Date: Mon Jan 29 06:42:49 2024
Tag: v0.34.0-79-g4b4bd90b

flags: (if any)

the menu is not transparent anymore, and looks like it should be working, however when i try to actually press the buttons in it, nothing happens. It's also super finicky (sometimes it fails to open, sometimes it opens but hovering over entries doesn't highlight them, sometimes it opens and hovering mouse on entries highlights them but clicking does nothing, sometimes any of the above clicking will close the menu but never will it actually open the selected menu item)

Also if the steam window is floating, the submenus at the top (steam, view, friends, games, help) will not open (they will in tiling mode though)

In short: It looks less bad (sometimes menu renders, sometimes it's like it was before) but functionally nothing has changed.

Rabcor avatar Jan 29 '24 03:01 Rabcor

try these window rules

windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$

phonetic112 avatar Jan 29 '24 19:01 phonetic112

the menu is not transparent anymore

I am on latest git and the menu is still transparent most of the time for me :thinking:

"Add a game" menu:

https://github.com/hyprwm/Hyprland/assets/44881120/7a7a49e5-621d-4865-851f-1910e8f9fa34

Potentially related: top menus close instantly sometimes, and open in the wrong place.

TheSunCat avatar Jan 30 '24 15:01 TheSunCat

Steam > Settings > Interface > "Enable context menu focus compatibility mode" fixes it for me.

Aqa-Ib avatar Feb 21 '24 11:02 Aqa-Ib

try these window rules

windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$

This works for me until I manually focus the main Steam window while the drop down is still open, at which point the compositor locks up. Killing xwayland brings it back to life.

a-priestley avatar Feb 21 '24 13:02 a-priestley

the compositor locks up

think that's a bug with steam beta, if you're using it

If you want I've also had better luck using nofocus rather than stayfocused, it seems to fix issues relating to refocusing the main window.

phonetic112 avatar Feb 21 '24 20:02 phonetic112

this specific issue seems to be resolved for me on latest git... (with context menu focus compatibility mode enabled)

image

Steam is still behaving odd though, just in other ways, if i try to open settings for instance no text will get rendered for a lil while and it keeps jumping around the screen and flickering, like one second it is rendered the next it is not.

It'll freeze up sometimes when i close subwindows such as the settings menu

And all hell breaks loose if i try to fullscreen a game trailer on it's store page too (it fullscreens the steam window, not the video, and the page in the steam browser where the important stuff is supposed to be rendered is just black, audio still plays though)

Rabcor avatar Feb 22 '24 02:02 Rabcor

the compositor locks up

think that's a bug with steam beta, if you're using it

If you want I've also had better luck using nofocus rather than stayfocused, it seems to fix issues relating to refocusing the main window.

This seems to work, thank you!

a-priestley avatar Feb 22 '24 12:02 a-priestley

Was this fixed? If so, tagging for closing.

izmyname avatar Jul 27 '24 09:07 izmyname