Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Steam client bug causes black screen on Workshop pages #91

Open
osbornecox opened this issue Dec 9, 2023 · 7 comments
Open

[BUG] Steam client bug causes black screen on Workshop pages #91

osbornecox opened this issue Dec 9, 2023 · 7 comments
Labels

Comments

@osbornecox
Copy link

First of all, thank you for your work!

Second, I'm experiencing an issue and maybe you could point me in the right direction with it. I'm playing DayZ on Steam Deck. Everything worked fine several months ago, but now the DZG Watcher fails to open the workshop page.

I see this message:
Opening workshop file for [server id]. If you see no progress after subscribing try unsubscribing and resubscribing again until the download commences.

I tried to wait, to restart everything, I tried different servers, I tried to google this issue, and checked everything. I'm using SteamOS 3.4.11. Is there anything I might be missing?

Thanks!

@aclist
Copy link
Owner

aclist commented Dec 9, 2023

Thank you.

Please indicate whether you are attempting to do this from Game Mode or Desktop Mode, and if the latter, whether you are using the desktop/start menu shortcut or are launching it through Steam directly.

Also, please indicate your DZGUI version, your distribution, and other pertinent details. You can generate a system log via Advanced Options > Output system info and attach it here.

As to the question itself, there have been some changes to the Valve browser protocol recently that dropped some old methods of opening links, so it might be affecting this. I'll start looking into it while I await your response.

@osbornecox
Copy link
Author

osbornecox commented Dec 10, 2023 via email

@aclist
Copy link
Owner

aclist commented Dec 10, 2023

This is related to an extremely annoying and longstanding bug in Valve's implementation of Electron in the Steam client that has persisted since the new Steam Beta client was merged into the stable Steam release earlier this year. In short, certain navigation windows in the Steam client appear black unless the user explicitly navigates to other windows and back again. This happens on certain video cards on desktop PCs as well (unrelated to DZGUI).

Because DZGUI attempts to open the mod page directly without the user's prior interaction, it's possible for the Steam client to have this bug. The best way I can see of rectifying it for now is making sure that:

  1. Steam was already open before using DZGUI
  2. You have navigated on and off to different Steam client tabs, such as "Library" and "Store" to make sure they become unstuck and that no windows are black
  3. Once the above is complete, launch DZGUI and let it open mod pages
  4. If the pages are still black, go back to the Steam client and click on other tabs like "Library" and "Store" again until the view updates, then navigate back to the "Community" tab and let Steam's internal Chromium browser update the page
  5. Reinitialize the mod download process and the Workshop pages should start loading now

After brief testing, I have not found a way of programmatically making the Steam client update even when requesting it to open other pages such as the library, large games list, mini games list, etc. The Steam client only refreshes itself when the user provides manual input by force refreshing one of the pages.

I can look into adding this information to the DZGUI knowledge base, although I don't see a technical solution to the problem until the bug itself is fixed in Steam. I'll investigate other ways of brute forcing the window into updating, but our options are limited here.

@aclist aclist changed the title Workshop page is not opening [BUG] Steam client bug causes black screen on Workshop pages Dec 10, 2023
@aclist aclist added the steam label Jan 4, 2024
@truefakts
Copy link

I found that manual intervention in the Steam client seems to work around this bug on their side. Pressing the "back" arrow to try and redirect elsewhere, will sometimes force steam to re-render the web page so you can click Subscribe on the mod in question. This bug report should probably be moved to an issue against Steam for Linux: https://github.com/ValveSoftware/steam-for-linux

@aclist
Copy link
Owner

aclist commented Feb 24, 2024

Yes, this is correct.

This issue affects the Steam client itself, not just Steam Deck, and already exists as issue 9598 on Valve's issue tracker. I do not have a foolproof method of reproducing the issue with DZGUI, however. It seems to be transitory.

@osbornecox
Copy link
Author

osbornecox commented Feb 27, 2024 via email

@aclist
Copy link
Owner

aclist commented Apr 7, 2024

I still do not have a reliable way of reproducing this issue every time. Sometimes, it seems that workshop pages open exactly as intended (going from cold boot of the device to opening a workshop page programmatically), while other times the black screen bug appears and is resoved by manual intervention.

If you are reading this thread and consistently experience this bug on Steam Deck specifically, please provide a list of steps for getting it to trigger every time.

As for the upstream issue affected, it relates directly to ticket number 9598 on Valve's Steam for Linux repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants