You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Aegiszhy
changed the title
在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面
[BUG] 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面
Jun 24, 2024
Aegiszhy
changed the title
[BUG] 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面
Bug: 在Koishi Desktop中向终端输出某些字符会导致整个koishi Desktop卡死在重启界面
Jun 24, 2024
背景
用koishi插件尝试接收socket数据包并将其用console.log(.toString())输出在终端时,其中某些字符会导致koishi Desktop崩溃。
复现
用
koi.exe run daemon
开启koishi Desktop时,终端内容得以展现。此时接收到数据包内容并输出其文本时,文本前端包含未知字符,导致控制台报出如下错误:
panic: syscall: string with NUL passed to StringToUTF16
且右图会成为所示的崩溃状态。
调查
通过不断的手动断点检查,发现是如下字符会导致koishi Desktop崩溃。
补充
这种情况在开发模式 (
yarn dev
或yarn start
) 下没有问题,目前就在 koishi Desktop ( koishi daemon) 下会出现问题。<br/> 需要用
koi start daemon `才能调出日志。The text was updated successfully, but these errors were encountered: