Skip to content

Linux capture sources stay dead after PipeWire restarts #108

Closed

Description

@rdoupe

Restarting audio on Linux breaks OBS until OBS itself is restarted. I restarted audio on my desktop (which restarts PipeWire) and couldn't get my screen back in OBS: the screen capture froze on its last frame, mic and desktop audio went silent, and nothing in OBS noticed. A recording carries on with a frozen picture and no sound.

Operating System: Arch Linux, Hyprland (Wayland), PipeWire 1.6.8 with pipewire-pulse, xdg-desktop-portal-hyprland 1.4.1

OBS version: Git, obs-rust master b45a287 (also the AUR obs-rust-git build)

Expected behavior: Screen capture and audio sources come back by themselves once PipeWire is back, without a picker when a restore token exists.

Current behavior: The screen freezes and audio goes silent for good. The log shows one line for the screen and nothing for the audio sources:

11:32:57.020: [pipewire] Error id:0 seq:642 res:-32 (Broken pipe): connection error
11:32:57.020: [pipewire] Stream 0x61115694f450 state: "unconnected" (error: connection error)

Steps to reproduce:

  1. Add a Screen Capture (PipeWire) source and the default audio sources, and start recording.
  2. Run systemctl --user restart pipewire.
  3. The screen stays frozen and audio stays silent.

Cause

  • linux-pipewire: the core error listener only logs. Nothing tears down the dead connection or asks the portal again. The only manual way out, the source's Reload button, also deletes the restore token, so the picker comes back.
  • linux-pulseaudio: the shared context's state callback is a noop (@todo ... we want to reconnect here if the connection is lost). Once the server goes away, the context stays failed and every pulse source, even a newly added one, stays silent until OBS restarts.

Prior work

Written with Claude Code (Claude Opus 5.5).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions