Skip to content

[Bug] 升级后出现页面提示内存超出 #1136

Closed

Description

@gps5

Affected area

Desktop UI (agent-gui / React)

Version or commit

2.0.2

Environment

windows11

Steps to reproduce

Image

等待以会 出现

Image

关闭后重试还是同样问题

Expected behavior

修复问题

Actual behavior

none

Logs / screenshots

No response

Pre-submit checklist

  • I searched existing issues and pull requests and found no duplicates.
  • This is not a security vulnerability (report those privately via Security Advisories).

Activity

  1. added
    bugSomething isn't working
    on Nov 3, 2026
  2. xiaozhou26 commented on Nov 3, 2026

    @xiaozhou26
    Contributor

    感谢反馈和截图。已在 #1137 修复(已合并),会随下一个版本发布。

    原因:从 1.x 升级后,首次启动会把旧版会话迁移到新后端。原来每次固定读取 20 个旧会话,连同全部消息和 checkpoint 文件一次性交给界面进程处理。如果历史里有很长的会话或带图片的消息,一批数据就会让界面内存溢出(Out of Memory)。重启后又从同一批开始,所以每次都卡在「正在读取旧数据」。

    修复:改成按数据量分批读取,每批约 8 MB,超过就留到下一批。单个很大的会话会单独成一批,迁移可以继续往下走。

    先关闭这个 issue。更新后如果还是出现内存溢出,请回复并附上 %USERPROFILE%\.liveagent\chat-history.sqlite3 的文件大小,方便判断是不是单个会话本身就特别大。

  3. gps5 commented on Nov 3, 2026

    @gps5
    Author
    Image 1个多G了
  4. gps5 commented on Nov 3, 2026

    @gps5
    Author

    如何修复

  5. added a commit that references this issue on Nov 3, 2026
    7198d86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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