Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Crash Report -1637812474 #4260

Open
hanliefeng opened this issue Aug 11, 2024 · 0 comments
Open

Crash Report -1637812474 #4260

hanliefeng opened this issue Aug 11, 2024 · 0 comments

Comments

@hanliefeng
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant