Bug 471271 - CPU usage at 100% making UI unresponsive
Summary: CPU usage at 100% making UI unresponsive
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (other bugs)
Version First Reported In: unspecified
Platform: Other Android 12.x
: NOR major
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-20 19:38 UTC by Jonathan Teran
Modified: 2023-06-29 18:23 UTC (History)
1 user (show)

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


Attachments
Output of: abd logcat | grep org.kde.kdeconnect_tp (143.70 KB, text/x-log)
2023-06-20 19:38 UTC, Jonathan Teran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Teran 2023-06-20 19:38:32 UTC
Created attachment 159790 [details]
Output of: abd logcat | grep org.kde.kdeconnect_tp

SUMMARY
After latest update from F-Droid, the KDE Connect app (v1.26.0) makes CPU usage peak at 100%, making the UI unresponsive (specially after sliding down the notification panel and the lock screen).

STEPS TO REPRODUCE
1. Update app to v1.26.0
2. Start the app
3. Try locking the screen and then unlocking, or dragging down the notification panel.

OBSERVED RESULT
The Notification Panel and Lock Screen UI become unresponsive / very slow.

EXPECTED RESULT
That shouldn't happen

SOFTWARE/OS VERSIONS
Linux: Linux hp14 6.3.7-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 10 Jun 2023 00:35:19 +0000 x86_64 GNU/Linux
App Version: v1.26.0
Android Version: 12
Comment 1 Albert Vaca Cintora 2023-06-24 14:26:24 UTC
It looks like an infinite loop, because you get lots of log lines in a short amount of time. I recently fixed a bug of this kind in https://invent.kde.org/network/kdeconnect-android/-/commit/e4743002be768261a4eab288326bcebf11a308aa, but this one seems to be in the notifications code so it might be different. Can you check if this happens to you in 1.26.1 that was just released? Also, does this happen reliably/all the time?
Comment 2 Jonathan Teran 2023-06-26 15:14:10 UTC
(In reply to Albert Vaca from comment #1)
> Can you check if this happens to you in 1.26.1 that was just released?
Is there a place where I can grab this release? I just added the KDE F-Droid repo but there's no update, nor is there in the Play Store. Do I have to manually build it? Or should I wait for a while to see an update?

>  Also, does this happen reliably/all the time?
After installing it for the first time, it works correctly, but as soon as I connect to my PC, it slows down everything
Comment 3 Albert Vaca Cintora 2023-06-29 11:29:13 UTC
It might take a bit to propagate, but it should already be available both on Play Store and F-Droid.
Comment 4 Jonathan Teran 2023-06-29 18:23:36 UTC
(In reply to Albert Vaca from comment #3)
> It might take a bit to propagate, but it should already be available both on
> Play Store and F-Droid.

Just installed it, I can confirm the update solves the issue. Thanks!