go-cqhttp icon indicating copy to clipboard operation
go-cqhttp copied to clipboard

[Bug]: 视频bug

Open CuSO4-55H2O opened this issue 1 year ago • 0 comments

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • [X] 我已经仔细阅读上述教程和 "提问前需知"
  • [X] 我已经使用 dev分支版本 测试过,问题依旧存在。
  • [X] 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • [X] 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)

go-cqhttp 版本

1.10

运行环境

Windows (64)

运行架构

None

连接方式

HTTP

使用协议

0 | Default

重现步骤

我设定了,每当我发(例如)a的时候就用爬虫抓取一个视频,我发送a,bot发送到了那个群,然后在其他群重复发送a时就出现问题了

期望的结果是什么?

在其他群也发送视频

实际的结果是什么?

没有发送视频

简单的复现代码/链接(可选)

No response

日志记录(可选)

[2023-08-21 17:51:56] [ERROR]: Protocol -> panic on decoder PttCenterSvr.ShortVideoDownReq : runtime error: index out of range [0] with length 0
goroutine 2751 [running]:
runtime/debug.Stack()
        runtime/debug/stack.go:24 +0x65
github.com/Mrs4s/MiraiGo/client.(*QQClient).netLoop.func1.1()
        github.com/Mrs4s/[email protected]/client/network.go:393 +0x65
panic({0x9d9c80, 0xc0005782d0})
        runtime/panic.go:884 +0x213
github.com/Mrs4s/MiraiGo/client.decodePttShortVideoDownResponse(0xc000222300?, 0xc000056c00)
        github.com/Mrs4s/[email protected]/client/ptt.go:332 +0x145
github.com/Mrs4s/MiraiGo/client.(*QQClient).netLoop.func1(0xc000056c00)
        github.com/Mrs4s/[email protected]/client/network.go:405 +0x182
created by github.com/Mrs4s/MiraiGo/client.(*QQClient).netLoop
        github.com/Mrs4s/[email protected]/client/network.go:390 +0x4cd

[2023-08-21 17:51:56] [ERROR]: 出现错误 packet decode error: PttCenterSvr.ShortVideoDownReq - runtime error: index out of range [0] with length 0. 详细信息已转储至文件 dumps/1692611516.dump 请连同日志提交给开发者处理

补充说明(可选)

这是dump的内容:?盙"葶?successJ € ?

CuSO4-55H2O avatar Aug 21 '23 10:08 CuSO4-55H2O