Skip to content

windows not opening/pages not rendering when --ozone-platform-hint=wayland #37498

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

Closed
vdawg-git opened this issue Apr 11, 2024 · 19 comments · Fixed by brave/brave-core#23166
Closed

Comments

@vdawg-git
Copy link

vdawg-git commented Apr 11, 2024

Update: To fix run it with the following flag: --ozone-platform=wayland

Description

The Brave Nightly version on Arch Linux running Hyprland with AMD does not render anything.

The window opens and react to input (opening a new window opens it, but nothing renders)

Steps to Reproduce

  1. Run brave-browser-nightly

Actual result:

image

❮ brave-browser-nightly
[46910:46910:0411/084925.135712:ERROR:chrome_browser_cloud_management_controller.cc(161)] Cloud management controller initialization aborted asCBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the officialGoogle Chrome build.
[46910:46910:0411/084925.156727:ERROR:content_settings_pref.cc(406)] Invalid pattern strings: https://w=149,h=149:443,*
[46910:46910:0411/084935.197642:ERROR:sharing_service.cc(221)] Device registration failed with fatal error

Expected result:

On Brave stable:
image

Reproduces how often:

No steps to reproduce

Brave version (brave://version info)

Brave | 1.66.74 Chromium: 124.0.6367.29 (Official Build) nightly (64-bit)
Revision | 43c41a798003efcabf0d292cb2a5efdcc633857b
OS | Linux
JavaScript | V8 12.4.254.8
User Agent | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Command Line | /opt/brave.com/brave-nightly/brave --disable-domain-reliability --enable-dom-distiller --enable-distillability-service --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --sync-url=https://sync-v2.brave.com/v2 --lso-url=https://no-thanks.invalid --variations-server-url=https://variations.brave.com/seed --variations-insecure-server-url=https://variations.brave.com/seed --enable-features --disable-features --flag-switches-begin --ozone-platform-hint=auto --enable-features=OverlayScrollbar --flag-switches-end --component-updater=url-source=https://go-updater.brave.com/extensions --ozone-platform=wayland
Executable Path | /opt/brave.com/brave-nightly/brave
Profile Path | /home/vdawg/.config/BraveSoftware/Brave-Browser-Nightly/Default
Active Variations | AllowCertainClientHintsStudy:EnabledBraveAdblockExperimentalListDefaultStudy:EnabledBraveAdblockMobileNotificationsListDefault:EnabledBraveAdsNewTabPageAdsStudy:EnabledBraveAdsSiteVisitStudy:EnabledBraveAdsTextClassificationPageProbabilitiesStudy:EnabledBraveAggressiveModeRetirementExperiment:DisabledBraveAutoTranslateStudy:AutoTranslateDisabledBraveDebounceStudy:EnabledBraveForgetFirstPartyStorage:EnabledBraveGoogleSignInPermissionStudy:EnabledBraveHorizontalTabsUpdateEnabledStudy:EnabledBraveHttpsByDefaultRolloutStudy:EnabledBraveLocalhostAccessPermissionStudy:EnabledBraveP3AConstellationEnabled:EnabledBraveP3ATypicalJSONDeprecationEnabled:EnabledBraveRequestOTRTabRolloutStudy:EnabledBraveRewardsAllowSelfCustodyProvidersStudy:EnabledBraveRewardsWebUiPanelStudy:EnabledBraveScreenFingerprintingBlockerStudy:EnabledBraveSearchAdStudy:EnabledBraveWebViewRoundedCornersStudy:EnabledClampPlatformVersionClientHint:DisabledCookieListDefaultStudy:EnabledCosmeticFilteringChildFramesStudy:EnabledDefault1pBlockingStudy:DisabledDefaultBraveCommandsStudy:EnabledDefaultBraveOmniboxMoreHistoryStudy:EnabledDisableReduceLanguage:EnabledEphemeralStorageStudy:EnabledHangWatcher:DefaultPartitionedCookies:EnabledPrivateNetworkAccessKillswitch:Disabled_PrivateNetworkAccessKillSwitchUseWritePixelsYUV:Disabled_UseWritePixelsYUVUserActivityStudy:Triggers

Version/Channel Information:

  • Can you reproduce this issue with the current release? No
  • Can you reproduce this issue with the beta channel? I dont know
  • Can you reproduce this issue with the nightly channel? Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? I dont know
  • Does the issue resolve itself when disabling Brave Rewards? I dont know
  • Is the issue reproducible on the latest version of Chrome? I dont know

Miscellaneous Information:

@asheriif
Copy link

Having the same issue with Brave Beta. Wayland, KDE, Nvidia.

@vdawg-git vdawg-git changed the title Nightly not rendering Not rendering anything Apr 12, 2024
@vdawg-git
Copy link
Author

vdawg-git commented Apr 12, 2024

It renders again after an update I think, but it looks like it does through so through X, as fractional scaling doesnt work properly.
Brave Browser 124.1.67.2 nightly

So yes, even with Preferred Ozone platform set to Wayland it won't render properly

Edit: Now it won't render anything again

@vdawg-git
Copy link
Author

Brave Browser 124.1.67.3 nightly also has it

@asheriif
Copy link

Yeah still the same after the latest beta update as well. Only renders when explicitly told to run under X which is pretty inconvenient because Xwayland is still a mess.

@wknapik
Copy link
Contributor

wknapik commented Apr 12, 2024

I'm not seeing issues with any version of Brave on Arch, but I'm not using Wayland. There's a number of open Wayland-related issues.

Do you see the same issue in Chromium? Have you tried running the browser with --disable-features=Vulkan?

@asheriif
Copy link

Yeah the issue only happens when running Brave (Beta or Nightly) with Ozone platform set to Wayland. The only workaround under a Wayland environment seems to running Brave with Ozone platform set to X which makes it run under XWayland which is a mess, or to use the disable gpu flag which is also not a solution.

I wasn't having issues the past few months and Brave Beta was running perfectly fine for me (including hardware acceleration) on Arch under Wayland and Nvidia proprietary drivers (latest). This just started after an update a couple of days ago.

I have the Vulkan flag set to disabled. Latest Chromium Snapshot (125.something) launches with Ozone platform set to Wayland but lots of things are messed up, so yeah looks like yet another Chromium/Electron issue with Wayland. It never ends :(

I'll go back to Brave stable (Chromium 123.something) for now. No issues there under Wayland and hardware acceleration works fine.

@janpeterd
Copy link

I have the same issue with chromium
afbeelding

@Mikaela
Copy link

Mikaela commented Apr 16, 2024

I think I started experiencing this upon upgrading to Brave Browser 124.1.66.80 beta a moment ago. Previously Sway said Brave was running in xdg_shell, but after restart it started being xwayland and in the profile choosing menu only rendering a black screen.

Before coming to GitHub, I also reproduced on Brave Browser 124.1.67.11 nightly in case it was fixed there. I ran both with flags --ozone-platform-hint=auto --enable-features=WaylandWindowDecoration and also tried to change --ozone-platform-hint to wayland.

The stable version Brave Browser 123.1.64.122 still works as expected.

@rillian
Copy link

rillian commented Apr 16, 2024

I can reproduce with 1.67.11 Chromium: 124.0.6367.29 (Official Build) nightly (64-bit) on Fedora 39 x86_64, gnome desktop with intel Xe graphics. It works fine with ozone-platform-hint set to default, but I get nothing drawn at all with it set to wayland. Ozone Platform in brave://gpu defaults to x11 on my system.

So switching back to x11 is likely a work around for problematic releases.

@rillian
Copy link

rillian commented Apr 16, 2024

Note on switching back: I used the flags/experiments page to change this, which is unavailable if nothing is drawing. To fix it I edited $HOME/.config/BraveSoftware/Brave-Browser-Nightly/Local State to remove the ozone hit string from the experiments array.

If that's too difficult, you can delete the whole profile directory. :(

@mak448a
Copy link

mak448a commented Apr 17, 2024

It's not rendering anything on Brave stable now. Ozone set to Wayland.

@archerallstars
Copy link

This is a Chromium upstream issue: https://issues.chromium.org/issues/329678163

To fix this issue, the user must run Brave through the command line with --ozone-platform=wayland flag, or edit the desktop file with the flag.

@Mikaela
Copy link

Mikaela commented Apr 18, 2024

To fix it I edited $HOME/.config/BraveSoftware/Brave-Browser-Nightly/Local State to remove the ozone hit string from the experiments array.
If that's too difficult, you can delete the whole profile directory. :(

A bit easier is just changing the 3 there to 0, but it started looking blurry and I don't like this "workaround".

It's not rendering anything on Brave stable now. Ozone set to Wayland.

I can confirm on Brave Browser 124.1.65.114 if the version numbers matter.

This is a Chromium upstream issue: https://issues.chromium.org/issues/329678163

Starred in hopes of them counting that as a 👍🏻 and prioritising.

To fix this issue, the user must run Brave through the command line with --ozone-platform=wayland flag, or edit the desktop file with the flag.

Thanks, this actually works for me. I would just add that --ozone-platform=wayland is a different flag from --ozone-platform-hint=wayland which alone won't be enough as when I first read your comment, I thought they were the same.

@mufeedali
Copy link

On Arch with the brave-bin AUR package, you can add --ozone-platform=wayland to ~/.config/brave-flags.conf.

@TuxTheAstronaut
Copy link

TuxTheAstronaut commented Apr 18, 2024

having same issue too but running brave with --enable-features=UseOzonePlatform --ozone-platform=wayland fixed it for me but setting ozone to wayland in chrome flags menu dose not work

@rillian
Copy link

rillian commented Apr 18, 2024

Chromium has merged a fix which addresses the issue for me. Hopefully we can get that into a release soon.

@kjozwiak kjozwiak changed the title Not rendering anything windows not opening/pages not rendering when --ozone-platform-hint=wayland Apr 20, 2024
@kjozwiak
Copy link
Member

Closing as the above has been resolved via brave/brave-core#23166 👍

@kjozwiak
Copy link
Member

The above requires 1.65.116 or higher for 1.65.x verification 👍

@btlechowski
Copy link

Verified with

Brave 1.65.118 Chromium: 124.0.6367.60 (Official Build) (64-bit)
Revision 8ecd7a3ff4b4d81f25b94f5b92ab7130587888cd
OS Linux

Reproduced the issue:

image image

Verified fixed:

image image

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

Successfully merging a pull request may close this issue.