Bug 478849 - Dolphin in administrator mode sometimes hangs/freezes until OOM kills it
Summary: Dolphin in administrator mode sometimes hangs/freezes until OOM kills it
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-21 17:59 UTC by Jacob White
Modified: 2024-10-25 16:11 UTC (History)
3 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 Jacob White 2023-12-21 17:59:10 UTC
SUMMARY
Sometimes, when browsing a directory with dolphin after using the "Open as Administrator" option to view root-owned folders, the dolphin window will freeze and become unresponsive. After a short while, the window is killed. This happened while I was browsing the /boot directory. I saw this in journalctl both times it happened:
>Dec 21 11:15:48 <hostname> kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/app-dolphin-d404b4650d8948828d743209543602cd.scope,task=dolphin,pid=7430,uid=1000
>Dec 21 11:15:48 <hostname> kernel: Out of memory: Killed process 7430 (dolphin) total-vm:22055596kB, anon-rss:13076652kB, file-rss:67080kB, shmem-rss:2016kB, UID:1000 pgtables:37908kB oom_score_adj:200
>Dec 21 11:15:48 <hostname> systemd[1758]: app-dolphin-d404b4650d8948828d743209543602cd.scope: A process of this unit has been killed by the OOM killer.
>Dec 21 11:15:49 <hostname> systemd[1758]: app-dolphin-d404b4650d8948828d743209543602cd.scope: Failed with result 'oom-kill'.
>Dec 21 11:15:49 <hostname> systemd[1758]: app-dolphin-d404b4650d8948828d743209543602cd.scope: Consumed 24.493s CPU time.

I had this happen twice very quickly, and then when I went to repro it a third time to gather more information I couldn't get it to happen, so it's not 100% consistent.

STEPS TO REPRODUCE
1. Navigate to /boot in dolphin
2. Right-click and select "Open as Administrator"
3. Enter password
4. Browse the directory and subdirectories. Click on files. Interact with the window.

OBSERVED RESULT
Sometimes, the window will freeze and no longer respond to input. Eventually, it will be killed.

EXPECTED RESULT
Expected that the window will not freeze when browsing the directory.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 39
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.6.8_tkg_eevdf (64-bit)
Graphics Platform: X11
Processors: 28 × Intel® Core™ i7-14700KF
Memory: 15.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4080/PCIe/SSE2
Manufacturer: Alienware
Product Name: Alienware Aurora R16
Comment 1 Akseli Lahtinen 2024-01-18 16:00:08 UTC
Can you send a screenshot of your context menu where the "Open as Adminstrator" is showing?

Do you know if it's official KDE plugin, or a third party plugin?
Comment 2 Jacob White 2024-01-19 06:11:05 UTC
(In reply to Akseli Lahtinen from comment #1)
> Can you send a screenshot of your context menu where the "Open as
> Adminstrator" is showing?
> 
> Do you know if it's official KDE plugin, or a third party plugin?

https://ibb.co/Pr2JV2f shows the context menu.

I didn't think about whether or not this is  official or not, or even a built-in function or not. I believe it is from the kio-admin package.
Comment 3 Akseli Lahtinen 2024-01-19 14:55:39 UTC
Yep, that's the KIO Admin one, it's the dog icon :) Thanks!
Comment 4 Jacob White 2024-01-27 16:16:20 UTC
I happened upon this bug report, which looks like it may have been the same issue (now that I know the kio-admin plugin provides the context menu option):
https://bugs.kde.org/show_bug.cgi?id=474909
Comment 5 David Edmundson 2024-10-25 16:11:46 UTC
Starting dolphin as root is bad practice and unsupported. 
For root operations please use kio-admin