gorse-io / gorse-io/gorse

docker运行偶尔就会panic

Open
#787 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
9.8k
Forks
912
Avg merge
2h 35m
Merged PRs (30d)
9

Description

Please answer these questions before submitting your issue. Thanks!

**Gorse version**
Print build info by the `--version` option.

**Describe the bug**
panic: runtime error: index out of range [33578] with length 1281

goroutine 63 [running]:
github.com/zhenghaoz/gorse/base.(*MapIndex).ToName(0xc0039ff8c0?, 0x1e165b0?)
/go/gorse/base/index.go:135 +0x3d
github.com/zhenghaoz/gorse/worker.(*Worker).collaborativeRecommendHNSW(0xc0002a02c0, 0xc00c382850?, {0xc00c382850, 0xa}, {0x3095650, 0x0, 0x0}, 0xc00c3efb80, 0xc00c279160)
/go/gorse/worker/worker.go:884 +0x528
github.com/zhenghaoz/gorse/worker.(*Worker).Recommend.func2(0x0?, 0x0)
/go/gorse/worker/worker.go:593 +0xcaf
github.com/zhenghaoz/gorse/base/parallel.Parallel(0x7, 0xc00c5cbf40?, 0xc0001e6460)
/go/gorse/base/parallel/parallel.go:39 +0xf7
github.com/zhenghaoz/gorse/worker.(*Worker).Recommend(0xc0002a02c0, {0xc002d68a00, 0x7, 0x8})
/go/gorse/worker/worker.go:546 +0x1074
github.com/zhenghaoz/gorse/worker.(*Worker).Serve.func1()
/go/gorse/worker/worker.go:405 +0x425
github.com/zhenghaoz/gorse/worker.(*Worker).Serve(0xc0002a02c0)
/go/gorse/worker/worker.go:417 +0xdbf
main.glob..func1.1()
/go/gorse/cmd/gorse-in-one/main.go:109 +0x3f
created by main.glob..func1
/go/gorse/cmd/gorse-in-one/main.go:107 +0x9f1

**To Reproduce**
Steps to reproduce the behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.