Bug 400010 - kdeconnectd closed unexpectedly
Summary: kdeconnectd closed unexpectedly
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: kcm (show other bugs)
Version: 1.3.3
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 401755 402430 402799 403839 406046 407785 410026 410316 410397 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-18 21:13 UTC by Alfeno Rodrigues
Modified: 2019-07-30 15:34 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kdeconnectd backtrace (9.24 KB, text/plain)
2018-10-18 21:13 UTC, Alfeno Rodrigues
Details
Backtrace segfault in Debian testing (6.02 KB, text/plain)
2019-01-03 22:46 UTC, Ariel Garcia
Details
attachment-31600-0.html (1.32 KB, text/html)
2019-04-02 20:34 UTC, Osvaldo Painequeo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alfeno Rodrigues 2018-10-18 21:13:17 UTC
Created attachment 115739 [details]
kdeconnectd backtrace

-- Information about the crash:
- What I was doing when the application crashed:
 
    Nothing for a while, but the last activity was writing a document on the libreoffice and the other moment after initialized all the OS system. 

- OBSERVED RESULT

   Notification popup are shown as they happen.

- SOFTWARE VERSIONS

    Application: kdeconnectd (0.1)
    KDE Plasma Versiuon: 5.14.1
    KDE Frameworks Version: 5.51.0
    Qt Version: 5.11.1
    Operating System:  Linux KDE 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    Distribution: KDE neon

- ADDITIONAL INFORMATION:

Library Usage

Private
    3592 KB	[heap]
    492 KB	/usr/lib/x86_64-linux-gnu/libqca-qt5.so.2.1.3
    388 KB	/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
    352 KB	/usr/lib/x86_64-linux-gnu/libkdeconnectcore.so.1.3.1
    248 KB	/usr/lib/x86_64-linux-gnu/libQt5Network.so.5.11.1

Shared
    3504 KB	/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.11.1
    2516 KB	/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.11.1
    2128 KB	/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.11.1
    1884 KB	/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
    1452 KB	/lib/x86_64-linux-gnu/libc-2.27.so
Comment 1 Kai Uwe Broulik 2018-10-19 06:11:23 UTC
Pasting inline:

Thread 1 (Thread 0x7f806051a800 (LWP 3628)):
[KCrash Handler]
#6  0x00007f805e105f36 in operator== (s1=..., s2=...) at tools/qstring.cpp:3153
#7  0x00007f805fb54f0c in KNotification::setTitle (this=this@entry=0x55e90cd27370, title=...) at ./src/knotification.cpp:140
#8  0x00007f803d3a2b5f in Notification::createKNotification (this=this@entry=0x55e90cc67420, update=<optimized out>, np=...) at ./plugins/notifications/notification.cpp:95
#9  0x00007f803d3a36ed in Notification::update (this=this@entry=0x55e90cc67420, np=...) at ./plugins/notifications/notification.cpp:81
#10 0x00007f803d3abc85 in NotificationsDbusInterface::processPacket (this=0x55e90ccef6b0, np=...) at ./plugins/notifications/notificationsdbusinterface.cpp:91
#11 0x00007f803d3a734f in NotificationsPlugin::receivePacket (this=0x55e90cd06b20, np=...) at ./plugins/notifications/notificationsplugin.cpp:59
#12 0x00007f806011b5c0 in Device::privateReceivedPacket (this=<optimized out>, np=...) at ./core/device.cpp:341

It stores a KNotification* as raw pointer but KNotification will self-delete when it is closed (timeout or closed by the user) so it accesses junk and crashes. Fix would be to change it to a QPointer<KNotification> and check for that instead of the m_closed handling it has right now.
Comment 2 Kai Uwe Broulik 2018-10-19 07:19:10 UTC

*** This bug has been marked as a duplicate of bug 388991 ***
Comment 3 Albert Vaca Cintora 2018-10-19 13:00:37 UTC
Removing duplicate flag as this issue is more specific than the one that was linked.
Comment 4 Piotr Keplicz 2018-12-18 23:16:52 UTC
Happens also on a up-to-date KDE neon with kdeconnectd 1.3.1 (Plasma 5.14.4, Frameworks 5.53, Applications 18.12).
Comment 5 Ariel Garcia 2019-01-03 22:39:05 UTC
Possibly the same as Bug #402799 (Suse) and Bug #402430 (Arch).
I also observe this crash in Debian testing: KDEconnect is completely unusable, since it crashes as soon as my android phone tries to connect.
Comment 6 Ariel Garcia 2019-01-03 22:43:57 UTC
There are some other similar bugs regarding kdeconnectd crashing, but relate to older versions, so they are probably a different crash.
Comment 7 Ariel Garcia 2019-01-03 22:46:33 UTC
Created attachment 117271 [details]
Backtrace segfault in Debian testing

As soon as my phone connects to the local net and the KDEconnect app tries to contact my desktop, kdeconnectd crashes. This is the backtrace.
Comment 8 Christoph Feck 2019-01-03 23:02:48 UTC
Backtrace from comment #7 is completely unrelated to backtrace from comment #1.
Comment 9 Christoph Feck 2019-01-03 23:03:49 UTC
*** Bug 402799 has been marked as a duplicate of this bug. ***
Comment 10 Christoph Feck 2019-01-03 23:04:18 UTC
*** Bug 402430 has been marked as a duplicate of this bug. ***
Comment 11 Ariel Garcia 2019-01-03 23:11:27 UTC
(In reply to Christoph Feck from comment #8)
> Backtrace from comment #7 is completely unrelated to backtrace from comment
> #1.

This means i should open a new bug right?
Comment 12 Ariel Garcia 2019-01-03 23:28:45 UTC
The backtrace of Bug #401755 does however look very similar to this one, maybe also a duplicate.
Comment 13 Ariel Garcia 2019-01-03 23:39:35 UTC
(In reply to Ariel Garcia from comment #11)
> (In reply to Christoph Feck from comment #8)
> > Backtrace from comment #7 is completely unrelated to backtrace from comment
> > #1.
> 
> This means i should open a new bug right?

Submitted Bug #402839 for my case.
Comment 14 Christoph Feck 2019-01-04 00:51:02 UTC
*** Bug 401755 has been marked as a duplicate of this bug. ***
Comment 15 Christoph Feck 2019-02-15 14:38:29 UTC
*** Bug 403839 has been marked as a duplicate of this bug. ***
Comment 16 Christoph Feck 2019-04-02 16:19:36 UTC
*** Bug 406046 has been marked as a duplicate of this bug. ***
Comment 17 Osvaldo Painequeo 2019-04-02 20:34:58 UTC
Created attachment 119215 [details]
attachment-31600-0.html

 Y tiene solución, no soy programador pero trato de entender lo mas que
puedo.

Saludos.

El mar., 2 abr. 2019 a las 13:19, Christoph Feck (<bugzilla_noreply@kde.org>)
escribió:

> https://bugs.kde.org/show_bug.cgi?id=400010
>
> Christoph Feck <cfeck@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |josepainequeo@gmail.com
>
> --- Comment #16 from Christoph Feck <cfeck@kde.org> ---
> *** Bug 406046 has been marked as a duplicate of this bug. ***
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 18 Simon Redman 2019-05-22 02:51:33 UTC
*** Bug 407785 has been marked as a duplicate of this bug. ***
Comment 19 Nicolas Fella 2019-07-29 20:47:02 UTC
*** Bug 410316 has been marked as a duplicate of this bug. ***
Comment 20 Nicolas Fella 2019-07-29 21:09:06 UTC
*** Bug 410026 has been marked as a duplicate of this bug. ***
Comment 21 Nicolas Fella 2019-07-30 15:34:54 UTC
*** Bug 410397 has been marked as a duplicate of this bug. ***