Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

audio: Crash: index out of range #854

Closed
hajimehoshi opened this issue Apr 28, 2019 · 0 comments
Closed

audio: Crash: index out of range #854

hajimehoshi opened this issue Apr 28, 2019 · 0 comments
Labels
Milestone

Comments

@hajimehoshi
Copy link
Owner

$ GOMAXPROCS=1 go run -tags=example ./examples/audio
panic: runtime error: index out of range

goroutine 5 [running]:
github.com/hajimehoshi/ebiten/audio.(*mux).Read(0xc00000e4e0, 0xc0001bb800, 0x800, 0x800, 0x0, 0x0, 0x0)
        /Users/hajimehoshi/ebiten/audio/mux.go:106 +0x917
io.(*LimitedReader).Read(0xc000253040, 0xc0001bb800, 0x800, 0x800, 0x0, 0x44bdc00, 0xc000012070)
        /usr/local/go/src/io/io.go:448 +0x63
io.copyBuffer(0x4f481b8, 0xc00000ee00, 0x44bdfa0, 0xc000253040, 0xc0001bb800, 0x800, 0x800, 0x43e3aa0, 0x10000c000054700, 0x4f481b8)
        /usr/local/go/src/io/io.go:402 +0x122
io.Copy(...)
        /usr/local/go/src/io/io.go:364
io.CopyN(0x4f481b8, 0xc00000ee00, 0x44bdc80, 0xc00000e4e0, 0x800, 0x800, 0x0, 0x0)
        /usr/local/go/src/io/io.go:340 +0x9c
github.com/hajimehoshi/ebiten/audio.(*Context).loop(0xc000054780)
        /Users/hajimehoshi/ebiten/audio/audio.go:168 +0x122
created by github.com/hajimehoshi/ebiten/audio.NewContext
        /Users/hajimehoshi/ebiten/audio/audio.go:123 +0x252
exit status 2
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant