| Summary: | On macOS Mojave: Program hangs when using SDL Renderer one one thread and OpenGL on another | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Daniel Bokser <dan.bokser> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | dan.bokser, icculus, sezeroz |
| Version: | 2.0.8 | ||
| Hardware: | x86_64 | ||
| OS: | Mac OS X (All) | ||
| Attachments: | Simple program with SDL Renderer on main thread and OpenGL on another | ||
|
Description
Daniel Bokser
2018-09-28 00:00:59 UTC
Mojave appears to have a deadlock if you swap two separate windows/contexts from two separate threads at the same time; I stuck a mutex around our swap code which appears to fix it. That fix is https://hg.libsdl.org/SDL/rev/84eaa0636bac --ryan. Thank you! This fixed the deadlock issue for me. However, my SDL project is still not completely fixed in Mojave. I have opened up another issue here: https://bugzilla.libsdl.org/show_bug.cgi?id=4329 |