Skip to content

osn-input: log source id before creating input#1721

Open
summeroff wants to merge 1 commit into
stagingfrom
fix/input-create-source-log
Open

osn-input: log source id before creating input#1721
summeroff wants to merge 1 commit into
stagingfrom
fix/input-create-source-log

Conversation

@summeroff

@summeroff summeroff commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Adds an INFO log of the input source id (after the _vN suffix) and its name immediately before obs_source_create in Input::Create.

Source-create crashes have appeared in Sentry with no indication of which source triggered them (the crash breadcrumb records only Input::Create, not its args). Logging the id and name just before the create call leaves the offending source as the last line in the log when obs_source_create faults. Input::Create is infrequent, so the extra log is cheap.

Companion to streamlabs/obs-studio#735.

🤖 Generated with Claude Code

Records the source id (after the _vN suffix) before obs_source_create, so a crash during creation leaves the offending source as the last line in the log. Input::Create is infrequent, so the INFO log is cheap.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional logging in osn::Input::Create to help identify which OBS input source ID was being created immediately before calling obs_source_create, improving crash forensics when source creation faults.

Changes:

  • Log the resolved input sourceId (after any _vN version suffix) immediately before obs_source_create.
  • Add a short explanatory comment indicating the log is intentionally placed before the create call.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread obs-studio-server/source/osn-input.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants