obsproject / obsproject/obs-studio

macos Audio Capture Device crash steps 100%.

Open
#11,240 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

macOS 14

Other OS

No response

OBS Studio Version

Other

OBS Studio Version (Other)

30.2.0

OBS Studio Log URL

https://obsproject.com/logs/fWlmFJVzSWpVtuBl

OBS Studio Crash Log URL

No response

Expected Behavior

not crash

Current Behavior

https://github.com/user-attachments/assets/91cc214a-05f6-41de-aaea-d3e8306001bb

Steps to Reproduce
  1. add mac audio capture source
  2. close propeties view
  3. stop obs share in macos top menu
  4. switch other device in obs propteis
  5. crashed
Anything else we should know?

Snipaste_2024-09-05_11-03-29

crash reason:

  1. line 2167: view->visUpdateCb(obj, view->settings); , this will refresh ui, and delte the old ui properties.
  2. line 2170, read the have been deleted properties, so crash

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the macOS Audio Capture source and reproduce the crash using the listed five steps. Inspect the code around lines 2167 and 2170, especially the visUpdateCb call and subsequent settings access. Done means switching devices after stopping macOS sharing no longer crashes OBS.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.