https://bugs.kde.org/show_bug.cgi?id=479315

fanzhuyi...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/cccfc652bd4200bc4944a616c
                   |                            |a21eb4d308112b1
         Resolution|---                         |FIXED

--- Comment #4 from fanzhuyi...@gmail.com ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to