-
Notifications
You must be signed in to change notification settings - Fork 787
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
gorse-in-one启动时候还有个panic #485
Comments
这个是数据集为空时候会出现的BUG |
This is a bug that occurs when the dataset is empty |
这个BUG的深层次原因是计算距离的时候出现了NaN,复现的话需要依赖数据 |
The deep-seated reason for this bug is that NaN appears when calculating the distance. |
同样遇到这样的问题
|
如果你愿意共享下数据的话就容易修复了,这个bug需要特定数据触发😂 |
只在启动时候出现, 不过捕获到了... 就是看着难受 -_-!
{
"level":"error",
"ts":1656313095.142161,
"caller":"base/util.go:61",
"msg":"panic recovered",
"panic":"runtime error: index out of range [-1]",
"stacktrace":"github.com/zhenghaoz/gorse/base.CheckPanic
/Users/ak47/dec/gorse-master/base/util.go:61
runtime.gopanic
/usr/local/go/src/runtime/panic.go:838
runtime.goPanicIndex
/usr/local/go/src/runtime/panic.go:89
github.com/zhenghaoz/gorse/base/search.(*IVF).Build.func1
/Users/ak47/dec/gorse-master/base/search/ivf.go:205
github.com/zhenghaoz/gorse/base/parallel.Parallel
/Users/ak47/dec/gorse-master/base/parallel/parallel.go:31
github.com/zhenghaoz/gorse/base/search.(*IVF).Build
/Users/ak47/dec/gorse-master/base/search/ivf.go:192
github.com/zhenghaoz/gorse/base/search.(*IVFBuilder).Build
/Users/ak47/dec/gorse-master/base/search/ivf.go:274
github.com/zhenghaoz/gorse/master.(*Master).findItemNeighborsIVF
/Users/ak47/dec/gorse-master/master/tasks.go:386
github.com/zhenghaoz/gorse/master.(*Master).runFindItemNeighborsTask
/Users/ak47/dec/gorse-master/master/tasks.go:254
github.com/zhenghaoz/gorse/master.(*Master).runRankingRelatedTasks
/Users/ak47/dec/gorse-master/master/tasks.go:857
github.com/zhenghaoz/gorse/master.(*Master).RunPrivilegedTasksLoop
/Users/ak47/dec/gorse-master/master/master.go:277"
}
The text was updated successfully, but these errors were encountered: