Created attachment 861540 [details] emerge --info I'm using AwesomeWM. After updating kde-apps/dolphin to 23.04.1 today, Dolphin takes about 25 seconds to load. Downgrading to 22.12.3 immediately solves the issue. I had no issue with 23.04.0 but I couldn't downgrade to this version since the ebuild has been dropped. When running Dolphin, the window borders show up immediately but the window content is either the wallpaper or another window content from the same tag for ~25 seconds. Then, Dolphin content finally appears. This ~25 seconds delay is consistent. There is no delay when opening a new Dolphin window from an existing instance. Dolphin works normally once loaded (browsing different directories, copying/moving large files...). There is no output when running dolphin from a terminal. I'm not having any other slowdown/lag with other programs. I have Arch Linux installed on the same machine. Dolphin was updated to 23.04.1 on Arch too and I don't have this issue, zero delay whatsoever. What I tried so far, to no avail: - Rebooting the machine - Booting from different kernels - gentoo-sources-{6.1.28,6.3.1-r1,6.3.2} - Creating a new user account (exact same issue) - Reinstalling kde-apps/dolphin-23.04.1 - Removing ~/.config/dolphinrc - Removing ~/.config/kiorc - Removing ~/.local/share/user-places.xbel I'm filling a bug here because I don't have the issue on Arch, feel free to let me know if this should be reported to the KDE bug tracker instead.
Could you strace it and attach with gdb when it's hanging and get a backtrace? This sounds a lot like a dbus session might not be running?
Created attachment 861541 [details] strace -c dolphin.log
Created attachment 861542 [details] sudo gdb -p $(pidof strace)
Attached the output of: - $ strace -c dolphin - $ sudo gdb -p $(pidof strace) I've never used these tools before so apologies in advance if I'm not doing this right, which is most likely the case. The gdb output doesn't look very interesting.
(In reply to ut2s7kol87 from comment #4) > Attached the output of: > > - $ strace -c dolphin > - $ sudo gdb -p $(pidof strace) > > I've never used these tools before so apologies in advance if I'm not doing > this right, which is most likely the case. The gdb output doesn't look very > interesting. No worries! Could you try something like: $ gdb dolphin <when it opens, type 'r'> <after a bit, say 5 seconds, while it is hanging, CTRL-C/^C> <type 'bt'> <share all the output> and, separately, unrelated to gdb: $ strace -ff dolphin <wait a bit, lots of output...> <CTRL-C/^C while it is hanging, say 5 seconds in..> <show me the last 20 lines or so while it is hanging>
Created attachment 861543 [details] $ gdb dolphin
Created attachment 861544 [details] $ strace -ff dolphin
(In reply to Sam James from comment #5) > (In reply to ut2s7kol87 from comment #4) > > Attached the output of: > > > > - $ strace -c dolphin > > - $ sudo gdb -p $(pidof strace) > > > > I've never used these tools before so apologies in advance if I'm not doing > > this right, which is most likely the case. The gdb output doesn't look very > > interesting. > > No worries! > > Could you try something like: > $ gdb dolphin > <when it opens, type 'r'> > <after a bit, say 5 seconds, while it is hanging, CTRL-C/^C> > <type 'bt'> > <share all the output> > > and, separately, unrelated to gdb: > $ strace -ff dolphin > <wait a bit, lots of output...> > <CTRL-C/^C while it is hanging, say 5 seconds in..> > <show me the last 20 lines or so while it is hanging> Thank you for these detailed instructions, hopefully I did it right this time around.
when it's hanging, could you do: ls -l /proc/$(pidof dolphin)/fd (or replace $(pidof dolphin) with the bad PID)
Created attachment 861572 [details] $ ls -l /proc/$(pidof dolphin)/fd
I can confirm the issue, because yesterday I reinstalled my system, and I never see dolphin so long to load O_O Dolphin is a big snail actually I don't know if this can be the origin of the bug, but I am encountered actually a problem as well with the xml library
(In reply to Fulgurance from comment #11) > I can confirm the issue, because yesterday I reinstalled my system, and I > never see dolphin so long to load O_O > > Dolphin is a big snail actually > > I don't know if this can be the origin of the bug, but I am encountered > actually a problem as well with the xml library Does downgrading to 22.12.3 solves the issue on your side as well?
gdb says it waits here: https://invent.kde.org/system/dolphin/-/blob/v23.04.1/src/global.cpp#L169
Reverting commit https://invent.kde.org/system/dolphin/-/commit/d19800c69198b904ae47cb1e53dfe28f74618eb2 seems to fix the startup delay problem.
Compiling-in activities (USE=activities) also fixes the problem
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f40b12d3f5d6182cf7b74cebdfaacb0051d11e8 commit 0f40b12d3f5d6182cf7b74cebdfaacb0051d11e8 Author: Maciej Mrozowski <reavertm@gentoo.org> AuthorDate: 2023-05-13 21:27:48 +0000 Commit: Maciej Mrozowski <reavertm@gentoo.org> CommitDate: 2023-05-13 21:29:56 +0000 kde-apps/dolphin: revert upstream commit in 23.04.1 that introduces startup delay with USE=-activities Signed-off-by: Maciej Mrozowski <reavertm@gentoo.org> Bug: https://bugs.gentoo.org/906170 kde-apps/dolphin/dolphin-23.04.1.ebuild | 4 + .../files/dolphin-23.04.1-fix-startup-delay.patch | 121 +++++++++++++++++++++ 2 files changed, 125 insertions(+)
Can confirm the issue is fixed on my end now. Thank you!