Bug 472954 - "Pause indexer" button does not work when clicked while baloo indexes files
Summary: "Pause indexer" button does not work when clicked while baloo indexes files
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_baloo (other bugs)
Version First Reported In: 6.2.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 443693 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-03 12:34 UTC by Patrick Silva
Modified: 2025-08-07 14:19 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2023-08-03 12:34:48 UTC
STEPS TO REPRODUCE
1. open File Search KCM
2. enable the file indexing
3. click on "Apply" button
4. click on "Pause indexer" button while the file indexing is in progress

OBSERVED RESULT
the indexer is not paused. If I click on the "Pause indexer" button after the file indexing reaches 100%, the indexer is paused as expected.

EXPECTED RESULT
the indexer should always be immediately paused after click on "Pause indexer" button

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Graphics Platform: Wayland
Comment 1 Nate Graham 2023-08-07 20:58:28 UTC
Do you know if this also happened in Plasma 5, Patrick?
Comment 2 Patrick Silva 2023-08-07 21:32:03 UTC
Can reproduce on Plasma 5.27.7 too.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Graphics Platform: Wayland
Comment 3 Nate Graham 2023-08-07 21:46:54 UTC
I had a feeling, thanks.
Comment 4 postix 2025-01-23 12:57:45 UTC
*** Bug 443693 has been marked as a duplicate of this bug. ***
Comment 5 postix 2025-01-23 13:01:30 UTC
Can confirm on Tumbleweed with 6.2.5 and Frameworks 6.10. The status bar says
> Checking for non indexed files, 100% complete

There are certainly many files  to be indexed as I just have added a new internal drive mounted under /media and changed the indexing to include file contents. Before all of this I have run `balooctl purge`.

baloo_file and baloorunner are running in the background. There's no log in journalctl when pressing the button.
Comment 6 postix 2025-01-23 15:45:02 UTC
I think it kind of works:

After leaving the system and returning two hours later, it indeed said "Indexing paused"! It just took a while to change the state!
Pressing "Resume Indexing" and "Pause Indexing" _now_ works immediately.
Comment 7 postix 2025-01-23 15:49:12 UTC
It also seems not "pause-able" if its in the state "Checking for old index entries, X% complete".
While it was indexing now and the status bar showed the currently indexed files, I've added a new not-to-be-index folder: Now the "Pause Indexing" button got stuck again and does nothing.
Comment 8 postix 2025-02-20 11:31:30 UTC
Instead of using the UI in the KCM, I've tried `balooctl suspend` in the cmd line and while the command output was 
> File Indexer suspended

respectively with `balooctl disable`
> Disabling and stopping the File Indexer

however, baloo_file_extractor keeps running in the background utilizing 30% CPU and slowing down the system, making it significantly lag.

After the two commands above `balooctl monitor` says
> Press ctrl+c to stop monitoring
> File indexer is running
> Idle (like 30 seconds later at this point)

but the process keeps using up to 40% CPU and 11% (3 GB) res ram, though I'm not sure what it's actually doing now, as I don't hear the HDDs rattling anymore. 

I had to re-open the FileSearch kcm to get an updated state. It reports now that file indexing has been disabled, but it took a few minutes from suspending / disabling until it actually stopped.
Comment 9 postix 2025-02-26 14:13:04 UTC
Have you checked if the kde-baloo.service is running?
> systemctl --user status kde-baloo
I've noticed that the issue seems to be gone for me, since I've managed to control baloo by systemd.
Comment 10 Patrick Silva 2025-08-07 14:19:56 UTC
Cannot reproduce anymore.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.1
Graphics Platform: Wayland