Skip to content

[Bug]: Crash after stopping macOS recording; MP4 and cursor metadata are written successfully #21

Description

@vitaligusatinsky

Search existing issues

  • I have searched the existing issues

Describe the bug

Description

OpenScreen crashed immediately after stopping a recording on macOS. The recording artifacts were still written successfully: MP4, cursor metadata, and session JSON were present and readable afterward.

This looks like a shutdown/finalization crash rather than a corrupted recording write.

Environment

  • OpenScreen version: 1.5.0
  • macOS: 26.4.1
  • CPU: Apple Silicon / ARM64
  • Capture path: native macOS capture pipeline / ScreenCaptureKit
  • Cursor capture mode: editable overlay

What happened

  1. Recorded a screen session.
  2. Stopped the recording.
  3. The app crashed shortly after stopping.
  4. The video was recoverable and valid.
  5. Cursor metadata was also recoverable.

Crash evidence

macOS crash report summary:

  • Exception: EXC_BREAKPOINT
  • Signal: SIGTRAP
  • Faulting thread: CrBrowserMain
  • Stack involved Electron / Node / V8 async filesystem cleanup.
  • Relevant frame included node::fs::FileHandle::CloseReq::Resolve.

Unified log around the stop event showed ScreenCaptureKit teardown messages, including repeated:

_SCStream_RemoteAudioQueueOperationHandlerWithError: streamOutput NOT found. Dropping frame

### Expected behavior

After finishing recording I'd expect it to save and open the editor.

### To Reproduce

_No response_

### Screenshots

_No response_

### OS

None

### OS Version

_No response_

### Other OS

_No response_

### Browser

None

### Browser Version

_No response_

### Other Browser

_No response_

### Device Type

None

### Other Device

_No response_

### Additional context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions