Skip to content

[BUG] 内存溢出问题 #655

@molanp

Description

@molanp

系统版本

win server 2019 datacentet

QQNT 版本

9.9.23-41857

LLBot 版本

7.0.1 CLI

OneBot 客户端

zhenxun

发生了什么?

在长时间运行后发生内存溢出错误,造成ws链接崩溃。

此时llonebot进程假死,无报错日志。qq客户端工作正常(可正常使用)

pmhq配置为默认配置,未使用无头

windows日志

错误应用程序名称: QQ.exe,版本: 9.9.23.41857,时间戳: 0x6851d1d3
错误模块名称: ntdll.dll,版本: 10.0.17763.1192,时间戳: 0x5854f5da
异常代码: 0xc0000409
错误偏移量: 0x00000000000bd448
错误进程 ID: 0x1bf0
错误应用程序启动时间: 0x01dc6b243baff126
错误应用程序路径: E:\QQNT\QQ.exe
错误模块路径: C:\Windows\SYSTEM32\ntdll.dll
报告 ID: 1a1ed9d0-3e4f-4307-8933-694a27505f1b
错误程序包全名: 
错误程序包相对应用程序 ID: 

如何复现

长时间运行

期望的结果?

正常运行

LLBot 运行日志

[info] | 2025-12-13 13:42:02 | WebSocket 事件上报 ws://127.0.0.1:8080/onebot/v11/ws meta_event

[info] | 2025-12-13 13:42:32 | WebSocket 事件上报 ws://127.0.0.1:8080/onebot/v11/ws meta_event

[info] | 2025-12-13 13:43:02 | WebSocket 事件上报 ws://127.0.0.1:8080/onebot/v11/ws meta_event

[info] | 2025-12-13 13:43:32 | WebSocket 事件上报 ws://127.0.0.1:8080/onebot/v11/ws meta_event

[info] | 2025-12-13 13:43:34 | [收-群] 高雅人士交流群(x) 网络皇帝(x):
我再看看

[info] | 2025-12-13 13:43:34 | WebSocket 事件上报 ws://127.0.0.1:8080/onebot/v11/ws message.group

#随后发生假死,无日志信息

OneBot 客户端运行日志

12-13 13:43:34 [SUCCESS] nonebot | OneBot V11 x | [message.group.normal]: Message 1655298486 from x@[群:x] '我再看看'
12-13 13:43:34 [INFO] nonebot | Event will be handled by Matcher(type='message', module=zhenxun.builtin_plugins.chat_history.chat_message, lineno=40)
12-13 13:44:12 [WARNING] nonebot | OneBot V11 | WebSocket for Bot x closed by peer
12-13 13:44:12 [INFO] websockets | connection closed
12-13 13:45:14 [ERROR] nonebot | Permission check failed for Matcher(type='message', module=nonebot_plugins.nonebot_plugin_parser.matchers.filter, lineno=52).
  + Exception Group Traceback (most recent call last):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions