Closed janivanecky closed 6 years ago
Does this happen if you try running an example program?
If not, there's a possibility it's an issue with your code. I can't easily tell what it is just from the information you've provided.
Thanks for pointing out the example, I was able to run it without any issues, which lead me to finding out what's the cause - I was missing runtime.LockOSThread()
call.
Thanks again! Closing the issue.
Glad you figured it out. For reference, the note about having to use LockOSThread
is mentioned in the last paragraph of https://github.com/go-gl/gl#usage.
Hey,
I'm encountering following runtime error after few seconds of running my application:
It seems to me that it's caused by GC somehow, since it happens after some time. Any ideas what's up? Thanks!
Update:
debug.SetGCPercent(-1)
solves the issue, so GC seems to be the culprit...