Skip to content

brave starts slooow #46300

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

Open
arvindautar opened this issue May 23, 2025 · 6 comments
Open

brave starts slooow #46300

arvindautar opened this issue May 23, 2025 · 6 comments

Comments

@arvindautar
Copy link

arvindautar commented May 23, 2025

Description:

Brave Browser consistently takes ~60 seconds to start when KDE Wallet is disabled on systems running KDE Plasma. Re-enabling KDE Wallet eliminates the delay, indicating Brave may be attempting to interact with the wallet subsystem and failing ungracefully.

Steps to Reproduce:

Use a Linux system with KDE Plasma (version below).

Ensure KDE Wallet is disabled (via kwalletmanager or ~/.config/kwalletrc).

Launch Brave Browser.

Observe a long startup delay (~60 seconds).

Enable KDE Wallet again and relaunch Brave.

Startup is near-instant.

Expected Behavior:

Brave should handle the absence of KDE Wallet more gracefully, without introducing long delays during startup.

Actual Behavior:

Startup is delayed by approximately 60 seconds when KDE Wallet is disabled.

Notes:

This behavior is reproducible and confirmed to be resolved immediately when KDE Wallet is re-enabled.

--- Brave Version (Flatpak) ---

Brave - Fast Internet, AI, Adblock

       ID: com.brave.Browser
      Ref: app/com.brave.Browser/x86_64/stable
     Arch: x86_64
   Branch: stable
   Versie: 1.78.102
 Licentie: MPL-2.0
 Herkomst: flathub

Verzameling: org.flathub.Stable
Installatie: system
Geïnstalleerd: 439,5 MB
Runtime: org.freedesktop.Platform/x86_64/24.08
SDK: org.freedesktop.Sdk/x86_64/24.08

   Commit: fdc81e6c363cc00d24e5ea4fdd0cc1c2e41d61bb9367c6ac7f1899135c220d3c

Bovenliggend: d3d4bb92ad72728e1ff77ea191b40b3a8529053a3e72a8c3a5aa47f5d91926e2
Onderwerp: Merge pull request #785 from flathub/update-v1.78.102-20250515T1602 (da106e40ba60)
Datum: 2025-05-15 16:14:59 +0000

--- OS & Kernel ---
Linux aurora 6.14.3-300.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Apr 20 16:08:39 UTC 2025 x86_64 GNU/Linux
NAME="Aurora"
VERSION="42.20250518 (Kinoite)"
VERSION_CODENAME=""
PRETTY_NAME="Aurora (Version: 42.20250518 / FROM Fedora Kinoite 42)"
CPE_NAME="cpe:/o:universal-blue:aurora:42"
DEFAULT_HOSTNAME="aurora"
OSTREE_VERSION='42.20250518'

--- KDE Plasma & Frameworks ---
plasmashell 6.3.5

--- KDE Wallet Config Status ---
Enabled=false
First Use=false
Use One Wallet=true
apiEnabled=true

--- KDE Wallet Service Status ---
Error: org.freedesktop.DBus.Error.NoReply
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
KWallet DBus interface not found

--- Desktop Session & Environment ---
XDG_CONFIG_DIRS=/home/gebruiker/.config/kdedefaults:/etc/xdg:/usr/share/kde-settings/kde-profile/default/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_MENU_PREFIX=plasma-
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_TYPE=wayland
GTK2_RC_FILES=/home/gebruiker/.gtkrc-2.0-kde4
XDG_CURRENT_DESKTOP=KDE
WAYLAND_DISPLAY=wayland-0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
KDE_SESSION_UID=1000
XDG_SESSION_CLASS=user
QT_WAYLAND_RECONNECT=1
KDE_SESSION_VERSION=6
DISPLAY=:0
XDG_VTNR=1
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
KDEDIRS=/usr
XDG_DATA_DIRS=/home/gebruiker/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
KDE_FULL_SESSION=true
KDE_APPLICATIONS_AS_SCOPE=1

❯ time flatpak run com.brave.Browser
[2:2:0523/074705.176360:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd6: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[2:2:0523/074705.176420:ERROR:components/os_crypt/sync/kwallet_dbus.cc:117] Error contacting kwalletd6 (isEnabled)
[2:2:0523/074705.177462:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
[2:2:0523/074705.177481:ERROR:components/os_crypt/sync/kwallet_dbus.cc:86] Error contacting klauncher to start kwalletd6

[2:2:0523/074730.203126:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd6: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[2:2:0523/074730.203385:ERROR:components/os_crypt/sync/kwallet_dbus.cc:412] Error contacting kwalletd6 (close)
[2:2:0523/074730.601560:ERROR:components/dbus/xdg/request.cc:169] Request ended (non-user cancelled).
[2:2:0523/074730.614952:ERROR:content/browser/network_service_instance_impl.cc:586] Network service crashed, restarting service.
[51:51:0523/074734.668790:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 1 times!

real 0m59,750s
user 0m0,015s
sys 0m0,028s

❯ rpm -qa | grep wallet
kf5-kwallet-5.116.0-3.fc42.x86_64
kf5-kwallet-libs-5.116.0-3.fc42.x86_64
kf6-kwallet-libs-6.14.0-2.fc42.x86_64
kf6-kwallet-6.14.0-2.fc42.x86_64
kwalletmanager5-25.04.0-1.fc42.x86_64
pam-kwallet-6.3.5-2.fc42.x86_64
signon-kwallet-extension-25.04.0-1.fc42.x86_

@arvindautar arvindautar changed the title Kdewallet causes brave to start slow brave to start slow May 23, 2025
@arvindautar arvindautar changed the title brave to start slow brave starts slooow May 23, 2025
@arvindautar
Copy link
Author

If KDE Wallet is disabled (e.g. Enabled=false in ~/.config/kwalletrc), Brave shouldn’t try to connect to kwalletd6 at all. If the check isn’t feasible up front, at least the D-Bus calls should fail fast — right now they hang for nearly a minute, which blocks the whole startup.

@bsclifton
Copy link
Member

Possible duplicate of #34889

@zeusshomaly
Copy link

I disagree, but they should work on a RAM limiter to limit RAM whilst gaming and that'd help lots of users to make RAM faster.

@arvindautar
Copy link
Author

arvindautar commented May 25, 2025

Re-enable KDE Wallet Manager:

Go to: System Settings > KDE Wallet

Check "Enable the KDE wallet subsystem"

Create an existing wallet with no passwords stored.

Set it to auto-close and not open at startup.

This satisfies dependent services without storing sensitive data.

Confirmed: enabling KDE Wallet (with an empty wallet set to auto-close) resolves the startup delay. Thank you @iT-hub-cloud — that workaround works perfectly.

@arvindautar
Copy link
Author

Still, this seems like a fragile dependency. When kwalletd6 is not running and KDE Wallet is disabled (e.g. Enabled=false in ~/.config/kwalletrc), Brave attempts to access it anyway and hangs for ~60 seconds. The delay is clearly linked to unhandled D-Bus calls to the KWallet subsystem.

Ideally:

  • Brave should not try to interact with KWallet at all if it’s explicitly disabled.
  • Or it should fail fast on D-Bus errors rather than blocking the whole startup.

This behavior is identical to what was discussed in #34889, but it’s still reproducible today (Flatpak version 1.78.102, KDE Plasma 6.3.5 on Fedora Kinoite 42/Aurora). Feel free to close this if it's considered a duplicate — just wanted to document the full chain of cause/workaround.

Thanks again!

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

No branches or pull requests

4 participants
@bsclifton @zeusshomaly @arvindautar and others