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] 导出大型群聊的聊天记录时内存占用过高导致系统卡死 #554

Open
chy5301 opened this issue Jan 30, 2025 · 2 comments
Labels
🐛 Bug Something isn't working

Comments

@chy5301
Copy link

chy5301 commented Jan 30, 2025

👌 是否需要解答

👌 是否检查过没有类似issue

💻 Python版本

我用的EXE程序

💻 微信版本

最新版

软件版本 | EXE Version

最新版

🐛 问题描述 | Bug Description

现象:导出内容较多的群聊的聊天记录时内存占用过高导致系统卡死

如图所示:32G内存很快被基本占满,然后开始大量占用虚拟内存空间。图片是在系统卡死之前截的,之后占用仍然持续增加了一段时间,直到100+GB时造成系统卡死

Image

🚦 期望结果 | Expected Behavior

有没有可能在导出导出内容较多的群聊的聊天记录时通过自动分段导出到硬盘再合并的方式减少内存占用?最好将内存占用根据系统配置进行限制,达到限制后就先将一部分数据导出到硬盘,否则每次将全部数据读取到内存再导出的话一旦失败是无法产生任何导出结果的。

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

@chy5301 chy5301 added the 🐛 Bug Something isn't working label Jan 30, 2025
@chy5301
Copy link
Author

chy5301 commented Jan 30, 2025

最后我把虚拟内存的上限改到256G后问题解决了,但是这样就需要用户自己改高级系统设置才行。最好还是能从程序上来解决这个问题

@LC044
Copy link
Owner

LC044 commented Feb 2, 2025

内容较多的群聊,较多是多少,有没有具体说明

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