-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.24.0 MacOS+x64 TTF_RenderUTF8_Blended_Wrapped segment fault #487
Comments
What's the stack trace inside SDL_ttf? |
@slouken after some study, I still don't know how to recover the c stack of a cgo crash.
|
it turned out does these 2 funcs have builtin threads, or they have access to some shared memory? that may explain something. |
No, there's no built in threading and all use of a single font needs to happen on the same thread. |
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:
any advice?
The text was updated successfully, but these errors were encountered: