Okay, with Baloo disabled, the archive being local, and you having the latest Dolphin version from your distribution, plus the fact that you've seen this across several Dolphin versions, we can narrow down the possibilities. The lack of terminal output during the freeze is also important information. Let's focus on potential issues related to archive handling, context menus, and possible Qt/KDE interactions:
Given the context, here are some more targeted things to investigate:
-
Archive Handler Conflicts/Issues: Although you have the latest versions, there might be a conflict or bug specifically triggered when Dolphin interacts with the archive handling backend.
- Check Ark's configuration: Open Ark (KDE's archive manager). See if there are any unusual settings. Specifically, look for settings related to automatically extracting previews or scanning archives.
- Try a different archive manager: Install a different archive manager (e.g.,
p7zip, unrar) and see if the problem persists. If Dolphin doesn't freeze with a different archive manager, the issue might be with how Dolphin interfaces with Ark specifically.
-
Dolphin Context Menu Services/Plugins:
- Dolphin's context menu is extensible. A faulty or incompatible service menu could be the culprit.
- Disable service menus: Temporarily disable all custom service menus in Dolphin to see if that resolves the issue. You can usually find service menu scripts in
~/.local/share/kservices5/ServiceMenus/ or /usr/share/kservices5/ServiceMenus/. Move them to a backup directory, restart Dolphin, and try again. If it fixes the problem, add them back one by one to identify the problematic one.
-
Qt/KDE Bug: Given you've seen it over multiple versions, it could be a Qt or KDE framework bug triggered by specific archive types or file attributes.
- Try a different file manager: Install a completely different file manager (e.g., Thunar, PCManFM) and see if the right-click freeze occurs on the same archive files. If the issue doesn't happen in a different file manager, it strongly suggests a Dolphin or KDE-specific bug.
-
Desktop Environment:
- It's good to rule out the desktop itself. Although you're using KDE Plasma, consider if other Plasma components might be interacting.
- Try a different Plasma theme: While less likely, a very complex or buggy Plasma theme could theoretically cause issues with context menu rendering.
-
Memory Issues: While less likely since it's only triggered by archives, it's worth quickly checking.
- Monitor memory usage: Use
top or htop in a terminal to watch memory usage while right-clicking on the archive. A sudden spike that maxes out RAM could indicate a memory leak or inefficient process.
-
Specific Archive Types:
- Does the problem occur with all archive types (zip, tar.gz, rar, etc.), or only specific ones? This can help narrow down the problem to a specific archive handling library.
Here are some searches that could help find more specific solutions:
Okay, thanks for the detailed information. Based on your responses and the new search results, let's refine the troubleshooting steps:
I. Service Menus - Deep Dive
Given that basic configurations seem fine, the most likely culprit remains a problematic service menu, especially since the freeze occurs on right-click. It's time for a more thorough investigation:
-
Isolate Service Menus:
- Move all files from both
~/.local/share/kservices5/ServiceMenus/ and /usr/share/kservices5/ServiceMenus/ to a temporary backup folder.
- Restart Dolphin.
- Test right-clicking on an archive. If the freezing is gone, a service menu is definitely the cause.
-
Identify the Culprit:
- Move service menu files back in batches (e.g., 5 at a time) from the backup folder to their original location. Restart Dolphin and test after each batch.
- Once the freezing returns, you know the problematic service menu is in that last batch. Narrow it down further by moving them back one at a time until you find the specific file causing the issue.
-
Examine the Problematic Service Menu:
- Once identified, open the service menu file in a text editor (like Kate). Look for anything unusual, like:
- Commands that access network resources (even if you don't think they should be).
- Complex scripts or loops.
- Calls to external programs that might be hanging.
- Try temporarily commenting out sections of the service menu file to see if you can isolate the specific line(s) causing the issue.
-
Consider Incompatible Service Menus: Some service menus are designed for older versions of KDE/Plasma or specific applications. Even if they don't produce obvious errors, they might cause slowdowns.
- If a service menu hasn't been updated in a long time, consider removing it entirely or finding an alternative.
II. Ark Configuration and Interactions
Even though you're using the latest version of Ark, its interaction with Dolphin might be the source of the issue.
-
Ark Settings: Double-check Ark's settings for anything related to Dolphin integration or background processing of archives. Look for options like "extract previews," "scan archives," or similar features. Try disabling these temporarily.
-
File Associations: Verify that archive types are correctly associated with Ark in System Settings -> File Associations. Make sure there aren't any unusual or duplicate entries.
-
Alternative Archive Extraction: Instead of relying on Dolphin's context menu, try opening archives directly within Ark (double-clicking the archive file to open it in Ark's GUI). If this works without freezing, it further points to a context menu or Dolphin integration issue.
III. Investigate Qt/KDE Frameworks
- While less likely given the previous steps, it's possible there's a deeper Qt or KDE Frameworks bug.
- Check for Updates: Ensure all KDE-related packages are up to date. Sometimes a seemingly unrelated library update can fix underlying issues.
- KDE Bug Reports: Search the KDE bug tracker (https://bugs.kde.org/) for similar issues. Even if you don't find an exact match, you might find related bugs or workarounds.
- Distribution Forums: Check your distribution's forums (e.g., Manjaro, Fedora, etc.) for reports of similar issues with Dolphin and archive handling.
IV. "Compress To..." Function
Some users have reported freezes specifically related to the "Compress To..." option. Since you have not mentioned it, try to avoid this operation.
V. Other things to check
- Ensure there is enough free space in
/tmp directory
- Check for failing hardware
Important Considerations
- Journalctl: Although running Dolphin from the terminal didn't reveal anything during the freeze, it's still worth checking the system journal (
journalctl) for any errors or warnings that occur around the time you reproduce the freeze. Use journalctl -b -1 to see logs from the previous boot.
- User Account: As a test, create a brand new user account. Log in as that user and see if the Dolphin freezing problem occurs. If it doesn't, the issue is almost certainly in your original user's configuration files.
- X11 vs. Wayland: Are you using KDE Plasma with X11 or Wayland? While less likely, there could be subtle differences in how context menus are handled in each environment. If you're using Wayland, try logging in with X11 (or vice versa) to see if the problem goes away.
Let me know the results of these steps, and we can continue troubleshooting!