LagrangeDev / go-cqhttp

cqhttp的golang实现,轻量、原生跨平台.
GNU Affero General Public License v3.0
74 stars 17 forks source link

[Bug]: 接受语音时报错:[2024-10-09 21:24:35] [WARNING]: 语音文件 86C0906A-C3F0-A309-F6EC-7DB67729CD67.amr 下载失败: Get "": unsupported protocol scheme "" #8

Open XuanRikka opened 1 month ago

XuanRikka commented 1 month ago

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

go-cqhttp 版本

b2ce5f4

运行环境

Windows (64)

运行架构

AMD64

连接方式

WebSocket (反向)

使用协议

0 | Default

重现步骤

接收一段语音

期望的结果是什么?

[2024-10-09 21:24:35] [INFO]: 收到群 璃虹港·Onani Port(955571576) 内 AAA成人用品跳弹飞机杯专卖轩某(2273379351) 的消息: 收到语音消息,你需要升级到最新版QQ才能接收,升级地址https://im.qq.com[CQ:record,file=86C0906A-C3F0-A309-F6EC-7DB67729CD67.amr,url=] (-2105724431) 正常输出url字段

实际的结果是什么?

[2024-10-09 21:24:35] [WARNING]: 语音文件 86C0906A-C3F0-A309-F6EC-7DB67729CD67.amr 下载失败: Get "": unsupported protocol scheme "" [2024-10-09 21:24:35] [INFO]: 收到群 璃虹港·Onani Port(955571576) 内 AAA成人用品跳弹飞机杯专卖轩某(2273379351) 的消息: 收到语音消息,你需要升级到最新版QQ才能接收,升级地址https://im.qq.com[CQ:record,file=86C0906A-C3F0-A309-F6EC-7DB67729CD67.amr,url=] (-2105724431)

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

No response

日志记录(可选)

No response

补充说明(可选)

No response

Redmomn commented 1 month ago

发语音的客户端是什么版本

XuanRikka commented 1 month ago

9.7.23,是因为不是ntqq吗

XuanRikka commented 1 month ago

另外我发现接受合并转发消息好像也有问题,发送端是手机qq9.1.0.19695,日志里出现了报错,而且消息为空 [2024-10-10 18:42:25] [INFO]: 收到群 Friend-友谊() 内 轩某Rikka() 的消息: (-1694757790) [2024-10-10 18:42:25] [WARNING]: Protocol -> [client.decodeOlPushServicePacket] unknown subtype 38 of type 0x210, proto data: 080112360a0608f4efbb8f0410f8bad3c7031801222210011a1a1889e2cd800520f8bad3c70328053001a2010408a7d603a80102200028002800

Redmomn commented 1 month ago

warnning是正常现象,不用管 接收语音报错是可以稳定复现吗

Redmomn commented 1 month ago

试试最新的action构建

XuanRikka commented 1 month ago

接收语音报错在使用ntqq发送之后没有出现,旧版qq依然是一样的报错,合并聊天转发主要是拿不到消息(

XuanRikka commented 1 month ago

接收旧版qq的截图之后出现了一大片红色报错(,可能是不支持旧版qq的语音之类的?

Redmomn commented 1 month ago

红色报错可以截个屏看看,我现在没法测试就客户端的东西

XuanRikka commented 1 month ago

屏幕截图 2024-10-10 233156

文字:

[2024-10-10 21:59:35] [ERROR]: Protocol -> [client.decodeOlPushServicePacket.func1] recovered from panic: runtime error: invalid memory address or nil pointer dereference
goroutine 688 [running]:
runtime/debug.Stack()
        runtime/debug/stack.go:24 +0x65
github.com/LagrangeDev/LagrangeGo/client.decodeOlPushServicePacket.func1()
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/listener.go:33 +0x58
panic({0x890ae0, 0xde9320})
        runtime/panic.go:890 +0x263
github.com/LagrangeDev/LagrangeGo/message.ParseMessageElements({0xc000228ff0, 0x4, 0xc000285ad0?})
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/message/message.go:249 +0xb39
github.com/LagrangeDev/LagrangeGo/message.ParseGroupMessage(0xc000245c00)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/message/message.go:137 +0xa5
github.com/LagrangeDev/LagrangeGo/client.decodeOlPushServicePacket(0xc00037c000, 0xc000036b80)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/listener.go:51 +0xe8b
github.com/LagrangeDev/LagrangeGo/client.(*QQClient).netLoop.func1(0xc000036b80)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/network.go:350 +0x17f
created by github.com/LagrangeDev/LagrangeGo/client.(*QQClient).netLoop
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/network.go:335 +0x47a

[2024-10-10 21:59:35] [ERROR]: Protocol -> [client.decodeOlPushServicePacket.func1] protobuf data: 0afe060a800108978884bc081218755f346a623558315167316d665051564f4a52576a4141671801200128eed98ff90c425408f8bad3c7031001188f15222a414141e68890e4babae794a8e59381e8b7b3e5bcb9e9a39ee69cbae69dafe4b893e58d96e8bda9e69f90280130013a15e79283e899b9e6b8afc2b74f6e616e6920506f72744810121e085220f481caba0228a5a10b30c6bb9fb806380160f481caba82808080011ad8050ad5050a27080010c5bb9fb80618f481caba022000280e300038860140314a0ce5beaee8bdafe99b85e9bb91128604428304122a7b32334144323138302d463034452d453133392d313437372d3938364443383444343535377d2e706e6722002a0400000000325c15362039326b413100393438386632663236643633326662372020202020203530202020202020202020202020202020207b32334144323138302d463034452d453133392d313437372d3938364443383444343535377d2e706e674138f2e5a3a40940b7df8ceb06485050005a0060016a1023ad2180f04ee1391477986dc84d455772672f67636861747069635f6e65772f323237333337393335312f3935353537313537362d323439323030333035382d32334144323138304630344545313339313437373938364443383444343535372f3139383f7465726d3d3235352669735f6f726967696e3d307a672f67636861747069635f6e65772f323237333337393335312f3935353537313537362d323439323030333035382d32334144323138304630344545313339313437373938364443383444343535372f3732303f7465726d3d3235352669735f6f726967696e3d308201652f67636861747069635f6e65772f323237333337393335312f3935353537313537362d323439323030333035382d32334144323138304630344545313339313437373938364443383444343535372f303f7465726d3d3235352669735f6f726967696e3d30a001e907b001ad0db801f604c801cfdd0712064a0408004001125aaa02575000600068009a014e080420cb50c80100f00100f80100900200980300a00300b00301c00300d00300e803008a040408031047900480818010b80400c00400ca0400f804cc8408880500b2060a0a080800100018002000123d82013a122a414141e68890e4babae794a8e59381e8b7b3e5bcb9e9a39ee69cbae69dafe4b893e58d96e8bda9e69f901801201028033a06e585ade88ab1
Redmomn commented 1 month ago

图片的问题解决了,等我有条件了测试下语音

XuanRikka commented 1 month ago

退群事件好像也有问题(

[2024-10-11 21:18:49] [INFO]: 成员 未知 离开了群 Friend-友谊().
[2024-10-11 21:18:49] [ERROR]: Protocol -> [client.(*EventHandle[...]).dispatch.func1] event error: runtime error: invalid memory address or nil pointer dereference
goroutine 73015 [running]:
runtime/debug.Stack()
        runtime/debug/stack.go:24 +0x65
github.com/LagrangeDev/LagrangeGo/client.(*EventHandle[...]).dispatch.func1()
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/event.go:34 +0x67
panic({0x890ae0, 0xde9320})
        runtime/panic.go:884 +0x213
github.com/Mrs4s/go-cqhttp/coolq.(*CQBot).memberLeaveEvent(0xc00037c000?, 0xc000239c68?, 0xc000282c80)
        github.com/Mrs4s/go-cqhttp/coolq/event.go:402 +0x3cd
github.com/LagrangeDev/LagrangeGo/client.(*EventHandle[...]).dispatch(0xa417a0?, 0xc00037c000?, 0x8469e0)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/event.go:38 +0xdd
github.com/LagrangeDev/LagrangeGo/client.decodeOlPushServicePacket(0xc00037c000, 0xc0002828c0)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/listener.go:103 +0x588
github.com/LagrangeDev/LagrangeGo/client.(*QQClient).netLoop.func1(0xc0002828c0)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/network.go:350 +0x17f
created by github.com/LagrangeDev/LagrangeGo/client.(*QQClient).netLoop
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/network.go:335 +0x47a

[2024-10-11 21:18:51] [ERROR]: Protocol -> [client.decodeOlPushServicePacket.func1] recovered from panic: runtime error: invalid memory address or nil pointer dereference
goroutine 73036 [running]:
runtime/debug.Stack()
        runtime/debug/stack.go:24 +0x65
github.com/LagrangeDev/LagrangeGo/client.decodeOlPushServicePacket.func1()
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/listener.go:33 +0x58
panic({0x890ae0, 0xde9320})
        runtime/panic.go:890 +0x263
github.com/LagrangeDev/LagrangeGo/message.ParseMessageElements({0xc00006e410, 0x8, 0xc00058a630?})
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/message/message.go:249 +0xb39
github.com/LagrangeDev/LagrangeGo/message.ParseGroupMessage(0xc0005d8160)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/message/message.go:137 +0xa5
github.com/LagrangeDev/LagrangeGo/client.decodeOlPushServicePacket(0xc00037c000, 0xc0002484c0)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/listener.go:51 +0xe8b
github.com/LagrangeDev/LagrangeGo/client.(*QQClient).netLoop.func1(0xc0002484c0)
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/network.go:350 +0x17f
created by github.com/LagrangeDev/LagrangeGo/client.(*QQClient).netLoop
        github.com/LagrangeDev/LagrangeGo@v0.1.1-0.20241010114039-fe608d5b90ab/client/network.go:335 +0x47a

[2024-10-11 21:18:51] [ERROR]: Protocol -> [client.decodeOlPushServicePacket.func1] protobuf data: 0a92080a7008ef8bbd8d0e1218755f672d36317075726762634a4b3975552d5f63485151511801200128eed98ff90c424408ffa5d4f601100118a990062223e99bbee99ba8e5a8b1e4b990e69cbae599a8e4baba5be5858de8b4b9e8af95e794a85d280230013a0d467269656e642de58f8be8b08a121e085220b3a4fddc0a28edaa2e30bacba4b806380160b3a4fddc8a808080011afd060afa060a27080010e3caa4b80618b3a4fddc0a2000280a300038860140004a0ce5beaee8bdafe99b85e9bb91121a0a180a162d2d2d2de68890e59198e98080e7bea42d2d2d2d2d0d12810442fe03122a7b33453733373637452d424139422d413631442d453241322d3242363930324646434141367d2e6a706722002a0400000000325c15362039326b413143396231323166376636643866653336352020202020203530202020202020202020202020202020207b33453733373637452d424139422d413631442d453241322d3242363930324646434141367d2e6a70674138ffbec8d80940e5c6bfec06485050435a0060016a103e73767eba9ba61de2a22b6902ffcaa672672f67636861747069635f6e65772f333738363336303330332f3531373238303531312d323630313635363139312d33453733373637454241394241363144453241323242363930324646434141362f3139383f7465726d3d3235352669735f6f726967696e3d307a672f67636861747069635f6e65772f333738363336303330332f3531373238303531312d323630313635363139312d33453733373637454241394241363144453241323242363930324646434141362f3732303f7465726d3d3235352669735f6f726967696e3d308201652f67636861747069635f6e65772f333738363336303330332f3531373238303531312d323630313635363139312d33453733373637454241394241363144453241323242363930324646434141362f303f7465726d3d3235352669735f6f726967696e3d30b001c601b801b901c801a92b12050a030a010d123b0a390a0a40e4b88ae59f8ee594af1a0d000100000004007ea3b1620000621c18024a18755f565734466f4a36466e694d634b4e35587248557a536712560a540a52e7aa81e784b6e683b3e8b5b7e5aeb6e9878ce6b2a1e585b3e7a9bae8b0830de98080e587bae4ba86e69cace7bea4e38082e59084e4bd8de587bae997a8e8a681e8aeb0e5be97e585b3e7a9bae8b083efbc8112064a0408004001125baa025840015000600068009a014d080020cb50c80100f00100f80100900200980300a00300b00300c00300d00300e803008a0402100990048080908002b80400c00400ca0400f8048c8408880500b2060a0a080800100018002000122e82012b0a23e99bbee99ba8e5a8b1e4b990e69cbae599a8e4baba5be5858de8b4b9e8af95e794a85d180128013a00

一退群就会出现

Redmomn commented 1 month ago

退群这个应该也是预期之内