Open hanliefeng opened 1 month ago
runtime error: index out of range [0] with length 0 Stack Trace: goroutine 6 [running]: runtime/debug.Stack() C:/Program Files/Go/src/runtime/debug/stack.go:24 +0x6 main.computeStats.func1() E:/newbee-wowsims-cn/sim/wasm/main.go:49 +0x10 panic({0x185640, 0xa0ccbd0}) C:/Program Files/Go/src/runtime/panic.go:770 +0x1a github.com/wowsims/wotlk/sim/core.(UnitMetrics).addSpellMetrics(0x29942d8, 0x5166788, {0xfc50, 0x0, 0x0, 0x0}, {0x6a783c0, 0x1, 0x1}) E:/newbee-wowsims-cn/sim/core/metrics_aggregator.go:311 +0x3e github.com/wowsims/wotlk/sim/core.(Spell).doneIteration(0x5166788) E:/newbee-wowsims-cn/sim/core/spell.go:429 +0xb github.com/wowsims/wotlk/sim/core.(Unit).doneIteration(0x2992008, 0x28f2900) E:/newbee-wowsims-cn/sim/core/unit.go:486 +0xb github.com/wowsims/wotlk/sim/core.(Encounter).doneIteration(...) E:/newbee-wowsims-cn/sim/core/target.go:88 github.com/wowsims/wotlk/sim/core.(Simulation).Cleanup(0x28f2900) E:/newbee-wowsims-cn/sim/core/sim.go:448 +0x16 github.com/wowsims/wotlk/sim/core.(Environment).finalize(0x51fc200, 0x6a4a500, 0x2b09c70, 0xdaf1380, 0x1) E:/newbee-wowsims-cn/sim/core/environment.go:201 +0x48 github.com/wowsims/wotlk/sim/core.NewEnvironment(0x6a4a500, 0x2b09c70, 0x1) E:/newbee-wowsims-cn/sim/core/environment.go:56 +0x5 github.com/wowsims/wotlk/sim/core.ComputeStats(0xdaf0e80) E:/newbee-wowsims-cn/sim/core/api.go:20 +0x6 main.computeStats({{}, 0x0, 0x0}, {0x6a4c7a0, 0x1, 0x1}) E:/newbee-wowsims-cn/sim...
runtime error: index out of range [0] with length 0 Stack Trace: goroutine 6 [running]: runtime/debug.Stack() C:/Program Files/Go/src/runtime/debug/stack.go:24 +0x6 main.computeStats.func1() E:/newbee-wowsims-cn/sim/wasm/main.go:49 +0x10 panic({0x185640, 0xa0ccbd0}) C:/Program Files/Go/src/runtime/panic.go:770 +0x1a github.com/wowsims/wotlk/sim/core.(UnitMetrics).addSpellMetrics(0x29942d8, 0x5166788, {0xfc50, 0x0, 0x0, 0x0}, {0x6a783c0, 0x1, 0x1}) E:/newbee-wowsims-cn/sim/core/metrics_aggregator.go:311 +0x3e github.com/wowsims/wotlk/sim/core.(Spell).doneIteration(0x5166788) E:/newbee-wowsims-cn/sim/core/spell.go:429 +0xb github.com/wowsims/wotlk/sim/core.(Unit).doneIteration(0x2992008, 0x28f2900) E:/newbee-wowsims-cn/sim/core/unit.go:486 +0xb github.com/wowsims/wotlk/sim/core.(Encounter).doneIteration(...) E:/newbee-wowsims-cn/sim/core/target.go:88 github.com/wowsims/wotlk/sim/core.(Simulation).Cleanup(0x28f2900) E:/newbee-wowsims-cn/sim/core/sim.go:448 +0x16 github.com/wowsims/wotlk/sim/core.(Environment).finalize(0x51fc200, 0x6a4a500, 0x2b09c70, 0xdaf1380, 0x1) E:/newbee-wowsims-cn/sim/core/environment.go:201 +0x48 github.com/wowsims/wotlk/sim/core.NewEnvironment(0x6a4a500, 0x2b09c70, 0x1) E:/newbee-wowsims-cn/sim/core/environment.go:56 +0x5 github.com/wowsims/wotlk/sim/core.ComputeStats(0xdaf0e80) E:/newbee-wowsims-cn/sim/core/api.go:20 +0x6 main.computeStats({{}, 0x0, 0x0}, {0x6a4c7a0, 0x1, 0x1}) E:/newbee-wowsims-cn/sim...