Bug 401690 - NotificationsPlugin can crash kdeconnect because it can have too many open file descriptors
Summary: NotificationsPlugin can crash kdeconnect because it can have too many open fi...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: 1.10
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-03 14:19 UTC by Erik Duisters
Modified: 2023-02-18 03:47 UTC (History)
0 users

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


Attachments
Logcat output (7.42 KB, text/plain)
2018-12-03 14:19 UTC, Erik Duisters
Details
Output of ll /proc/<kdeconnect_pid>/fd (105.80 KB, text/plain)
2018-12-03 14:20 UTC, Erik Duisters
Details
Script to send sms's to an emulator (609 bytes, application/x-shellscript)
2018-12-03 14:21 UTC, Erik Duisters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Duisters 2018-12-03 14:19:18 UTC
Created attachment 116646 [details]
Logcat output

SUMMARY

When the NotificationsPlugin sends the current list of notifications to the desktop it can run into a situation where kde_connect is killed because it has run out of file descriptors

STEPS TO REPRODUCE

1. On android unpair kdeconnect from desktop
2. Generate a huge amount of notifications (50 or more)
3. Pair with desktop

OBSERVED RESULT

kdeconnect crashes due to too many open files error

EXPECTED RESULT

All notifications are send to the desktop without crashing kdeconnect

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Reproducing this problem is easy using the emulator and using the attached script "send_sms" to generate the required number of notifications. To get the emulator up and running see:  https://community.kde.org/KDEConnect/Android_Emulator
Comment 1 Erik Duisters 2018-12-03 14:20:10 UTC
Created attachment 116647 [details]
Output of ll /proc/<kdeconnect_pid>/fd
Comment 2 Erik Duisters 2018-12-03 14:21:02 UTC
Created attachment 116648 [details]
Script to send sms's to an emulator
Comment 3 Justin Zobel 2023-01-19 00:19:09 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2023-02-03 05:01:45 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2023-02-18 03:47:42 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!