Bug 442010 - In a new instance, Dolphin and Filelight freeze for a long period the first time trying to open a file, with no freezes on subsequent attempts, or when right-clicking, always taking a very long time for the menu to pop up
Summary: In a new instance, Dolphin and Filelight freeze for a long period the first t...
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (show other bugs)
Version: 5.85.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords: efficiency
Depends on:
Blocks:
 
Reported: 2021-09-04 19:27 UTC by Kyle Devir
Modified: 2021-09-10 07:04 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Devir 2021-09-04 19:27:31 UTC
SUMMARY

After opening a new instance, Dolphin will freeze for a good 10 or so seconds upon trying to open any file, but eventually unfreezes, and the file opens fine. Subsequent attempts to open files show no such freezes or delays. With the Wayland backend, this was causing the Wayland connection to just die before it could unfreeze, so I discovered this with the XCB backend.


STEPS TO REPRODUCE

1. Update to kdesrc-build master
2. Open fresh instance of Dolphin using XCB backend
3. Open any file ~ wait a long period for Dolphin to unfreeze and actually open
4. Open any other files, and notice immediate response


OBSERVED RESULT

Long delay with initial file opening.


EXPECTED RESULT

Normal response times


SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.1-arch1-1-custom (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: Radeon RX 580 Series
Comment 1 Kyle Devir 2021-09-04 23:03:45 UTC
I've noticed that the exact same issue pops up when attempting to open Dolphin from Konsole via "Open File Manager"

Wayland backend freezes and the connection dies. Using the XCB backend, initial attempt freezes Konsole for a good 10 seconds, until it opens. Closing Dolphin and trying again has an immediate outcome, without freezing.
Comment 2 Kyle Devir 2021-09-04 23:17:04 UTC
Right-clicking in Dolphin also creates the freezing issue
Comment 3 Kyle Devir 2021-09-04 23:20:46 UTC
The right-clicking freeze never unfreezes...
Comment 4 Antonio Rojas 2021-09-05 08:33:11 UTC
Do you have kdeinit installed?
Comment 5 Antonio Rojas 2021-09-05 08:33:36 UTC
(In reply to Antonio Rojas from comment #4)
> Do you have kdeinit installed?

I meant kinit
Comment 6 Kyle Devir 2021-09-05 20:00:03 UTC
@Antonio

Yes
Comment 7 Kyle Devir 2021-09-05 20:00:40 UTC
Wait, kinit?
Comment 8 Kyle Devir 2021-09-05 20:01:55 UTC
If kinit is a dependecy, I thought kdesrc-build would have drawn it in as a dependency for Dolphin...
Comment 9 Kyle Devir 2021-09-05 20:03:29 UTC
So, yes, kinit is actually installed, so it is, apparently
Comment 10 Antonio Rojas 2021-09-05 20:12:34 UTC
kinit was recently removed as a dependency of dolphin, but it is still an undeclared runtime dependency of some frameworks, which may break stuff. Since you have it installed, we can rule it out as the cause for this.
Comment 11 Kyle Devir 2021-09-06 05:48:21 UTC
It's not just Dolphin suffering from this.

Apparently, Filelight also suffers the exact same issues...

So, probably an issue in KDE Frameworks somehow...
Comment 12 Antonio Rojas 2021-09-07 06:29:52 UTC
*** Bug 442106 has been marked as a duplicate of this bug. ***
Comment 13 Antonio Rojas 2021-09-07 06:43:43 UTC
Can someone affected try to bisect the issue?
Comment 14 Kyle Devir 2021-09-08 04:58:03 UTC
Was testing some older builds, and found that my build from August 30th worked without any noticeable issues.

So that should hopefully vastly cut down the number of commits needed to bisect.

I'd help out, but I have no idea how to do a bisection workflow with kdesrc-build, sorry.

If there are any resources on how to do that, so it's not a painful mess, I'd be very grateful.
Comment 15 Kyle Devir 2021-09-10 07:04:35 UTC
As of the latest kdesrc-build I just made, I can no longer reproduce this error whatsoever. :/

Still leaves me puzzled as to the cause, but now I can't do anything to even reproduce it... oh well...