Bug 430901 - Dolphin freezes after right clicking on a file
Summary: Dolphin freezes after right clicking on a file
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-28 14:05 UTC by Podagric
Modified: 2024-07-23 13:36 UTC (History)
4 users (show)

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


Attachments
video (1.08 MB, video/mp4)
2020-12-28 14:05 UTC, Podagric
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Podagric 2020-12-28 14:05:01 UTC
SUMMARY
In a recent update of plasma and/or frameworks (I don?t remember exactly) all system files started to have VLC as a compatible program to read it, even those that didn?t make any sense, like SQL and APK files. 
I ignored this for a while but today I decided to uninstall and reinstall VLC to try to solve this problem. After that, dolphin started presenting these freezes when I click on any file with the right button.


STEPS TO REPRODUCE
I think this is going to be very hard to reproduce, but here goes
1. Open the dolphin and right-click on any file
2. Now the program is frozen for several seconds

Log
```
$  dolphin
kf.kio.core: We got some errors while running testparm "Weak crypto is allowed"
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-mng"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-nikon-nrw"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-samsung-srw"
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
```

ADDITIONAL INFORMATION
I recorded a small video showing the bug. It will be attached to this report

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kernel Version: 5.9.14-arch1-1
OS Type: 64-bit
Comment 1 Podagric 2020-12-28 14:05:35 UTC
Created attachment 134366 [details]
video
Comment 2 Nate Graham 2021-01-05 17:16:54 UTC
Very strange.
Comment 3 Podagric 2021-07-13 13:54:17 UTC
a little update for that.
since I reported this bug, it had stopped happening, and today it happened again after a file transfer via samba. I had to restart the computer to get it back to normal.
maybe it's a bug in kio? baloo?
Comment 4 Thomas Bertels 2024-07-23 13:36:31 UTC
According to the timeout (25 seconds), it looks like it's related to a DBus call (https://doc.qt.io/qt-6/qdbusabstractinterface.html#setTimeout).

Here's a backtrace with a similar freeze related to KDE Connect.
Note that void QDBusPendingReply::waitForFinished() can't set a lower timeout (https://doc.qt.io/qt-6/qdbuspendingreply.html#waitForFinished).

Maybe something like
 QTimer::singleShot(timeout, this, &Foo::updateCaption);
could be used to avoid this freeze (https://doc.qt.io/qt-6/qtimer.html#details).

Thread 1 "dolphin" received signal SIGINT, Interrupt.
0x00007ffff5aa34e9 in __futex_abstimed_wait_common64 (private=0, futex_word=0x555556542390, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57
57          return INTERNAL_SYSCALL_CANCEL (futex_time64, futex_word, op, expected,
(gdb) bt
#0  0x00007ffff5aa34e9 in __futex_abstimed_wait_common64 (private=0, futex_word=0x555556542390, expected=0, op=393, abstime=0x0, cancel=true) at futex-internal.c:57
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x555556542390, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, 
    private=private@entry=0, cancel=cancel@entry=true) at futex-internal.c:87
#2  0x00007ffff5aa356f in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x555556542390, expected=expected@entry=0, clockid=clockid@entry=0, 
    abstime=abstime@entry=0x0, private=private@entry=0) at futex-internal.c:139
#3  0x00007ffff5aa5ed9 in __pthread_cond_wait_common (cond=0x555556542368, mutex=<optimized out>, clockid=0, abstime=0x0) at pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x555556542368, mutex=<optimized out>) at pthread_cond_wait.c:618
#5  0x00007ffff56ce120 in QWaitConditionPrivate::wait (this=0x555556542340, deadline=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:102
#6  QWaitCondition::wait (this=this@entry=0x5555558ca030, mutex=mutex@entry=0x5555558ca028, deadline=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:180
#7  0x00007ffff6ee9534 in QDBusPendingCallPrivate::waitForFinished (this=0x5555558c9fe0) at /usr/src/debug/qt6-base/qtbase/src/dbus/qdbuspendingcall.cpp:206
#8  0x00007ffff6ee9651 in QDBusPendingCall::waitForFinished (this=this@entry=0x7fffffffbc98) at /usr/src/debug/qt6-base/qtbase/src/dbus/qdbuspendingcall.cpp:325
#9  0x00007fffd4018713 in SendFileItemAction::actions (this=0x555556f76ac0, fileItemInfos=..., parentWidget=0x5555557fa270)
    at /usr/src/debug/kdeconnect/kdeconnect-kde-24.05.2/fileitemactionplugin/sendfileitemaction.cpp:45
#10 0x00007ffff7c64e84 in KFileItemActionsPrivate::addPluginActionsTo(QMenu*, QMenu*, QList<QString> const&) [clone .isra.0] (this=0x5555557f6330, 
    mainMenu=0x7fffe000f1d0, actionsMenu=0x7fffe000f1d0, excludeList=...) at /usr/src/debug/kio/kio-6.3.0/src/widgets/kfileitemactions.cpp:583
#11 0x00005555555c5d2f in DolphinContextMenu::addAdditionalActions (this=this@entry=0x7fffe000f1d0, props=...)
    at /usr/src/debug/dolphin/dolphin-24.05.2/src/dolphincontextmenu.cpp:467
#12 0x00005555555c9917 in DolphinContextMenu::addItemContextMenu (this=0x7fffe000f1d0) at /usr/src/debug/dolphin/dolphin-24.05.2/src/dolphincontextmenu.cpp:256
#13 DolphinContextMenu::addAllActions (this=0x7fffe000f1d0) at /usr/src/debug/dolphin/dolphin-24.05.2/src/dolphincontextmenu.cpp:94
#14 DolphinContextMenu::DolphinContextMenu (this=<optimized out>, parent=<optimized out>, fileInfo=..., selectedItems=..., baseUrl=..., 
    fileItemActions=<optimized out>, this=<optimized out>, parent=<optimized out>, fileInfo=..., selectedItems=..., baseUrl=..., fileItemActions=<optimized out>)
    at /usr/src/debug/dolphin/dolphin-24.05.2/src/dolphincontextmenu.cpp:54
#15 0x00005555555a7fbf in DolphinMainWindow::openContextMenu (this=0x5555557fa270, pos=..., item=..., selectedItems=..., url=...)
    at /usr/src/debug/dolphin/dolphin-24.05.2/src/dolphinmainwindow.cpp:1405