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: 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面 #138

Open
Aegiszhy opened this issue Jun 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working roadmap Part of roadmap win

Comments

@Aegiszhy
Copy link

背景

用koishi插件尝试接收socket数据包并将其用console.log(.toString())输出在终端时,其中某些字符会导致koishi Desktop崩溃。

复现

koi.exe run daemon 开启koishi Desktop时,终端内容得以展现。

此时接收到数据包内容并输出其文本时,文本前端包含未知字符,导致控制台报出如下错误:

panic: syscall: string with NUL passed to StringToUTF16

且右图会成为所示的崩溃状态。
QQ图片20240625015048

调查

通过不断的手动断点检查,发现是如下字符会导致koishi Desktop崩溃。
image

补充

这种情况在开发模式 (yarn dev yarn start) 下没有问题,目前就在 koishi Desktop ( koishi daemon) 下会出现问题。<br/> 需要用koi start daemon `才能调出日志。

@Aegiszhy Aegiszhy changed the title 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面 [BUG] 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面 Jun 24, 2024
@Aegiszhy Aegiszhy changed the title [BUG] 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面 Bug: 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面 Jun 24, 2024
@ilharp ilharp added bug Something isn't working roadmap Part of roadmap win labels Jun 24, 2024
@ilharp ilharp self-assigned this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working roadmap Part of roadmap win
Projects
None yet
Development

No branches or pull requests

2 participants