Open hajimehoshi opened 1 year ago
Which go Version are u using? And the expected is no crash right?
(EDITED: NVM, I was misunderstanding)
Which go Version are u using?
1.19.2.
And the expected is no crash right?
Right.
Yeah I wouldn't really expect gotip branch to work since it doesn't play nicely with goroutines. There must be a reason it thinks that we are in Cgo when we aren't yet. I need to look into this further.
Fortunately, ebitengine won't flat at break in Go 1.20. Only -race when CGO_ENABLED=0 so a temporary fix is to just have them enable Cgo when using race which is already required. Plus ebitengine uses Cgo for glfw so it's okay for now.
Hmm this is a very mysterious error and this should never happen in theory.
I came across this golang/go#57263 issue which may relate.
Ebitengine Version
v2.5.0-alpha.7
Operating System
Go Version (
go version
)go version go1.19.2 darwin/amd64
What steps will reproduce the problem?
Just launch an application.
What is the expected result?
What happens instead?
No crash
Anything else you feel useful to add?
The issue is very rare and there is no stable way to reproduce this.