You are not logged in.

#1 2024-12-24 11:45:29

tinh
Member
Registered: 2012-12-16
Posts: 39

[SOLVED] Long startup for some apps like Dolphin and KeepassXC

Hello everyone,

I have an issue where Dolphin and KeepassXC (maybe other apps too) have a very slow startup time. Windows are very slow to appear on the screen.

For Dolphin, once the window has appeared, there is a second delay during which the app is unusable with the last opened directories and with the fs tree's section on the sidebar blank for a moment, then everything works.
It occurs in Sway as well as under KDE (wayland version).

Also, when launching KDE, menus and backgrounds are very slow to appear.

Apps like Firefox, Emacs, Thunderbird, Libreoffice have no issue.

I tried launching the above mentioned apps with network activated (using NetworkManager) or without internal drive mounted and nothing changed.

Would you please help diagnose the issue?

Last edited by tinh (2024-12-27 15:33:02)

Offline

#2 2024-12-24 14:11:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,874

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

printenv
glxinfo -B #mesa-utils
strace -f -tt -o /tmp/dolphin.strace dolphin #Needs the strace package
curl -F 'file=@-' 0x0.st < /tmp/dolphin.strace

it sounds like you globally enabled the qt software renderer for some reason. maybe also check whether ~/.config/kdeglobals exits and remove the section

[QtQuickRendererSettings]
SceneGraphBackend=software

if present.

Last edited by V1del (2024-12-24 14:17:31)

Offline

#3 2024-12-24 16:42:36

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

very slow startup time

Please quantify this: 1s, 5s, 25s, 1m, 5m, 30m ?
Check your journal for dbus/xdg-desktop-portal related errors/warnings.

Online

#4 2024-12-25 12:22:39

tinh
Member
Registered: 2012-12-16
Posts: 39

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

For the environment:

% printenv | sort
ASDF_DIR=/opt/asdf-vm
CASROOT=/usr
COLORTERM=yes
CSF_DrawPluginDefaults=/usr/share/opencascade/resources/DrawResources
CSF_EXCEPTION_PROMPT=1
CSF_IGESDefaults=/usr/share/opencascade/resources/XSTEPResource
CSF_LANGUAGE=us
CSF_MDTVTexturesDirectory=/usr/share/opencascade/resources/Textures
CSF_MIGRATION_TYPES=/usr/share/opencascade/resources/StdResource/MigrationSheet.txt
CSF_OCCTResourcePath=/usr/share/opencascade/resources
CSF_PluginDefaults=/usr/share/opencascade/resources/StdResource
CSF_ShadersDirectory=/usr/share/opencascade/resources/Shaders
CSF_SHMessage=/usr/share/opencascade/resources/SHMessage
CSF_StandardDefaults=/usr/share/opencascade/resources/StdResource
CSF_StandardLiteDefaults=/usr/share/opencascade/resources/StdResource
CSF_STEPDefaults=/usr/share/opencascade/resources/XSTEPResource
CSF_TObjDefaults=/usr/share/opencascade/resources/StdResource
CSF_TObjMessage=/usr/share/opencascade/resources/TObj
CSF_XCAFDefaults=/usr/share/opencascade/resources/StdResource
CSF_XmlOcafResource=/usr/share/opencascade/resources/XmlOcafResource
CSF_XSMessage=/usr/share/opencascade/resources/XSMessage
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
DESKTOP_SESSION=plasma
DISPLAY=:1
DRAWDEFAULT=/usr/share/opencascade/resources/DrawResources/DrawDefault
DRAWHOME=/usr/share/opencascade/resources/DrawResources
EDITOR=emacsclient -t -a ''
GPG_TTY=/dev/pts/36
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/user/.gtkrc-2.0:/home/user/.config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/user/.gtkrc:/home/user/.config/gtkrc
HG=/usr/bin/hg
HOME=/home/user
ICEAUTHORITY=/run/user/1000/iceauth_EVGbkX
INVOCATION_ID=e5b6bc758d004a9293ba14ff013f275b
JAVA_HOME=/home/user:src/build/linux-x86_64-server-release/jdk
JDK_HOME=/home/user:src/build/linux-x86_64-server-release/jdk
JOURNAL_STREAM=9:77997
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=6
KITTY_INSTALLATION_DIR=/usr/lib/kitty
KITTY_PID=21395
KITTY_WINDOW_ID=1
LANG=en_US.UTF-8
LC_TIME=fr_FR.UTF-8
LESS_TERMCAP_mb=[01;31m
LESS_TERMCAP_md=[01;31m
LESS_TERMCAP_me=[0m
LESS_TERMCAP_se=[0m
LESS_TERMCAP_so=[01;44;33m
LESS_TERMCAP_ue=[0m
LESS_TERMCAP_us=[01;32m
LOGNAME=user
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:
MAIL=/var/spool/mail/user
MANAGERPID=1829
MANPAGER=less -R --use-color -Dd+r -Du+b
MANROFFOPT=-P -c
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service/memory.pressure
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
MMGT_CLEAR=1
MOTD_SHOWN=pam
MOZ_ENABLE_WAYLAND=1
NOTES_PATH=/home/user/Documents/notes
OLDPWD=/home/user/.local/share
PAGER=less
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/home/user/.asdf/shims:/opt/asdf-vm/bin:/home/user/.cargo/bin:/Library/TeX/texbin:/home/user/.doom.d/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PWD=/home/user
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_QPA_PLATFORMTHEMA=qt5ct
QT_WAYLAND_RECONNECT=1
QV4_GC_TIMELIMIT=0
SESSION_MANAGER=local/hostname:@/tmp/.ICE-unix/11954,unix/hostname:/tmp/.ICE-unix/11954
SHELL=/usr/bin/zsh
SHLVL=1
SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh
SYSTEMD_EXEC_PID=12076
TERMINFO=/usr/lib/kitty/terminfo
TERM=xterm-kitty
USER=user
_=/usr/bin/printenv
WAYLAND_DISPLAY=wayland-0
XAUTHORITY=/run/user/1000/xauth_xsHAQt
XDG_CONFIG_DIRS=/home/user/.config/kdedefaults:/etc/xdg
XDG_CURRENT_DESKTOP=sway
XDG_DATA_DIRS=/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_MENU_PREFIX=plasma-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=5
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
XDG_SESSION_TYPE=wayland
XDG_VTNR=1

There is something wrong with those variables

XDG_CURRENT_DESKTOP=sway

since I'm on a fresh boot, logged right away to a KDE session when perfoming this command. Could it be problematic or even related to the current situation?

Concerning glx

% glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 18.1.8, DRM 3.59, 6.12.6-arch1-1) (0x747e)
    Version: 24.3.2
    Accelerated: yes
    Video memory: 16384MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 14462 MB, largest block: 14462 MB
    VBO free aux. memory - total: 30513 MB, largest block: 30513 MB
    Texture free memory - total: 14462 MB, largest block: 14462 MB
    Texture free aux. memory - total: 30513 MB, largest block: 30513 MB
    Renderbuffer free memory - total: 14462 MB, largest block: 14462 MB
    Renderbuffer free aux. memory - total: 30513 MB, largest block: 30513 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 16384 MB
    Total available memory: 48132 MB
    Currently available dedicated video memory: 14462 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 18.1.8, DRM 3.59, 6.12.6-arch1-1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.3.2-arch1.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.3.2-arch1.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.3.2-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

For the Dolphin strace output I noticed long call at 11:42:19 and 11:42:31

V1del wrote:

maybe also check whether ~/.config/kdeglobals exits and remove the section

[QtQuickRendererSettings]
SceneGraphBackend=software

if present.

It is not.

seth wrote:

Please quantify this: 1s, 5s, 25s, 1m, 5m, 30m ?

I recorded around 5s for Dolphin to appear, then 5 to 10s more for it to be usable.

For KeepassXC, it's around 30s for the window to appear, it is then usable right away.

seth wrote:

Check your journal for dbus/xdg-desktop-portal related errors/warnings.

I used the following command to check the logs

journalctl -xb | rg -i -C 5 "(dbus|xdg)"

and found the following lines concerning:

déc. 25 12:29:59 hostname dbus-broker-launch[1553]: Activation request for 'org.freedesktop.home1' failed: The systemd unit 'dbus-org.freedesktop.home1.service' could not be found.
..
déc. 25 12:30:00 pc-with-no-name dbus-broker-launch[1714]: Service file '/usr/share//dbus-1/services/org.kde.dolphin.FileManager1.service' is not named after the D-Bus name 'org.freedesktop.FileManager1'.
░░ Subject: Invalid service file
░░ Defined-By: dbus-broker
░░ Support: https://groups.google.com/forum/#!forum/bus1-devel
░░ 
░░ A service file is a ini-type configuration file.
░░ 
░░ It has one required section
..
déc. 25 12:30:00 pc-with-no-name dbus-broker-launch[1714]: Service file '/usr/share//dbus-1/services/org.kde.kscreen.service' is not named after the D-Bus name 'org.kde.KScreen'.
░░ Subject: Invalid service file
░░ Defined-By: dbus-broker
░░ Support: https://groups.google.com/forum/#!forum/bus1-devel
░░ 
░░ A service file is a ini-type configuration file.
░░ 
░░ It has one required section

There are many more errors regarding D-Bus and invalid service files.

For XDG, I noted lines (like the one below) concerning "hyprland" which is strange since I desinstalled it more than 6 months ago.

déc. 25 12:45:47 pc-with-no-name drkonqi-coredump-processor[2273]: "/usr/lib/xdg-desktop-portal-hyprland" 208963 "/var/lib/systemd/coredump/core.xdg-desktop-por.1000.b26214bf34ab4759b4a6c6fe247cf4ee.208963.1717489455000000.zst"

and the following two

déc. 25 12:44:46 pc-with-no-name xdg-desktop-por[1914]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback
déc. 25 12:44:46 pc-with-no-name xdg-desktop-por[1914]: The preferred method to match portal implementations to desktop environments is to use the portals.conf(5) configuration file

Nothing in the logs seems concerning to me regarding the current issue though... But I'm not too familiar with D-Bus or xdg.

Here's is the full output.

Thank you for your help and merry christmas!

Last edited by tinh (2024-12-26 11:55:09)

Offline

#5 2024-12-25 14:36:36

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.
Also please *never* use "-x" w/ journalctl - it's just spam. (Likewise never use "-r", equally pointless parameter that just makes everything harder to read)

And then please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

not some isolated lines.

For KeepassXC, it's around 30s for the window to appear, it is then usable right away.

sounds a lot like a dbus timeout that gets us into portal territory, might be sth. completely different, though.

"XDG_CURRENT_DESKTOP=sway" is probably something you're exporting in your shell rc /etc/environment* or /etc/profile* ?
It might throw xdg-desktop-portal off, though it looks like it's trying to start the KDE implementation.

Dolphin is different, I recently noticed that QFileSystemModel has turned slow AF w/ Qt6 - dolphin might just be scanning directories there.
Are any other KDE clients slow?
Does it help to move away the dolphin config files and/or test a fresh user account?

For XDG, I noted lines (like the one below) concerning "hyprland" which is strange since I desinstalled it more than 6 months ago.

That's drkonqi spammign what coredumps it has found - apparently the hyprland portal implementation had crashed on you wink

Online

#6 2024-12-26 21:27:16

tinh
Member
Registered: 2012-12-16
Posts: 39

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

seth wrote:

Please use  tags, not "quote" tags. Edit your post in this regard.

Done. Thanks for pointing that thing out.

seth wrote:

Also please *never* use "-x" w/ journalctl - it's just spam. (Likewise never use "-r", equally pointless parameter that just makes everything harder to read)

And then please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

not some isolated lines.

Done, thanks for explaining how to better sharing logs (I looked at the "journalctl" man and it even says that "-x" should not be used when reporting bug -made me laugh-).

So, I rebooted first, launched Dolphin then KeepassXC and captured the complete output.

seth wrote:

"XDG_CURRENT_DESKTOP=sway" is probably something you're exporting in your shell rc /etc/environment* or /etc/profile* ?

Well yes. In my shell env file. I moved in to my Sway' own user configuration and nothing really changed expect for a cleaner environment and maybe prevent future problems. Thank you for helping with that one!

seth wrote:

Dolphin is different, I recently noticed that QFileSystemModel has turned slow AF w/ Qt6 - dolphin might just be scanning directories there.

Well, that's a shame. Hopefully, maintainers will have it fixed soon.

seth wrote:

Are any other KDE clients slow?

What do you mean? Like an older version?

seth wrote:

Does it help to move away the dolphin config files and/or test a fresh user account?

I created another user made no configuration and logged into KDE, here's my feelings regarding usability comparing to my main user:

  • Kde launch time was still slow but more fast than with my current user on wallpaper and bar appearance, maybe because only one was set by default vs 3 -one for each screen- on my main user

  • Dolphin was a little faster. The startup time was about the same, but it was usable right after that time even with the tree view on the side panel

    • It would made sense regarding that QFileSystemModel issue you mentioned, because less files were located in the home of that user I guess

  • KeepassXC was the same unfortunately

seth wrote:

That's drkonqi spammign what coredumps it has found - apparently the hyprland portal implementation had crashed on you smile

Well I crashed on it too so we're even that way smile Do you know how I can trash those dumps in order to not spam the logs?

Last edited by tinh (2024-12-26 22:26:33)

Offline

#7 2024-12-26 23:27:14

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

What do you mean? Like and older version?

Sth. like kwrite or even konsole.

déc. 26 13:38:27 hostname systemd[1800]: Started KeePassXC - Password Manager.
déc. 26 13:38:29 hostname kernel: usb usb4-port6: Cannot enable. Maybe the USB cable is bad?
déc. 26 13:38:33 hostname kernel: usb usb4-port6: Cannot enable. Maybe the USB cable is bad?
déc. 26 13:38:37 hostname kernel: usb usb4-port6: Cannot enable. Maybe the USB cable is bad?
déc. 26 13:38:41 hostname kernel: usb usb4-port6: Cannot enable. Maybe the USB cable is bad?
déc. 26 13:38:41 hostname kded6[2133]: Registering ":1.126/StatusNotifierItem" to system tray
déc. 26 13:38:41 hostname keepassxc[8295]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

The main reason for at least dolphin and pot. keepassx is that there's a bogus usb device - maybe even the internal cabling to one of the ports (unfortunately nothing ever shows up at all, so I cannot tell you which device that is)

If that's not the reason for the keepassx stall, try to run plasma on X11
It tries to QWindow::requestActivate() but cannot on wayland - this might be related to some systray icon behavior?

Online

#8 2024-12-27 09:45:08

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

Online

#9 2024-12-27 15:32:39

tinh
Member
Registered: 2012-12-16
Posts: 39

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

Well you were right!
I connected and disconnected the usb3 extension cable connecting a usb3 hub to the pc many times and each time it was disconnected, the error disappeared and Dolphin and KeepassXC worked like a charm, once I reconnected it, the error reappeared.

Then, I tried with another extension cable and everything went smoothly for connected devices.

Strangely, after trying with the second extension cable, I tried again with the first one, the error didn't reappeared and Dolphin and KeepassXC were ok too. Does it mean the extension cable is ok and the error comes from somewhere else? If so, from where?

Also, there is some things I don't understand: how a fautly usb connection could lead to slow startup times of applications?

If you have some thoughts I'd be glad to read them.

And big thank you for time and energy on that matter.

Offline

#10 2024-12-27 15:38:09

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

Also, there is some things I don't understand: how a fautly usb connection could lead to slow startup times of applications?

Bus noise => IO stalls.

after trying with the second extension cable, I tried again with the first one, the error didn't reappeared and Dolphin and KeepassXC were ok too

#1: It's always the cable.
#2: In case it's not the cable, see #1 tongue

Plugs/jacks? The other cable might have (physically) straightened things out?
But could also be a break in the cable that manifests depending on tension and completely removing it (at least temporarily) might have eased that.
I'd mark the cable to know that it might have issues, in case funky stuff with it happens a year from now or so…

Online

#11 2024-12-29 10:27:33

tinh
Member
Registered: 2012-12-16
Posts: 39

Re: [SOLVED] Long startup for some apps like Dolphin and KeepassXC

And... I ditched the cable smile When I rebooted I logged into Sway, no problem but when I switched to KDE, the problem reappeared. None, whatsoever with the other cable, so to ease my mind, I ditched the first cable. Thank you again !

Offline

Board footer

Powered by FluxBB