Bug 390261 - kdeconnectd notifications crash once in a while
Summary: kdeconnectd notifications crash once in a while
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: plasmoid (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-11 12:27 UTC by Kai Krakow
Modified: 2018-03-30 09:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Krakow 2018-02-11 12:27:08 UTC
$ coredumpctl dump 31138 
           PID: 31138 (kdeconnectd)
           UID: 500 (kakra)
           GID: 500 (kakra)
        Signal: 11 (SEGV)
     Timestamp: Sat 2018-02-10 14:20:11 CET (23h ago)
  Command Line: /usr/lib64/libexec/kdeconnectd
    Executable: /usr/lib64/libexec/kdeconnectd
 Control Group: /user.slice/user-500.slice/session-c8.scope
          Unit: session-c8.scope
         Slice: user-500.slice
       Session: c8
     Owner UID: 500 (kakra)
       Boot ID: 6062cfc5bd404679bf9f3a0ef42ce52c
    Machine ID: 121b87ca633e8ac0016656680000001b
      Hostname: jupiter
       Storage: /var/lib/systemd/coredump/core.kdeconnectd.500.6062cfc5bd404679bf9f3a0ef42ce52c.31138.1518268811000000.lz4
       Message: Process 31138 (kdeconnectd) of user 500 dumped core.
                
                Stack trace of thread 31138:
                #0  0x00007ff6dc9f1b67 _ZSt4swapIP15QTypedArrayDataItEENSt9enable_ifIXsrSt6__and_IJSt21is_move_constructibleIT_ESt18is_move_assignableIS6_EEE5valueEvE4typeERS6_SD_ (kdeconnect_notifications.so)
                #1  0x00007ff6dc9f3ca1 _ZN12Notification6updateERK14NetworkPackage (kdeconnect_notifications.so)
                #2  0x00007ff6dc9fb394 _ZN26NotificationsDbusInterface14processPackageERK14NetworkPackage (kdeconnect_notifications.so)
                #3  0x00007ff6dc9f43bb _ZN19NotificationsPlugin14receivePackageERK14NetworkPackage (kdeconnect_notifications.so)
                #4  0x00007ff6fb6a5458 _ZN6Device22privateReceivedPackageERK14NetworkPackage (libkdeconnectcore.so.1)
                #5  0x00007ff6f9832c90 _ZN9QtPrivate15QSlotObjectBase4callEP7QObjectPPv (libQt5Core.so.5)
                #6  0x00007ff6fb6abf25 _ZN10DeviceLink15receivedPackageERK14NetworkPackage (libkdeconnectcore.so.1)
                #7  0x00007ff6fb6859ba _ZN13LanDeviceLink12dataReceivedEv (libkdeconnectcore.so.1)
                #8  0x00007ff6f9832c90 _ZN9QtPrivate15QSlotObjectBase4callEP7QObjectPPv (libQt5Core.so.5)
                #9  0x00007ff6fb68b1d6 _ZN16SocketLineReader12dataReceivedEv (libkdeconnectcore.so.1)
                #10 0x00007ff6f9832c90 _ZN9QtPrivate15QSlotObjectBase4callEP7QObjectPPv (libQt5Core.so.5)
                #11 0x00007ff6f8b71c37 _ZN24QSslSocketBackendPrivate8transmitEv (libQt5Network.so.5)
                #12 0x00007ff6f8b5a642 _ZN17QSslSocketPrivate16_q_readyReadSlotEv (libQt5Network.so.5)
                #13 0x00007ff6f9832939 _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #14 0x00007ff6f8b286f7 _ZN22QAbstractSocketPrivate13emitReadyReadEi (libQt5Network.so.5)
                #15 0x00007ff6f8b36c01 _ZN13QReadNotifier5eventEP6QEvent (libQt5Network.so.5)
                #16 0x00007ff6fa4f1c8c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #17 0x00007ff6fa4f91cb _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #18 0x00007ff6f9804fd0 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #19 0x00007ff6f985cbfd _ZN16QCoreApplication9sendEventEP7QObjectP6QEvent (libQt5Core.so.5)
                #20 0x00007ff6f3432a97 g_main_dispatch (libglib-2.0.so.0)
                #21 0x00007ff6f3432d30 g_main_context_iterate (libglib-2.0.so.0)
                #22 0x00007ff6f3432ddc g_main_context_iteration (libglib-2.0.so.0)
                #23 0x00007ff6f985bf7f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #24 0x00007ff6f9802fda _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #25 0x00007ff6f980c0e4 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
                #26 0x000055f0ac033004 main (kdeconnectd)
                #27 0x00007ff6f8dec5f1 __libc_start_main (libc.so.6)
                #28 0x000055f0ac03306a _start (kdeconnectd)

                Stack trace of thread 31145:
                #0  0x00007ff6f8eba18d poll (libc.so.6)
                #1  0x00007ff6f1b6b8d0 poll (libxcb.so.1)
                #2  0x00007ff6f1b6e229 xcb_wait_for_event (libxcb.so.1)
                #3  0x00007ff6ea8d2f39 _ZN15QXcbEventReader3runEv (libQt5XcbQpa.so.5)
                #4  0x00007ff6f962ce39 _ZN14QThreadPrivate5startEPv (libQt5Core.so.5)
                #5  0x00007ff6f529d8b7 start_thread (libpthread.so.0)
                #6  0x00007ff6f8ec552f __clone (libc.so.6)

                Stack trace of thread 31188:
                #0  0x00007ff6f8eba18d poll (libc.so.6)
                #1  0x00007ff6f3432cc6 g_main_context_poll (libglib-2.0.so.0)
                #2  0x00007ff6f3432ddc g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007ff6f985bf7f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007ff6f9802fda _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007ff6f9627e73 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007ff6f81e2585 _ZN22QDBusConnectionManager3runEv (libQt5DBus.so.5)
                #7  0x00007ff6f962ce39 _ZN14QThreadPrivate5startEPv (libQt5Core.so.5)
                #8  0x00007ff6f529d8b7 start_thread (libpthread.so.0)
                #9  0x00007ff6f8ec552f __clone (libc.so.6)

                Stack trace of thread 31193:
                #0  0x00007ff6f8eba18d poll (libc.so.6)
                #1  0x00007ff6f3432cc6 g_main_context_poll (libglib-2.0.so.0)
                #2  0x00007ff6f3432ddc g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007ff6f985bf7f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007ff6f9802fda _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007ff6f9627e73 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007ff6f962ce39 _ZN14QThreadPrivate5startEPv (libQt5Core.so.5)
                #7  0x00007ff6f529d8b7 start_thread (libpthread.so.0)
                #8  0x00007ff6f8ec552f __clone (libc.so.6)
Comment 1 Kai Krakow 2018-02-11 12:27:56 UTC
Related dmesg entry:

[ 6342.923363] kdeconnectd[31138]: segfault at 10 ip 00007ff6dc9f1b67 sp 00007fff939cef00 error 4 in kdeconnect_notifications.so[7ff6dc9eb000+1b000]
Comment 2 Nicolas Fella 2018-03-02 15:00:13 UTC
Two questions:
Which version of KIO are you running?
And, this may sound weird but could explain the issue, are you running Spotify on your phone?
Comment 3 Kai Krakow 2018-03-02 23:03:25 UTC
(In reply to Nicolas Fella from comment #2)
> Two questions:
> Which version of KIO are you running?

$ equery l kde-frameworks/kio
 * Searching for kio in kde-frameworks ...
[IP-] [  ] kde-frameworks/kio-5.43.0-r1:5/5.43

> And, this may sound weird but could explain the issue, are you running
> Spotify on your phone?

Yes, although Spotify is usually idle while I'm at home. I mostly use it via bluetooth in the car.

I cannot really explain the issue, it just crashes. I don't even notice it (except there are no longer any notifications). I usually only detect this when looking at dmesg.
Comment 4 Colin J Thomson 2018-03-04 23:19:07 UTC
I have the same issue (fedora 27) but have no idea what causes the problem either. Its been fine all day today.
I don't have Spotify but there maybe a possible connection with WhatsApp notifications maybe.
It will just crash and the plasmoid then shows "no devices available" I then check dmesg and it shows this:

kdeconnectd[1585]: segfault at 10 ip 00007fd83834aa08 sp 00007ffce8da9540 error 4 in kdeconnect_notifications.so[7fd838344000+15000]

Running frameworks 5.44, but I have seen this for a few frameworks versions now.
Comment 5 David Pyke 2018-03-16 12:32:20 UTC
Also happening to me:
coredumpctl dump 32226
           PID: 32226 (kdeconnectd)
           UID: 1000 (loftwyr)
           GID: 1000 (loftwyr)
        Signal: 11 (SEGV)
     Timestamp: Fri 2018-03-16 08:29:05 EDT (1min 56s ago)
  Command Line: /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
    Executable: /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
 Control Group: /user.slice/user-1000.slice/session-8.scope
          Unit: session-8.scope
         Slice: user-1000.slice
       Session: 8
     Owner UID: 1000 (loftwyr)
       Boot ID: 9bb08ef650a741858b4e3b0451a26d71
    Machine ID: adb4886f41864f2b9182288e8ddd6519
      Hostname: www
       Storage: /var/lib/systemd/coredump/core.kdeconnectd.1000.9bb08ef650a741858b4e3b0451a26d71.32226.1521203345000000.lz4
       Message: Process 32226 (kdeconnectd) of user 1000 dumped core.
                
                Stack trace of thread 32226:
                #0  0x00007f56610399a8 n/a (kdeconnect_notifications.so)
                #1  0x00007f566103b3e1 n/a (kdeconnect_notifications.so)
                #2  0x00007f56610418e5 n/a (kdeconnect_notifications.so)
                #3  0x00007f566103bc3f n/a (kdeconnect_notifications.so)
                #4  0x00007f5685039470 _ZN6Device22privateReceivedPackageERK14NetworkPackage (libkdeconnectcore.so.1)
                #5  0x00007f56831c431f _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #6  0x00007f5685041145 n/a (libkdeconnectcore.so.1)
                #7  0x00007f5685019dc6 _ZN13LanDeviceLink12dataReceivedEv (libkdeconnectcore.so.1)
                #8  0x00007f56831c431f _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)                                                                                                                    
                #9  0x00007f5685022b46 _ZN16SocketLineReader12dataReceivedEv (libkdeconnectcore.so.1)                                                                                                                
                #10 0x00007f56831c431f _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)                                                                                                                    
                #11 0x00007f5682530c96 n/a (libQt5Network.so.5)                                                                                                                                                      
                #12 0x00007f56825154d1 n/a (libQt5Network.so.5)
                #13 0x00007f56831c4205 _ZN11QMetaObject8activateEP7QObjectiiPPv (libQt5Core.so.5)
                #14 0x00007f56824e2c03 n/a (libQt5Network.so.5)
                #15 0x00007f56824e2cb4 n/a (libQt5Network.so.5)
                #16 0x00007f56824f3871 n/a (libQt5Network.so.5)
                #17 0x00007f5683f1382c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #18 0x00007f5683f1b0f4 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #19 0x00007f5683195628 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #20 0x00007f56831ef19d n/a (libQt5Core.so.5)
                #21 0x00007f567d540117 g_main_context_dispatch (libglib-2.0.so.0)
                #22 0x00007f567d540350 n/a (libglib-2.0.so.0)
                #23 0x00007f567d5403dc g_main_context_iteration (libglib-2.0.so.0)
                #24 0x00007f56831ee53f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #25 0x00007f568319367a _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #26 0x00007f568319c6c4 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
                #27 0x000055a91012af94 n/a (kdeconnectd)
                #28 0x00007f56827afb97 __libc_start_main (libc.so.6)
                #29 0x000055a91012affa _start (kdeconnectd)
                
                Stack trace of thread 32237:
                #0  0x00007f56828a2bf9 __GI___poll (libc.so.6)
                #1  0x00007f567c03f747 n/a (libxcb.so.1)
                #2  0x00007f567c04153a xcb_wait_for_event (libxcb.so.1)
                #3  0x00007f56759661c9 n/a (libQt5XcbQpa.so.5)
                #4  0x00007f5682fb71cd n/a (libQt5Core.so.5)
                #5  0x00007f567f00f6db start_thread (libpthread.so.0)
                #6  0x00007f56828af88f __clone (libc.so.6)
                
                Stack trace of thread 32249:
                #0  0x00007f56828a2bf9 __GI___poll (libc.so.6)
                #1  0x00007f567d5402c9 n/a (libglib-2.0.so.0)
                #2  0x00007f567d5403dc g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f56831ee53f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f568319367a _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5682fb228a _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f5681c0ed45 n/a (libQt5DBus.so.5)
                #7  0x00007f5682fb71cd n/a (libQt5Core.so.5)
                #8  0x00007f567f00f6db start_thread (libpthread.so.0)
                #9  0x00007f56828af88f __clone (libc.so.6)
                
                Stack trace of thread 32251:
                #0  0x00007f56828a2bf9 __GI___poll (libc.so.6)
                #1  0x00007f567d5402c9 n/a (libglib-2.0.so.0)
                #2  0x00007f567d5403dc g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f56831ee53f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f568319367a _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f5682fb228a _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f5682fb71cd n/a (libQt5Core.so.5)
                #7  0x00007f567f00f6db start_thread (libpthread.so.0)
                #8  0x00007f56828af88f __clone (libc.so.6)

I dont' have spotify on my phone.