Open
Description
I'm using sdl_ttf in a go binding lib, here's the binding src:
TTF_RenderUTF8_Solid:
https://github.com/veandco/go-sdl2/blob/4dff63cf3caad3d340b13c6663cd4219a034463f/ttf/sdl_ttf.go#L289
TTF_RenderUTF8_Blended_Wrapped:
https://github.com/veandco/go-sdl2/blob/4dff63cf3caad3d340b13c6663cd4219a034463f/ttf/sdl_ttf.go#L327
when using TTF_RenderUTF8_Blended_Wrapped , my program has a very high chance that crashes with a segment fault signal.
but no crashes once I replaced it with TTF_RenderUTF8_Solid.
I've debugged the golang part, seems everything is fine as expected. So it could be the SDL issue.
and some other info:
- same code tested on various platforms, crash not seen on MacOS arm64, Win64, linux x64, only on MacOS intel64. I'm not 100% sure about the conclusion though, maybe it's a matter of timing?
- it does not crash in simple test cases, like just drawing a text on screen. the more complicated, the more chance to crash.
- as go-sdl2's doc, the binding has thread-safe kept in mind, all sdl calls are piped into the main thread to execute sequentially.
any advice?
Metadata
Metadata
Assignees
Labels
No labels