Skip to content

Issues introduced by PR #2113 (SDL2) #2169

Closed
@misl6

Description

@misl6

As said on Discord #dev channel yesterday, PR #2113 introduces a lot of blocking issues.

These are the results of the tests done by me, @AndreMiras and @opacam :

  • sdl2==2.0.10 have issues that have been solved by the SDL2 team, so it needs to be bumped to 2.0.12.

  • sdl2==2.0.12 works but create freezes during runtime.

  • These freezes are definitely related to the new SDL_LockMutex / SDL_UnlockMutex mechanism they added for concurrency issues.

  • Commenting SDL_LockMutex on Touch related events fixes the freeze issue for non-fullscreen apps.

  • On fullscreen apps, the patch it's also needed on Resize, .. etc events.

I'm providing an attached patch that fixes the issues on top of 2.0.12, btw seems not a good idea to do that, so it needs some more investigation:

disable_mutex.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions