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 FIX] 国际象棋插件 bug 修复 #722

Merged
merged 2 commits into from
Sep 2, 2023
Merged

[BUG FIX] 国际象棋插件 bug 修复 #722

merged 2 commits into from
Sep 2, 2023

Conversation

aimerneige
Copy link
Contributor

@aimerneige aimerneige commented Sep 2, 2023

昨天电脑硬盘出了点问题,代码 push 完还没运行测试呢,留了几个 bug

  • 只有正确安装 inkscape 时才需要清理临时文件
  • 字体文件引用错误
  • 全面的运行测试

功能正常,可以 merge

@aimerneige aimerneige mentioned this pull request Sep 2, 2023
@aimerneige
Copy link
Contributor Author

aimerneige commented Sep 2, 2023

已修复

字体文件并没有被正确引用 @Jiang-Red

image

点击查看日志
WARN[0097] [file]获取md5失败, 请自行确保下载文件 text.GNUUnifontFontFile 的正确性: reg: no such key 
ERRO[0097] [bot] execute handler err: status code: 404
goroutine 1060 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/wdvxdr1123/ZeroBot.match.func2.1.1()
	/home/aimer/.golang/pkg/mod/github.com/wdvxdr1123/[email protected]/bot.go:253 +0x45
panic({0xf3c540, 0xc003b86020})
	/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/FloatTech/ZeroBot-Plugin/plugin/chess.generateCharBoardImage({0xc0005f04b0?, 0x8?})
	/home/aimer/Code/ZeroBot-Plugin/plugin/chess/core.go:635 +0x5d1
github.com/FloatTech/ZeroBot-Plugin/plugin/chess.getBoardElement(0x368047e7?)
	/home/aimer/Code/ZeroBot-Plugin/plugin/chess/core.go:485 +0x765
github.com/FloatTech/ZeroBot-Plugin/plugin/chess.createGame(0x0, 0xc001fbee00?, 0xba8fdb2a, {0xc0043520a0, 0x9})
	/home/aimer/Code/ZeroBot-Plugin/plugin/chess/core.go:429 +0x270
github.com/FloatTech/ZeroBot-Plugin/plugin/chess.game(...)
	/home/aimer/Code/ZeroBot-Plugin/plugin/chess/core.go:46
github.com/FloatTech/ZeroBot-Plugin/plugin/chess.init.0.func1(0xc0004b4050)
	/home/aimer/Code/ZeroBot-Plugin/plugin/chess/chess.go:71 +0x45
github.com/wdvxdr1123/ZeroBot.match.func2.1()
	/home/aimer/.golang/pkg/mod/github.com/wdvxdr1123/[email protected]/bot.go:256 +0x68
created by github.com/wdvxdr1123/ZeroBot.match.func2
	/home/aimer/.golang/pkg/mod/github.com/wdvxdr1123/[email protected]/bot.go:249 +0xaa 

Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

虽然但是,我打算把你inkspace换成resvgo(

@fumiama fumiama merged commit 5485cc3 into FloatTech:master Sep 2, 2023
7 checks passed
@aimerneige aimerneige deleted the aimer-chess-fix branch September 3, 2023 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants