gltext icon indicating copy to clipboard operation
gltext copied to clipboard

Occasional memory corruption

Open rahenri opened this issue 11 years ago • 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.

rahenri avatar Jan 06 '15 02:01 rahenri

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.

pwaller avatar Jan 06 '15 08:01 pwaller

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

rahenri avatar Jan 07 '15 23:01 rahenri