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

收到合并转发的消息的时候提示invalid memory address or nil pointer dereference #280

Closed
planevina opened this issue Sep 14, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@planevina
Copy link

planevina commented Sep 14, 2020

我做了个解析合并转发消息并且下载里面的图片的功能
正常运行了一天
今天开始,收到合并转发消息的时候提示这个错误
知道是什么原因吗
[2020-09-14 12:54:18] [ERROR]: Protocol -> panic on decoder: runtime error: invalid memory address or nil pointer dereference

==================
我仔细debug了一下,
收到消息已经正确上报给后台
后台获取到 forwardid后,在获取forward消息的时候报的错
await bot.get_forward_msg(message_id=fwid)

===================
更新,是新版本v0.9.25的问题,我换回v0.9.24-fix2 就好了

@Mrs4s
Copy link
Owner

Mrs4s commented Sep 14, 2020

请切换到phone协议试试?

@planevina
Copy link
Author

请切换到phone协议试试?

我...不知道怎么切换这个协议...能问问哪里有指南吗

@Mrs4s
Copy link
Owner

Mrs4s commented Sep 14, 2020

@Mrs4s Mrs4s added the bug Something isn't working label Sep 14, 2020
@planevina
Copy link
Author

感谢,我查看了我的device配置文件(因为是默认生成的我没改),里面没有protocol,我加了个 protocol=1 (phone),现在能正常获取转发消息的内容了(0.9.25版)

但是在空闲时,会出现超时消息,不知道跟这个协议有没有关系

[2020-09-14 14:22:23] [ERROR]: Protocol -> packet timed out, seq: 13936
[2020-09-14 14:22:24] [ERROR]: Protocol -> packet 13939 timed out. retry.
[2020-09-14 14:22:54] [ERROR]: Protocol -> packet timed out, seq: 13939
[2020-09-14 14:22:54] [ERROR]: Protocol -> packet 13942 timed out. retry.
[2020-09-14 14:23:24] [ERROR]: Protocol -> packet timed out, seq: 13942
[2020-09-14 14:23:24] [ERROR]: Protocol -> packet 13945 timed out. retry.

@planevina
Copy link
Author

planevina commented Sep 14, 2020

补充,这个超时包好像是半分钟一次
我换回0.9.24 就没有这个超时包了
心跳选项是0 ,没有开启心跳,应该是其他包吧

@Mrs4s
Copy link
Owner

Mrs4s commented Sep 19, 2020

已修复

@Mrs4s Mrs4s closed this as completed Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants