You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: 1.2.15 Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2013-12-24 04:26:03 +0000, Rafał Mużyło wrote:
The most annoying part of this bug is that though I've found it in two separate apps, I don't have a trivial testcase for it.
The problem seems to be a condition race, as it's triggered quite randomly (therefore it will be hard to tell whether it really gets fixed, if a probable fix is found).
A game uses Escape to open menu (the exact key might not be important). Upon opening, it calls SDL_EnableUNICODE(1). Upon closing it calls SDL_EnableUNICODE(0).
I have an IME running.
Game uses SDL_PollEvent to get the events.
If Escape is pressed repeatedly, menu is opened and closed, till it eventually freezes in open state.
"freezes" in this context means "app itself still runs, but no keyboard events are getting delivered (though - for example - mouse events still are)". "getting delivered" should mean "SDL_PollEvent is not receiving any".
If it matters, the last delivered keyboard event is a keypress, the release never arrives.
It seems (no guarantees, due to random nature of the freeze) that unsetting XMODIFIERS (which - AFAIU - will disable IME as far as SDL is concerned) prevents the freeze, therefore the reference to that SDL2 thread.
On 2014-01-02 16:05:11 +0000, Rafał Mużyło wrote:
Created attachment 1510
change that sems to make a difference
This patch is based on the one in the mentioned above thread. It seems to fix the problem.
Of course:
it's an obvious case of cargo cult, so no idea of how correct it actually is
given the random nature of the freeze, I'm not even 10% if it really prevent the freeze or simply significantly delays it
Though that little note on XEventFilter manpage at the end of description makes me wonder...
On 2014-01-29 01:40:55 +0000, Rafał Mużyło wrote:
Created attachment 1545
a slight correction of the previous patch
Previous version affected input in the way it shouldn't have - corrected it a little.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
change that sems to make a difference (sdl-1.2-event_filter.patch, text/plain, 2014-01-02 16:05:11 +0000, 1305 bytes)Reported in version: 1.2.15
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2013-12-24 04:26:03 +0000, Rafał Mużyło wrote:
On 2014-01-02 16:05:11 +0000, Rafał Mużyło wrote:
On 2014-01-29 01:40:55 +0000, Rafał Mużyło wrote:
On 2014-03-17 08:52:49 +0000, Ozkan Sezer wrote:
On 2014-04-18 05:37:01 +0000, Sam Lantinga wrote:
On 2018-08-13 07:11:56 +0000, Rene Dudfield wrote:
On 2018-08-13 11:46:17 +0000, Ozkan Sezer wrote:
The text was updated successfully, but these errors were encountered: