-
Notifications
You must be signed in to change notification settings - Fork 297
OpenClaw Companion (Windows) crashes within 6-90s of startup - WinUI 3 ArrangeOverride throws E_INVALIDARG #1410
Copy link
Copy link
Closed
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsBacklog
Summary
Companion (v2026.9.3, Windows 11 24H2) reliably crashes 6–90 seconds after startup, every launch. The crash happens while the native XAML chat view is rendering the gateway-pushed wizard/startup data. It is an app-side WinUI 3 layout bug, not an environment problem. Setting
"UseLegacyWebChat": truein%APPDATA%\OpenClawTray\settings.json(chat falls back to the legacy Web rendering path) fully avoids the crash — verified stable for 180s+ across multiple restarts.Environment
%LOCALAPPDATA%\OpenClawTray)Microsoft.UI.Xaml.dll3.2.3.2608; system WindowsAppRuntime 1.1–2.x registered fineAudioDevProps2.dll), Oray virtual display driver — both ruled outSymptoms
0xc000027b(STATUS_STOWED_EXCEPTION), faulting moduleMicrosoft.UI.Xaml.dll.crash.log:System.ArgumentException: 参数错误。with the stack pinned toIFrameworkElementOverrides.ArrangeOverride(see below).chat.historywizard response (~84KB,kind=Object) arrives — i.e., exactly while the main chat view is rendering.ws://127.0.0.1:19999dead).Crash stack (crash.log)
App log (137ms before crash):
Root cause analysis
The crash originates in the native layout implementation of
Microsoft.UI.Xaml.dll: the managed layer callsIFrameworkElementOverrides.ArrangeOverride, and the native side returnsE_INVALIDARG (0x80070057). In WinUI 3 this is typical when a chat message / wizard payload with a specific structure (nested cards, Markdown, tool-call blocks) produces an invalid size during measure/arrange.Evidence chain:
"UseLegacyWebChat": trueswitches the chat to the WebView path, which never touches the native XAML chat controls — crashes stop. This inversely confirms the native chat view layout path as the culprit.sfc /scannowclean, DPI compat flags, reinstall,NodeCanvasEnabled/NodeScreenEnabled=false).Workaround (verified)
Edit
%APPDATA%\OpenClawTray\settings.json:{ "UseLegacyWebChat": true, "AppTheme": "Light" }Result: 0 crashes across multiple restarts, 180s+ continuous uptime, all features (chat/settings/notifications/hotkeys) functional.
AppTheme: Darkalso crashes in the same environment, so the theme change alone is not sufficient — the key switch isUseLegacyWebChat.Reproduction steps
Suggested fix direction
sessions.messages/chat.historywizard payloads (kind=Object, ~84KB) in the native chat message-list control; focus on layout measurement of wizard card structures (nested cards / Markdown / tool-call blocks).AppTheme=Dark), which crashes in the same environment.UseLegacyWebChatfor affected users, or routing wizard startup data to a Web-chat-only channel.Additional material
A full 7-page troubleshooting report (Chinese) with all logs, timeline and verification data is available on request — happy to share it here if maintainers want the complete evidence.