Skip to content

脚本资源列表中,若脚本超过8k大小则运行报错 #84

@JealousCat

Description

@JealousCat

问题描述:
运行环境为Mirai框架,使用的是lua-mirai插件,对于达到8192字节(8k)及以上的脚本,控制台内使用 lua source add可正常加入脚本资源路径,当进行 lua source start命令运行脚本时会提示如图报错:
image
报错后,lua script list中自然也不会有正在运行的脚本了。
推断报错原因:mark方法传入的大小限制(源代码内您确实设置了8192)和字符流缓存区默认大小中,最大值就为8192,导致读取超过大小的文件时报错。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions