YesNoOk
avatar

Curious error without a single clue (Read 2520 times)

Started by terrence, May 11, 2024, 10:02:39 pm
Share this topic:
Curious error without a single clue
#1  May 11, 2024, 10:02:39 pm
  • **
  • ¡Good!
Hi!:
     Im playing Ikemen in the Arcade mode, but i get this error and is not clear what causes (looks a BGM, but all the files are in the adecuated folder). ¿Any ideas?.
===============================================================================================
runtime error: index out of range [-4]
goroutine 1 [running, locked to thread]:
github.com/yuin/gopher-lua.(*LState).PCall.func1()
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/state.go:1988 +0x212
panic({0x7ff6ffabb080, 0xc001855158})
   C:/hostedtoolcache/windows/go/1.20.10/x64/src/runtime/panic.go:884 +0x213
github.com/hajimehoshi/go-mp3/internal/maindata.readHuffman(0xc00221aa80, 0x3?, 0xc007842000, 0xc002e60000, 0x7ff6ffe520a0?, 0xc008710370?, 0x1)
   C:/Users/runneradmin/go/pkg/mod/github.com/hajimehoshi/go-mp3124 +0x5cf
github.com/hajimehoshi/go-mp3/internal/maindata.getScaleFactorsMpeg2(0xc00221aa80, 0xfff37054, 0xc007842000)
   C:/Users/runneradmin/go/pkg/mod/github.com/hajimehoshi/go-mp3172 +0x1fe
github.com/hajimehoshi/go-mp3/internal/maindata.Read({0x1d43c553130, 0xc00221a900}, 0xfff37054?, 0xfff37054, 0xc007842000)
   C:/Users/runneradmin/go/pkg/mod/github.com/hajimehoshi/go-mp3107 +0x109
github.com/hajimehoshi/go-mp3/internal/frame.Read({0x7ff6ffb9ebc0?, 0xc00221a900}, 0x0?, 0x0)
   C:/Users/runneradmin/go/pkg/mod/github.com/hajimehoshi/go-mp397 +0x155
github.com/hajimehoshi/go-mp3.(*Decoder).readFrame(0xc006ecfa40)
   C:/Users/runneradmin/go/pkg/mod/github.com/hajimehoshi/go-mp342 +0x34
github.com/hajimehoshi/go-mp3.NewDecoder({0x7ff6ffb9f020?, 0xc00b1380f8})
   C:/Users/runneradmin/go/pkg/mod/github.com/hajimehoshi/go-mp3204 +0xb5
github.com/ikemen-engine/beep/mp3.Decode({0x7ff6ffba0a68?, 0xc00b1380f8})
   C:/Users/runneradmin/go/pkg/mod/github.com/ikemen-engine/beep@v0.0.0-20230923080832-980aab9dbee7/mp3/decode.go:30 +0xb2
main.(*Bgm).Open(0x7ff6ffa3cc68, {0xc0030da030?, 0x24?}, 0x0, 0x7ff6ff5d51b4?, 0xc000d6d4b0?, 0x7ff6ff984ac8?, 0xc000d6d4b0?)
   D:/a/Ikemen-GO/Ikemen-GO/src/sound.go:189 +0x319
main.systemScriptInit.func92(0xc000078210)
   D:/a/Ikemen-GO/Ikemen-GO/src/script.go:1606 +0x230
github.com/yuin/gopher-lua.callGFunction(0xc000078210, 0x0)
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/vm.go:202 +0x37
github.com/yuin/gopher-lua.init.3.func26(0xc000078210, 0xc3c0001?, 0xc00021e000?)
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/vm.go:821 +0x379
github.com/yuin/gopher-lua.mainLoop(0xc000078210, 0xc000718200?)
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/vm.go:31 +0xfa
github.com/yuin/gopher-lua.(*LState).callR(0xc000078210, 0x0, 0xffffffffffffffff, 0xc00000a178?)
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/state.go:1211 +0x1b4
github.com/yuin/gopher-lua.(*LState).Call(...)
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/state.go:1967
github.com/yuin/gopher-lua.(*LState).PCall(0xc000078210, 0x0, 0xc000718200?, 0x0)
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/state.go:2030 +0x145
github.com/yuin/gopher-lua.(*LState).DoFile(0xc000078210, {0xc0000aaf18?, 0x0?})
   C:/Users/runneradmin/go/pkg/mod/github.com/yuin/gopher-lua@v0.0.0-20220504180219-658193537a64/auxlib.go:396 +0x6b
main.main()
   D:/a/Ikemen-GO/Ikemen-GO/src/main.go:90 +0x218

stack traceback:
   [G]: in function 'playBGM'
   external/script/main.lua:1306: in function 'f_playBGM'
   .\external\script\storyboard.lua:51: in function 'f_play'
   .\external\script\storyboard.lua:449: in function 'f_storyboard'
   .\external\script\start.lua:1906: in function 'launchStoryboard'
   external/script/default.lua:24: in function <external/script/default.lua:0>
   .\external\script\start.lua:1457: in function 'f'
   external/script/main.lua:3105: in function 'loop'
   external/script/main.lua:3189: in function 'loop'
   external/script/main.lua:4156: in main chunk
   [G]: ?