Summary: | Dolphin temporarily freezes while opening directories with large amounts of files | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Mircea Kitsune <sonichedgehog_hyperblast00> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | elvis.angelaccio, nate, postix, sonichedgehog_hyperblast00 |
Priority: | NOR | ||
Version: | 18.04.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Mircea Kitsune
2018-06-14 15:01:40 UTC
Does it happen only with images? Can you start dolphin from gdb a get a backtrace when it freezes? And to answer your question, yes Dolphin already handles the filesystem out of process (thanks to the file kio-slave). (In reply to Elvis Angelaccio from comment #1) Just tried entering a directory with roughly 50.000 text files. Same issue: Dolphin is frozen for about 4 seconds upon entering the folder. I should also note that the freeze occurs the same way for refreshing: Whenever I press F5 to refresh, Dolphin stops working for the exact same amount of time as when I enter it. I thought GDB only works when a process permanently freezes. This is a temporary freeze and likely not due to a crash, so I'm not sure if it will capture anything useful. I might try this test tomorrow. It's surprising to hear that this shouldn't be happening as it seemed like it's by design. If a different process is doing the reading then it indeed shouldn't have this effect. I can only suspect something having to do with disk I/O. For reference, I use openSUSE Tumbleweed x64 and my partitions are all ext4. I decided to look at the Dolphin process in KSysGuard while it's loading those directories. Surprisingly it doesn't go into "disk sleep" mode like I thought: It uses between 10% and 90& CPU until the directory finishes loading, after which it stops using any CPU and returns to normal. Could this be due to sorting? I sort the directory by name though, and even if I disable natural sorting it still does it. I noticed the times are much longer when I sort by date instead, so perhaps this is related. If I run the command "ls" inside the directory from a bash console, it finishes listing everything in less than two seconds. Dolphin is clearly doing something that's causing it to take longer than normal. I'm going to mark this resolved as I haven't seen it happen in a long time. Dolphin still takes a bit to open large directories, however its process no longer downright freezes while doing this, files and folders appear gradually while the program can still be used during that time. |