Bug 429636

Summary: When i click brush editor second time, it stops/freezes the app.
Product: [Applications] krita Reporter: tolgayamannnn
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR Keywords: triaged
Version First Reported In: 4.4.1   
Target Milestone: ---   
Platform: Android   
OS: Android 7.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: System info

Description tolgayamannnn 2020-11-25 12:22:26 UTC
Created attachment 133640 [details]
System info

When i click brush editor twice,i mean clicking it again. It stops the app,can't do anything.Freezes i
Comment 1 Halla Rempt 2020-11-25 12:38:29 UTC
I'm sorry, I cannot reproduce this either on Android 10 or on ChromeOS. I don't have access to an older version of Android.
Comment 2 Bug Janitor Service 2021-01-06 13:17:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/639
Comment 3 sh_zam 2021-01-06 13:19:00 UTC
Git commit afa491eb33b1fcbef3d022386f5b9369f2835643 by Sharaf Zaman.
Committed on 06/01/2021 at 13:18.
Pushed by szaman into branch 'master'.

Android: fix app freeze problem caused by pop-up widgets

Reason: If we double press KisPopupButton, for our first press we tell
Qt to widget->show() which casues an internal flush of event queue then
the second event is sent down which hides the widget.

The second event is immature because the actions of first event didn't
complete in time. This makes the widget hidden while also grabbing mouse
and keyboard, thus freezing the entire app.

Note: The bug is a very time sensitive.

A  +28   -0    3rdparty/ext_qt/0055-Android-prevent-out-of-order-events.patch
M  +1    -0    3rdparty/ext_qt/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/afa491eb33b1fcbef3d022386f5b9369f2835643