Skip to content

Speech Input Test causes reproducible APPCRASH in OpenClaw.Tray.WinUI.exe #683

Closed

Description

@gerwin-van-giessen

Summary

The OpenClaw Windows Companion app crashes when using the built-in speech input test flow. The crash is reproducible and does not depend on the selected speech model: tiny, base, and small all trigger the same failure.

The gateway is running and reachable during the test, so this does not appear to be caused by the gateway being offline.

A screen recording is available showing the crash during the voice input test.

What happened

When testing speech input in the Windows Companion app, the app closes/crashes instead of completing the test or showing an error message.

This happens with all tested speech input models:

  • tiny
  • base
  • small

Because all tested models reproduce the crash, this does not look like a model-specific failure or a missing-model edge case. It looks like the Companion voice test flow is failing at the app/runtime level.

Repro

  1. Open OpenClaw Windows Companion.
  2. In the left sidebar, navigate to Speech and Audio under This Computer.
  3. In the Speech Model card, select a speech model, for example tiny.
  4. Click Download to download the selected model.
  5. Wait until the UI shows Model ready.
  6. Click Test speech input.
  7. Click Record.
  8. Observe that the application crashes.
  9. Reopen the application.
  10. Repeat the same steps with base and small.
  11. Observe the same crash behavior.

Expected behavior

The speech input test should either:

  • complete successfully and show/transcribe the captured input, or
  • fail gracefully with a visible diagnostic message if something is misconfigured.

The Companion app should not crash.

Actual behavior

The Windows Companion app crashes during the speech input test.

Evidence

Screen recording:

OpenClaw.Windows.Companion.Crash.mp4

The recording shows:

  • Windows Companion running normally
  • a downloaded and ready speech model
  • speech input testing being started
  • the application crashing

Windows Event Viewer records repeated APPCRASH events for OpenClaw.Tray.WinUI.exe.

Windows Event Viewer crash details

The crash reproduced multiple times. Event Viewer consistently reports OpenClaw.Tray.WinUI.exe crashing in MSVCP140.dll with exception code 0xc0000005 and fault offset 0x0000000000013020.

Representative Application Error event:

ProviderName: Application Error
Event ID: 1000
Level: Error

Faulting application name:
OpenClaw.Tray.WinUI.exe

Faulting application version:
0.6.0.0

Faulting module name:
MSVCP140.dll

Faulting module version:
14.29.30142.1

Exception code:
0xc0000005

Fault offset:
0x0000000000013020

Faulting application path:
%USERPROFILE%\AppData\Local\OpenClawTray\OpenClaw.Tray.WinUI.exe

Faulting module path:
%USERPROFILE%\AppData\Local\OpenClawTray\MSVCP140.dll

Windows Error Reporting also records this as an APPCRASH:

Event name:
APPCRASH

P1:
OpenClaw.Tray.WinUI.exe

P2:
0.6.0.0

P4:
MSVCP140.dll

P5:
14.29.30142.1

P7:
c0000005

P8:
0000000000013020

Why this matters

Speech input is a visible, user-facing Companion feature. A native crash here makes the feature unusable and gives the user no actionable error message.

The repeated Event Viewer entries make this a high-confidence crash reproduction rather than a transient UI glitch. The fact that the crash reproduces across tiny, base, and small also suggests the issue is probably not isolated to one speech model.

Suggested investigation

Check the voice input test path for unhandled native/runtime failures around:

  • microphone permission / audio device access,
  • audio capture initialization,
  • selected model path resolution,
  • model process startup,
  • native library loading,
  • temporary audio file creation,
  • transcription result parsing,
  • cancellation / timeout handling,
  • UI thread dispatch after the test starts.

Given the Event Viewer details, also inspect the bundled/runtime dependency path for MSVCP140.dll, because the crash consistently faults there with 0xc0000005.

At minimum, the Companion should catch failures in this path and surface a visible diagnostic instead of terminating.

Environment

Windows:
OS Name: Microsoft Windows 11 Pro Insider Preview
OS Version: 10.0.26300 N/A Build 26300
System Type: x64-based PC

WSL:
WSL version: 2.7.7.0
Kernel version: 6.18.26.1-1
WSLg version: 1.0.73.2
Windows version reported by WSL: 10.0.26300.8553

OpenClaw / Gateway:
OpenClaw 2026.6.1 (2e08f0f)

Gateway:
Service: systemd user (enabled)
Gateway bind: loopback / 127.0.0.1
Gateway port: 18789
CLI version: 2026.6.1
Gateway version: 2026.6.1
Runtime: running
Connectivity probe: ok
Capability: admin-capable

Windows Companion:
OpenClaw.Tray.WinUI.exe
Version from Event Viewer: 0.6.0.0

Audio devices:
NVIDIA Virtual Audio Device (Wave Extensible) (WDM)    OK
NVIDIA Broadcast                                       OK
Audio Share                                            OK

Notes

The gateway was running and reachable during the test. openclaw gateway status reported Connectivity probe: ok, so the crash does not appear to be caused by the gateway being offline.

The crash was reproduced repeatedly with the same faulting module, exception code, and fault offset.

Activity

  1. clawsweeper commented on Jun 4, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 7:11 AM ET / 11:11 UTC.

    Summary
    Keep open: the report is a concrete, current user-facing crash with screen-recording and Event Viewer evidence, and current main still routes the Speech Model test through the same native speech/audio path without an evident post-release fix.

    Reproducibility: yes. the issue gives high-confidence user reproduction steps plus screen-recording and Event Viewer evidence. I did not run Windows locally, but source inspection shows current main still follows the same Record -> VoiceService -> AudioPipeline/native STT path and has no post-v0.6.0 speech-path fix.

    Next step
    This needs maintainer or Windows-native investigation before a safe fix PR can be queued; the source path is narrow, but the native access-violation root cause is not yet isolated.

    Review details

    Best possible solution:

    Keep the issue open and investigate the Windows native speech test path until Record either transcribes successfully or surfaces a visible diagnostic instead of terminating the tray process.

    Do we have a high-confidence way to reproduce the issue?

    Yes, the issue gives high-confidence user reproduction steps plus screen-recording and Event Viewer evidence. I did not run Windows locally, but source inspection shows current main still follows the same Record -> VoiceService -> AudioPipeline/native STT path and has no post-v0.6.0 speech-path fix.

    Is this the best way to solve the issue?

    Unclear because there is no patch yet and the native APPCRASH needs root-cause evidence before choosing the repair. The narrow solution should harden the existing speech test startup/transcription path rather than add a new speech mode or alternate workflow.

    AGENTS.md: found, but no applicable review policy affected this item.

    Remaining risk / open question:

    • Root cause is still unknown: the failure may be in audio capture, Whisper/ONNX native initialization, model loading, or the bundled VC runtime rather than in managed UI code.
    • A safe fix likely needs a Windows repro or crash dump because a native 0xc0000005 can bypass the managed exception handling visible in the speech test flow.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 85445c78066b.

    Label changes

    Label changes:

    • add P2: This is a reproducible user-facing crash in a bounded Companion speech feature, with strong evidence but limited blast radius.
    • add impact:crash-loop: The issue is about OpenClaw.Tray.WinUI.exe terminating during a normal Speech Input Test action.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.

    Label justifications:

    • P2: This is a reproducible user-facing crash in a bounded Companion speech feature, with strong evidence but limited blast radius.
    • impact:crash-loop: The issue is about OpenClaw.Tray.WinUI.exe terminating during a normal Speech Input Test action.
    Evidence reviewed

    What I checked:

    • Reporter crash evidence: The issue body provides exact reproduction steps, a screen recording link, and repeated Event Viewer APPCRASH entries for OpenClaw.Tray.WinUI.exe faulting in app-local MSVCP140.dll with exception 0xc0000005.
    • Speech test UI entry point: The Voice & Audio page exposes Test Voice Input and Record buttons that drive the inline speech test flow. (src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml:69, 85445c78066b)
    • Record starts the inline VoiceService: On Record, the page constructs an inline VoiceService, attaches transcription/audio handlers, and awaits StartVoiceChatAsync; the managed catch only covers managed exceptions, not a native access violation. (src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs:414, 85445c78066b)
    • Native audio/STT startup path: StartVoiceChatAsync initializes VAD and Whisper, then AudioPipeline starts WasapiCapture on the thread pool before processing microphone audio. (src/OpenClaw.Tray.WinUI/Services/VoiceService.cs:117, 85445c78066b)
    • Speech stack uses native dependencies: OpenClaw.Shared references Whisper.net.Runtime and Microsoft.ML.OnnxRuntime, while SpeechToTextService loads a WhisperFactory from the downloaded model path and builds native processors for transcription. (src/OpenClaw.Shared/OpenClaw.Shared.csproj:20, 85445c78066b)
    • No speech-path fix after v0.6.0: The central speech files have no commits between v0.6.0 and current HEAD, so the reported v0.6.0 speech test path is not evidently fixed on current main. (85445c78066b)

    Likely related people:

    • Régis Brid: Available blame ties the inline speech test, VoiceService initialization, AudioPipeline capture startup, and transcription path to the v0.6.0 commit. (role: introduced behavior; confidence: high; commits: 7d9152f427a3; files: src/OpenClaw.Tray.WinUI/Pages/VoiceSettingsPage.xaml.cs, src/OpenClaw.Tray.WinUI/Services/VoiceService.cs, src/OpenClaw.Tray.WinUI/Services/AudioPipeline.cs)
    • Keith Mahoney: Recent VC runtime packaging changes are adjacent because the reported crash faults in app-local MSVCP140.dll, even though that commit does not resolve the speech test crash. (role: adjacent native-runtime contributor; confidence: medium; commits: f839cf53aa0c; files: src/Directory.Build.targets, tests/OpenClaw.Tray.Tests/ReleaseSigningWorkflowTests.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2
    impact:crash-loop
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    on Jun 4, 2026
  3. yuema2026 commented on Jun 5, 2026

    @yuema2026

    我也是同样的问题,x64 Windows 11,v0.6.3

  4. locked as resolved and limited conversation to collaborators on Jun 7, 2026
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

    P2clawsweeper:needs-maintainer-reviewclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:crash-loopissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions