Bug 442645 - Plasma freezes on receiving call from KDE Connect
Summary: Plasma freezes on receiving call from KDE Connect
Status: CONFIRMED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 22.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 444546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-09-18 11:19 UTC by gudvinr+kde
Modified: 2025-03-20 13:11 UTC (History)
13 users (show)

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


Attachments
Log of when it hangs (16.79 KB, text/x-log)
2023-12-15 16:06 UTC, Danir Toma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gudvinr+kde 2021-09-18 11:19:36 UTC
SUMMARY

Every time I get phone call and KDE Connect tries to react on this (by showing notification, etc) it completely freezes Plasma. Notifications, system tray and many other things become unresponsive for a while.

STEPS TO REPRODUCE
1. Receive a call
2. Wait for KDE Connect to react

OBSERVED RESULT

Desktop freezes

EXPECTED RESULT

No freeze

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.5-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Nicolas Fella 2021-09-20 15:27:35 UTC
I can't reproduce this here
Comment 2 gudvinr+kde 2021-09-20 15:38:22 UTC
(In reply to Nicolas Fella from comment #1)
> I can't reproduce this here

I just had this like an hour ago or so. But there's no apparent log entries in journald about something that might go wrong. How can I gather an additional information?
Comment 3 gudvinr+kde 2021-10-05 10:12:03 UTC
It also happened again today.

I got a log after this freeze occured but I don't think it is relevant to an issue itself.

Oct 05 13:08:01 desktop plasmashell[1087]: org.kde.plasma.notifications: Trying to replace notification with id 16 which doesn't exist, creating a new one. This is an application bug!
Oct 05 13:08:01 desktop plasmashell[1087]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml:116:15: QML QQuickItem: Binding loop detected for property "height"
Oct 05 13:08:01 desktop plasmashell[1087]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationPopup.qml:116:15: QML QQuickItem: Binding loop detected for property "height"
Oct 05 13:08:01 desktop plasmashell[1087]: kde.dataengine.mpris: "org.mpris.MediaPlayer2.kdeconnect.mpris_7c9374dd27a34f6baa0f5a623e984375" does not implement org.freedesktop.DBus.Properties correctly Error message was "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.mpris.MediaPlayer2.kdeconnect.mpris_7c9374dd27a34f6baa0f5a623e984375 was not provided by any .service files"
Oct 05 13:08:01 desktop plasmashell[1087]: kde.dataengine.mpris: Failed to find working MPRIS2 interface for "org.mpris.MediaPlayer2.kdeconnect.mpris_7c9374dd27a34f6baa0f5a623e984375"
Oct 05 13:08:01 desktop plasmashell[1087]: kde.dataengine.mpris: "org.mpris.MediaPlayer2.kdeconnect.mpris_a6777427a53d4a249156a49537e55af2" does not implement org.freedesktop.DBus.Properties correctly Error message was "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.mpris.MediaPlayer2.kdeconnect.mpris_a6777427a53d4a249156a49537e55af2 was not provided by any .service files"
Oct 05 13:08:01 desktop plasmashell[1087]: kde.dataengine.mpris: Failed to find working MPRIS2 interface for "org.mpris.MediaPlayer2.kdeconnect.mpris_a6777427a53d4a249156a49537e55af2"
Comment 4 gudvinr+kde 2021-10-05 11:00:53 UTC
I am suspecting that there's a deadlock issue with "pausemusic" plugin.

I am having this every time I am having a call so I just connected to kdeconnectd using GDB. Since I don't have debug symbols, stacktrace wouldn't be perfect but it should give some directions:

#0  0x00007ff872c6e8ca in __futex_abstimed_wait_common64 () from /usr/lib/libpthread.so.0
No symbol table info available.
#1  0x00007ff872c68270 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
No symbol table info available.
#2  0x00007ff873d5807c in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#3  0x00007ff874927b25 in ?? () from /usr/lib/libQt5DBus.so.5
No symbol table info available.
#4  0x00007ff8748e3120 in ?? () from /usr/lib/libQt5DBus.so.5
No symbol table info available.
#5  0x00007ff8748ce5bc in QDBusConnection::call(QDBusMessage const&, QDBus::CallMode, int) const ()
   from /usr/lib/libQt5DBus.so.5
No symbol table info available.
#6  0x00007ff8748ec178 in ?? () from /usr/lib/libQt5DBus.so.5
No symbol table info available.
#7  0x00007ff8748ee9c2 in QDBusAbstractInterfaceBase::qt_metacall(QMetaObject::Call, int, void**) ()
   from /usr/lib/libQt5DBus.so.5
No symbol table info available.
#8  0x00007ff8748eeb58 in QDBusAbstractInterface::qt_metacall(QMetaObject::Call, int, void**) ()
   from /usr/lib/libQt5DBus.so.5
No symbol table info available.
#9  0x00007ff865f65bb7 in ?? () from /usr/lib/qt/plugins/kdeconnect/kdeconnect_pausemusic.so
No symbol table info available.
#10 0x00007ff873f4a8ec in QMetaProperty::read(QObject const*) const () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#11 0x00007ff873f7050e in QObject::property(char const*) const () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#12 0x00007ff865f64440 in ?? () from /usr/lib/qt/plugins/kdeconnect/kdeconnect_pausemusic.so
No symbol table info available.
#13 0x00007ff875499b10 in Device::privateReceivedPacket(NetworkPacket const&) () from /usr/lib/libkdeconnectcore.so.21
No symbol table info available.
#14 0x00007ff873f7476b in ?? () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#15 0x00007ff8754678f6 in ?? () from /usr/lib/libkdeconnectcore.so.21
No symbol table info available.
#16 0x00007ff87547a5aa in LanDeviceLink::dataReceived() () from /usr/lib/libkdeconnectcore.so.21
No symbol table info available.
#17 0x00007ff873f7476b in ?? () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#18 0x00007ff873f7476b in ?? () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#19 0x00007ff87370c5a7 in ?? () from /usr/lib/libQt5Network.so.5
No symbol table info available.
#20 0x00007ff873f747a0 in ?? () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#21 0x00007ff8736c5d00 in ?? () from /usr/lib/libQt5Network.so.5
No symbol table info available.
#22 0x00007ff8736d9082 in ?? () from /usr/lib/libQt5Network.so.5
No symbol table info available.
#23 0x00007ff874aa3d62 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#24 0x00007ff873f3d3ba in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#25 0x00007ff873f96bfe in ?? () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#26 0x00007ff8721a44dc in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#27 0x00007ff8721f8749 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#28 0x00007ff8721a1bc1 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#29 0x00007ff873f95fe6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
No symbol table info available.
#30 0x00007ff873f3bd2c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#31 0x00007ff873f44294 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#32 0x000055aaa0e4d4ab in ?? ()
No symbol table info available.
#33 0x00007ff8738c7b25 in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#34 0x000055aaa0e4d79e in _start ()
No symbol table info available.


I also captured stacktrace of thread inside plasmashell that seems relevant to me:

#0  0x00007f18c77f48ca in __futex_abstimed_wait_common64 () at /usr/lib/libpthread.so.0
#1  0x00007f18c77ee270 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#2  0x00007f18c883d07c in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#3  0x00007f18c9413b25 in  () at /usr/lib/libQt5DBus.so.5
#4  0x00007f18c93cf120 in  () at /usr/lib/libQt5DBus.so.5
#5  0x00007f18c93ba5bc in QDBusConnection::call(QDBusMessage const&, QDBus::CallMode, int) const ()
    at /usr/lib/libQt5DBus.so.5
#6  0x00007f18c93d8178 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007f18c93da9c2 in QDBusAbstractInterfaceBase::qt_metacall(QMetaObject::Call, int, void**) ()
    at /usr/lib/libQt5DBus.so.5
#8  0x00007f18c93dab58 in QDBusAbstractInterface::qt_metacall(QMetaObject::Call, int, void**) ()
    at /usr/lib/libQt5DBus.so.5
#9  0x00007f1852961807 in  () at /usr/lib/libkdeconnectinterfaces.so.21
#10 0x00007f1852947817 in ConnectivityReportDbusInterface::qt_metacall(QMetaObject::Call, int, void**) ()
    at /usr/lib/libkdeconnectinterfaces.so.21
#11 0x00007f18c8a2f8ec in QMetaProperty::read(QObject const*) const () at /usr/lib/libQt5Core.so.5
#12 0x00007f18c8a5550e in QObject::property(char const*) const () at /usr/lib/libQt5Core.so.5
#13 0x00007f1852945e4e in  () at /usr/lib/libkdeconnectinterfaces.so.21
#14 0x00007f18c9e6dc61 in  () at /usr/lib/libQt5Qml.so.5
#15 0x00007f186e861edf in  ()
#16 0x0000000000000000 in  ()
Comment 5 gudvinr+kde 2021-10-16 13:02:52 UTC
After I disabled "Pause media during calls" issue is seemingly gone
Comment 6 Nicolas Fella 2021-10-28 15:40:53 UTC
*** Bug 444546 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Bruckner 2021-10-28 17:19:47 UTC
(In reply to Nicolas Fella from comment #6)
> *** Bug 444546 has been marked as a duplicate of this bug. ***

(In reply to gudvinr from comment #5)
> After I disabled "Pause media during calls" issue is seemingly gone

This workaround actually solved the issue. Thanks a lot!
Comment 8 Till Seifert 2022-06-28 14:35:41 UTC
Current version still affected. 
The workaround is good, but the call→pause music combo is like the main thing of these plugins, and it works great (the music get's paused, just plasma too:))
Comment 9 Vasishath Kaushal 2023-01-10 15:36:07 UTC
I also face this issue multiple times. At first i thought it might be because of wayland but disabling the pause media setting worked..
Comment 10 alexucu 2023-10-10 15:16:11 UTC
This seems to happen only sometimes, and if waiting long enough, plasma unfreezes eventually. I've gotten used to it, will try & report the workaround.
Comment 11 alexucu 2023-10-20 09:36:57 UTC
(In reply to alexucu from comment #10)
> This seems to happen only sometimes, and if waiting long enough, plasma
> unfreezes eventually. I've gotten used to it, will try & report the
> workaround.

The workaround seems to work indeed.
Comment 12 Danir Toma 2023-12-15 16:06:21 UTC
Created attachment 164197 [details]
Log of when it hangs

I don't thing this is related to calls, for me it happens even after a fresh reboot of both the PC and the phone, with no calls or call notifications going on.

The log also doesn't show any apparent reason for the lock-up. The problem is only occurring when both KDE Connect is started and a connection is established with a mobile phone. I've already reinstalled the system two times, even switching Distro (from Manjaro to Arch) in order to get around this issue.
Comment 13 Dashon 2024-03-24 03:05:08 UTC
I am also having this issue still on plasma 6
Comment 14 TxTechnician 2025-03-13 16:37:20 UTC
https://discuss.kde.org/t/kdeconnect-is-working-intermittently/31415?u=txtechnician

I've got the same problem.  And am now trying the workaround of:
> Disable "Pause media when phone call" setting.

Here is my info:
```
Operating System: openSUSE Tumbleweed 20250226
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i7-1355U
Memory: 15.3 GiB of RAM
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: HP
Product Name: HP Envy x360 2-in-1 Laptop 14-es0xxx
System Version: Type1ProductConfigId
```

KdeConnect:
```
txtechnician@txtechnician-hp-suse:~> zypper info kdeconnect-kde
Loading repository data...
Reading installed packages...


Information for package kdeconnect-kde:
---------------------------------------
Repository     : Main Repository (OSS)
Name           : kdeconnect-kde
Version        : 24.12.3-1.2
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 5.3 MiB
Installed      : Yes
Status         : out-of-date (version 24.12.2-1.1 installed)
Source package : kdeconnect-kde-24.12.3-1.2.src
Upstream URL   : https://apps.kde.org/kdeconnect
Summary        : Integration of Android with Linux desktops
Description    : 
    A package for integration of Android with Linux desktops.

    Current feature list:
    - Clipboard share: copy from or to your desktop
    - Notifications sync (4.3+): Read your Android notifications
    - Multimedia remote control: Use your phone as a remote control
    - WiFi connection: no USB wire or Bluetooth needed
    - RSA Encryption: your information is safe

    Please note you will need to install KDE Connect on Android for this app to work:
    https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp or
    https://f-droid.org/en/packages/org.kde.kdeconnect_tp/

txtechnician@txtechnician-hp-suse:~>
```