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

Bug: 改变插件分组后调用 help 指令导致的爆栈 #1286

Open
SaarChaffee opened this issue Nov 26, 2023 · 2 comments
Open

Bug: 改变插件分组后调用 help 指令导致的爆栈 #1286

SaarChaffee opened this issue Nov 26, 2023 · 2 comments
Labels
bug BUG

Comments

@SaarChaffee
Copy link
Member

Describe the bug


2023-11-26 20:00:06 [W] app RangeError: Maximum call stack size exceeded
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:264:26)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)
                            at fork.parent.filter (/koishi/node_modules/@koishijs/loader/lib/shared.js:265:21)

在 bot 上表现为 koishi 不理人(假死了)

Steps to reproduce

  1. 找一个有指令的插件,有提示(提供了以下指令:xxxx)。
    0b3a3d7d851ab7f9bd256a6f14355beb

2.将这个插件移动到不同分组,确保提示(提供了以下指令:xxxx)消失,并点重载配置。
d0bba5e0f6a8e184252ffa12dad0e53e

3.调用help触发Maximum call stack size exceeded!

Expected behavior

能正确相应指令。

Screenshots

No response

Versions

System:
OS: Linux 5.4 Alpine Linux
CPU: (1) x64 Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz

Binaries:
Node: 20.9.0
Yarn: 1.22.19

Koishi:
Core: 4.15.6
Console: 5.19.4

Additional context

No response

@SaarChaffee SaarChaffee added the bug BUG label Nov 26, 2023
@shigma
Copy link
Member

shigma commented Nov 26, 2023

然后重启程序可以解决是吗?

@SaarChaffee
Copy link
Member Author

是的,重启 koishi 或者直接在全局配置那个地方重载配置可以解决。

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

No branches or pull requests

2 participants