| Summary: | kwin_wayland crashes in overview effect when using bookmarks in search with multiple screens | ||
|---|---|---|---|
| Product: | [Plasma] krunner | Reporter: | fanzhuyifan |
| Component: | bookmarks | Assignee: | fanzhuyifan |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | alexander.lohnau, natalie_clarius |
| Priority: | NOR | Keywords: | qt6 |
| Version First Reported In: | master | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=478998 | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/cccfc652bd4200bc4944a616ca21eb4d308112b1 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
fanzhuyifan
2024-01-02 20:39:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3740 This bug only seems to happen with multiple screens. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3742 Git commit cccfc652bd4200bc4944a616ca21eb4d308112b1 by Yifan Zhu. Committed on 03/01/2024 at 18:45. Pushed by fanzhuyifan into branch 'master'. runners/bookmarks: re-add per thread db connection Partially reverts commit 59983ac0dcf77362adfe5b4b2df298c3f53467e9. Create new connection for each thread, instead of sharing one connection. When using the search field in the overview effect with multiple monitors, there are multiple instances of the same runner in the same process. Previously, these different instances used the same db connection from different threads, causing the crash in BUG 479315. According to Qt documentation, "A connection can only be used from within the thread that created it. Moving connections between threads or creating queries from a different thread is not supported." (https://doc.qt.io/qt-6/threads-modules.html#threads-and-the-sql-module) M +12 -4 runners/bookmarks/fetchsqlite.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/cccfc652bd4200bc4944a616ca21eb4d308112b1 |