go-gl/gltext

Occasional memory corruption

rahenri opened this issue · 2 comments

There is an occasional memory corruption which cause an application using gltext to crash when loading a truetype font.

It can be reproduce it by running the gltext example at https://github.com/go-gl/examples/blob/master/gltext/truetype/main.go with DejaVuSans font instead, usually located at "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf" in ubuntu systems. It doesn't always happen, you may need to run it a couple of times until the problem occurs.

How is the memory corruption manifesting? What messages do you see? What platform are you on? I don't have much time for this right now, can you investigate further? If there is any specific way I can help let me know.

I found a fix for the problem, I will send a pull request soon.