Skip to content

[Bug] OpenClaw.Tray.WinUI v2026.7.1 UI hang/crash (AppHang + APPCRASH combase.dll) under heavy agent event streaming #1150

Description

@LCS-333888

描述 / Description

OpenClaw Companion 桌面客户端(OpenClaw.Tray.WinUI.exe)v2026.7.1 在 agent 会话活动、流式输出时,UI 线程会反复无响应(AppHang),严重时崩溃(APPCRASH),需要反复手动重启。核心问题疑似是 UI 线程在收到大量 agent 流式事件时被事件风暴刷死。

The OpenClaw Companion desktop client (OpenClaw.Tray.WinUI.exe) v2026.7.1 repeatedly hangs (AppHang) and sometimes crashes (APPCRASH) when an agent session is active with streaming output. Suspected root cause: the UI thread is overwhelmed by a flood of agent streaming events.

复现步骤 / Steps to reproduce

  1. 启动桌面 Companion v2026.7.1。
  2. 让 agent(例如默认 main 会话)产生流式回答或长命令输出。
  3. 客户端开始大量接收 agent 事件(日志中 Received event: agentstream=itemstream=command_output),每秒可达数十条。
  4. 客户端 UI 卡住 → 几秒到几十秒后被系统判定无响应(AppHangTransient / AppHangB1),严重时直接崩溃退出。

预期行为 / Expected

客户端应能正常处理事件流,不卡顿、不崩溃。

实际行为 / Actual

UI 线程在事件风暴下挂起/崩溃,频繁出现,需手动重启客户端。

环境 / Environment

  • OS: Windows 10.0.26200 (x64)
  • OpenClaw.Tray.WinUI.exe v2026.7.1 (Build 4206611)
  • Node: 22.23.2
  • 网关: OpenClaw 2026.7.1-2

崩溃证据 / Crash evidence

  • APPCRASH 模块: CoreMessagingXP.dll + combase.dll,异常代码 0xc000027b
  • 多次 AppHangTransient(UI 无响应)、AppHangB1(UI 挂起被强制关闭)、Application Error 1000
  • 崩溃转储: OpenClaw.Tray.WinUI.exe.21280.dmp(43MB,22:52 生成)
  • 客户端日志: 事件风暴期间每秒数十条 agent 事件

备注 / Notes

  • 将客户端 LogLeveltrace 降为 warn 对运行时无效default-config.json 看起来是安装器模板而非运行时配置,望确认。
  • 网关与网页版(dashboard)工作正常,问题仅在桌面 WinUI 客户端。

附件 / Attachments

崩溃转储(2)、客户端日志、事件记录、版本信息已打包为 zip(约 20MB),将作为评论上传。

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.status: 🚢 actively landingA maintainer or agent is actively driving this item through implementation, validation, or merge.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions