Bug 1216242

Summary: Electron Applications Blank
Product: [openSUSE] openSUSE Tumbleweed Reporter: Nathan Wolf <me>
Component: OtherAssignee: Callum Farmer <gmbr3>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: brunopitrus, dheidler, felix.niederwanger, me, sebix+novell.com
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Output of chromium with error messages

Description Nathan Wolf 2023-10-14 14:56:54 UTC
Some electron apps are blank when you launch them in Tumbleweed as of snapshot 20231012. This does not apply to all electron applications but not all.

I am running Plasma on Wayland

Specifically, Bitwarden and Signal will just display blank windows. 

The workaround for this is to run the application with --disable-gpu

Here is some chatter about it on Reddit

https://www.reddit.com/r/openSUSE/comments/1766gop/latest_tumbleweed_updates_causing_blank_screen_in/

I'm not sure what logs will help with this. Please advise so that I may provide whatever is requested.
Comment 1 hui 2023-10-14 16:14:35 UTC
dup

*** This bug has been marked as a duplicate of bug 1214274 ***
Comment 2 Bruno Pitrus 2023-10-14 16:20:29 UTC
This seems to be cause by Chromium not properly invalidating shader cache after Mesa updates. A workaround is to remove the cache:

rm -rf ~/.config/{Bitwarden,Signal}/{Dawn,GPU}Cache
Comment 3 Nathan Wolf 2023-10-14 16:26:46 UTC
Thank you but this worked for Signal but not Bitwarden. I still have to --disable-gpu to get Bitwarden to work.
Comment 4 Bruno Pitrus 2023-10-14 16:29:20 UTC
What does it print on the console when you run `bitwarden-desktop` from the terminal?
Comment 5 Felix Niederwanger 2023-10-16 05:38:35 UTC
Same issue arises with VS Codium and also there, `codium --disable-gpu` makes the application work again.
Comment 6 Bruno Pitrus 2023-10-16 07:46:32 UTC
We don't ship a “VS Codium”. (We ship Code with VSCodium patches but it is branded as “Code - OSS”). Please don't complain about bugs in third-party software on the bugzilla.
Comment 7 Dominik Heidler 2023-10-23 08:50:21 UTC
This happens as both to 3rd party applications like slack as well as to applications using system node, like element-desktop.

To workaround this issue, cache needs to be deleted (as a user):
rm -r ~/.config/*/GPUCache
Comment 8 Nathan Wolf 2023-10-26 17:13:41 UTC
As of Tumbleweed Snapshot 20231022 this has been resolved.
Comment 9 Sebastian Wagner 2023-11-14 12:22:55 UTC
I had this issue until at least with TW 20231108, now I finally removed the caches to recover a working state.
So I can't confirm that the issue was fixed in 20231022
Comment 10 Sebastian Wagner 2023-11-26 19:47:11 UTC
Created attachment 870990 [details]
Output of chromium with error messages

The issue re-appeared, with openSUSE Tumbleweed 20231122.

This is the output of Chromium without GPU:

$ chromium --disable-gpu
> [32630:32630:1126/204302.091768:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
> (chromium:32630): Gtk-WARNING **: 20:43:02.435: Theme directory /apps of theme adwaita-xfce has no size field

Very clean and everything works.

Without disabling GPU, the output is very long. I attached it here as file. It is full of error messages like these:

> Location of variable sk_FragColor conflicts with another variable.
> [658:658:1126/204427.054084:ERROR:shared_context_state.cc(100)] Skia shader compilation error
Comment 11 Sebastian Wagner 2023-11-26 19:49:44 UTC
reproducible, so re-opening (couldn't do that in one step with uploading the file)
Comment 12 Bruno Pitrus 2023-11-26 19:52:46 UTC
Sebastian you're reporting a bug in chromium, not electron. Please open a new bug. Closing this as invalid as people seem to treat this issue as a coathanger for all chromium GPU bugs.
Comment 13 Sebastian Wagner 2023-11-26 20:02:05 UTC
(In reply to Bruno Pitrus from comment #12)
> Sebastian you're reporting a bug in chromium, not electron. Please open a
> new bug. Closing this as invalid as people seem to treat this issue as a
> coathanger for all chromium GPU bugs.

Thank you for the prompt answer.

I want to add that the same issue happens for VS Code, it was just easier to retrieve the logs from Chromium.
Comment 14 Sebastian Wagner 2023-11-26 20:03:19 UTC

*** This bug has been marked as a duplicate of bug 1214274 ***