When right-clicking in the file view either on a directory or on a place where no file or directory is present, it takes some time until the context menu is shown. (About a 0.5 to 1 second.) When you right-click on a normal file however, the context menu is shown instantaneously. This is not a huge issue, but it makes dolphin feel a little sluggish. Reproducible: Always Steps to Reproduce: 1. Right-click on a folder or right-click on an empty space in the file view of dolphin Actual Results: It takes 0.5-1 second until the context menu is shown. Expected Results: The context menu should show instanteously. This also happens on a fresh system like Fedora 21 Beta Live system, so it is not just my system configuration that causes this behavior. The context menu with the same entries shows immediatly with konqueror. My hardware is not low-end.
Thanks for the bug report, but I cannot reproduce the problem. In order to find out what the cause of the problem is, we need more information. Does the problem persist if you disable all "Services" in the settings dialog? If that fixes the problem, you can re-enable the services one by one to find out which one is responsible. Either way, the most helpful thing that you can provide is to obtain a backtrace during the break between the click and the appearance of the menu. See https://community.kde.org/Dolphin/FAQ/Freeze Thanks for your help.
Created attachment 89621 [details] gdb log Gdb log; halted dolphing before the menu was shown.
Even when all dolphin services are disabled it still lags when showing the context menu. This behavior appears to be somewhat hardware dependent. I tested it on another computer (with a live cd) and it did not have the delay. I do have the issue though with the same live cd (as I have it on my installed OS) on my computer. (Hardware of my computer: i5 2450M CPU and GPU, 8 GB RAM, so not to bad). Is it possible that blocking I/O or computations are causing this issue?
Thanks for the backtrace! The delay happens while Solid/UDev is investigating the devices that are available. It seems that there is a slow device on your system which causes the delay. The reason why the devices are queried at all when the context menu is opened is the following: The context menu will show an "Add to Places" entry for folders, but only if the folder is not shown in the Places Panel yet. To find out if that is the case, the context menu initializes an instance of the class which is responsible for managing the Places Panel entries, and this includes querying all devices which would be shown in the Panel. Actually, this is not really necessary at all because investigating the user-defined "Places" would be sufficient. However, the approach which is used in Dolphin was much easier to implement (it was implemented a long time ago, even before I got involved with Dolphin, I think) and works nicely most of the time. Changing it might be desirable, but unfortunately, a clean solution is not straightforward. Thread 1 (Thread 0x7ffff7f85940 (LWP 2601)): #0 0x00000036bc4e62ed in open64 () from /lib64/libc.so.6 #1 0x00000036bc477950 in __GI__IO_file_fopen () from /lib64/libc.so.6 #2 0x00000036bc46c1d4 in __fopen_internal () from /lib64/libc.so.6 #3 0x0000003371a06562 in udev_device_read_db () from /lib64/libudev.so.1 #4 0x0000003371a04dff in udev_device_get_properties_list_entry () from /lib64/libudev.so.1 #5 0x0000003371e85561 in UdevQt::Device::deviceProperties() const () from /lib64/libsolid.so.4 ---Type <return> to continue, or q <return> to quit--- #6 0x0000003371e798d7 in Solid::Backends::UDev::UDevManager::Private::checkOfInterest(UdevQt::Device const&) () from /lib64/libsolid.so.4 #7 0x0000003371e7a273 in Solid::Backends::UDev::UDevManager::Private::isOfInterest(QString const&, UdevQt::Device const&) () from /lib64/libsolid.so.4 #8 0x0000003371e7a7f1 in Solid::Backends::UDev::UDevManager::allDevices() () from /lib64/libsolid.so.4 #9 0x0000003371e7b489 in Solid::Backends::UDev::UDevManager::devicesFromQuery(QString const&, Solid::DeviceInterface::Type) () from /lib64/libsolid.so.4 #10 0x0000003371e4a5be in Solid::Device::listFromQuery(Solid::Predicate const&, QString const&) () from /lib64/libsolid.so.4 #11 0x0000003372c6176e in PlacesItemModel::initializeAvailableDevices() () from /lib64/libkdeinit4_dolphin.so #12 0x0000003372c64471 in PlacesItemModel::PlacesItemModel(QObject*) () from /lib64/libkdeinit4_dolphin.so #13 0x0000003372c4cec0 in DolphinContextMenu::placeExists(KUrl const&) const () from /lib64/libkdeinit4_dolphin.so #14 0x0000003372c4de8c in DolphinContextMenu::openItemContextMenu() () from /lib64/libkdeinit4_dolphin.so
Comment from GCI student: Using Ubuntu 14.10 with KDE 4.14.2. Takes about 1.5 sec to load that menu
This issue has been worked around, so we can close this report for now.