obsproject / obsproject/obs-studio

os_process_pipe_create with flag "r" fails on macOS

Open
#12,141 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 15

Other OS

No response

OBS Studio Version

31.0.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

none

OBS Studio Crash Log URL

No response

Expected Behavior

os_pipe_create_process should be return the pipe of subprocess.

Current Behavior

os_pipe_create_process fails and return NULL.

Steps to Reproduce
  1. call os_pipe_create_process with flag = "r"
    Image
  2. check the return value of posix_spawn
    Image
  3. it returns 9 (BAD FD)...
  4. If change flag to "w", everything works fine.
    Image
Anything else we should know?

No response

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 at the os_pipe_create_process entry point and reproduce the call on macOS 15 with flag "r". Compare its posix_spawn result with the working "w" case; done means the "r" call returns the subprocess pipe instead of NULL while preserving the existing behavior for "w".

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.