openclaw / openclaw/openclaw-windows-node

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

Open
#1,150 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:crash-loop issue-rating: 🦞 diamond lobster P1
Dominant language
C#
Stars
2.1k
Forks
295
Avg merge
1d 6h
Merged PRs (30d)
99

Description

描述 / 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 4206611f)
  • 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),将作为评论上传。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the hang in OpenClaw.Tray.WinUI.exe v2026.7.1 with a streaming agent session and inspect the client logs for the reported flood of agent events. Compare the runtime behavior with default-config.json, then use the supplied dump and event records to identify the UI-thread failure; done means sustained streaming no longer hangs or crashes the desktop client.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.