diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2022-03-27 15:50:42 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-04-05 09:12:32 +0000 |
commit | 9554d315aa74eaba1726405ee09117e2ebc6111f (patch) | |
tree | e5d7b58931a913b3a47e47d561f5e69a66508ded /src/corelib/kernel/qpointer.h | |
parent | 9203a19083784856c44f2a6249364f6a81ae1667 (diff) |
Android: Fix deadlock caused by a race between permissions query and IMv6.3.0
Android permissions query blocks Qt main thread. If the input method
was activated before the permissions query started, android would try
to invoke input method before returning back to permissions query.
This will cause a deadlock.
Fix the issue by moving the deadlock counter to Qt core and
incrementing the value before the permissions query. This will prevent
the input method queries to enter Qt main thread.
Fixes: QTBUG-99484
Change-Id: I54ea59578880cde4095c26fa2a6a264c4dc1b7ff
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 8bca441b6f65c532915cf3e93ecbe8a5cd2750a9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib/kernel/qpointer.h')
0 files changed, 0 insertions, 0 deletions