Bug 514404

Summary: Errors with search from the overview, running in another thread
Product: [Plasma] kwin Reporter: Jérôme L <jerome.4a4c+kde>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: ---   
Platform: CachyOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jérôme L 2026-01-10 03:15:46 UTC
SUMMARY
Errors about plasma activities when using the search in the overview.

STEPS TO REPRODUCE
1. Open overview
2. Type to trigger a search (is it Milou? src/plugins/overview/qml/Main.qml:751)
3. Inspect journalctl

OBSERVED RESULT
Logs in journalctl about QSqlError indicates the search is performed on the wrong thread.
```
kwin_wayland[7880]: QSqlDatabasePrivate::database: requested database does not belong to the calling thread.
kwin_wayland[7880]: PlasmaActivities: Database is not open:  "" "" QSqlError("", "Driver not loaded", "Driver not loaded")
kwin_wayland[7880]: QSqlDatabasePrivate::database: requested database does not belong to the calling thread.
kwin_wayland[7880]: PlasmaActivities: Database is not open:  "" "" QSqlError("", "Driver not loaded", "Driver not loaded")
kwin_wayland[7880]: Plasma Activities ERROR: There is no database. This probably means that you do not have the Activity Manager running, or that something else is broken on your system. Recent documents and alike will not work!
```

EXPECTED RESULT
Search run correctly, just like in krunner and app launcher.

SOFTWARE/OS VERSIONS
Linux: 6.18.3
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Wayland
Built kwin at commit 72e6170c4eec62f800e4939c4bc2fd5ed7242e24

ADDITIONAL INFORMATION
Second part of https://bugs.kde.org/show_bug.cgi?id=491460
In the original issue, a plugin crashed the desktop.