Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906170 - kde-apps/dolphin-23.04.1 compiled with USE=-activities takes ~25 seconds to load
Summary: kde-apps/dolphin-23.04.1 compiled with USE=-activities takes ~25 seconds to load
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-11 21:30 UTC by squatted_posture785
Modified: 2023-05-13 22:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.log,15.83 KB, text/x-log)
2023-05-11 21:30 UTC, squatted_posture785
Details
strace -c dolphin.log (strace.log,5.08 KB, text/x-log)
2023-05-11 22:13 UTC, squatted_posture785
Details
sudo gdb -p $(pidof strace) (gdb.log,1.25 KB, text/x-log)
2023-05-11 22:14 UTC, squatted_posture785
Details
$ gdb dolphin (gdb_dolphin.log,1.89 KB, text/x-log)
2023-05-11 22:40 UTC, squatted_posture785
Details
$ strace -ff dolphin (strace_ff_dolphin.log,4.61 KB, text/x-log)
2023-05-11 22:40 UTC, squatted_posture785
Details
$ ls -l /proc/$(pidof dolphin)/fd (ls.log,1.35 KB, text/x-log)
2023-05-12 08:04 UTC, squatted_posture785
Details

Note You need to log in before you can comment on or make changes to this bug.
Description squatted_posture785 2023-05-11 21:30:13 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-11 21:36:40 UTC
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?
Comment 2 squatted_posture785 2023-05-11 22:13:35 UTC
Created attachment 861541 [details]
strace -c dolphin.log
Comment 3 squatted_posture785 2023-05-11 22:14:04 UTC
Created attachment 861542 [details]
sudo gdb -p $(pidof strace)
Comment 4 squatted_posture785 2023-05-11 22:16:47 UTC
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.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-11 22:32:28 UTC
(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>
Comment 6 squatted_posture785 2023-05-11 22:40:02 UTC
Created attachment 861543 [details]
$ gdb dolphin
Comment 7 squatted_posture785 2023-05-11 22:40:22 UTC
Created attachment 861544 [details]
$ strace -ff dolphin
Comment 8 squatted_posture785 2023-05-11 22:41:09 UTC
(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.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-11 23:11:51 UTC
when it's hanging, could you do:
ls -l /proc/$(pidof dolphin)/fd

(or replace $(pidof dolphin) with the bad PID)
Comment 10 squatted_posture785 2023-05-12 08:04:35 UTC
Created attachment 861572 [details]
$ ls -l /proc/$(pidof dolphin)/fd
Comment 11 Fulgurance 2023-05-13 13:37:05 UTC
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
Comment 12 squatted_posture785 2023-05-13 14:09:52 UTC
(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?
Comment 13 Maciej Mrozowski gentoo-dev 2023-05-13 20:25:17 UTC
gdb says it waits here:
https://invent.kde.org/system/dolphin/-/blob/v23.04.1/src/global.cpp#L169
Comment 14 Maciej Mrozowski gentoo-dev 2023-05-13 21:05:37 UTC
Reverting commit https://invent.kde.org/system/dolphin/-/commit/d19800c69198b904ae47cb1e53dfe28f74618eb2 seems to fix the startup delay problem.
Comment 15 Maciej Mrozowski gentoo-dev 2023-05-13 21:18:59 UTC
Compiling-in activities (USE=activities) also fixes the problem
Comment 16 Larry the Git Cow gentoo-dev 2023-05-13 21:30:35 UTC
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(+)
Comment 17 squatted_posture785 2023-05-13 22:12:51 UTC
Can confirm the issue is fixed on my end now.

Thank you!