obsproject / obsproject/obs-studio

Large memory leak with RTMP source and dest YouTube

Open
#7,386 16 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

Other

Other OS

Linux Mint 21

OBS Studio Version

Other

OBS Studio Version (Other)

Master_Sep_12_2022 + PR #7358

OBS Studio Log URL

https://obsproject.com/logs/bG01PvqZMrsZrH6K

OBS Studio Crash Log URL

No response

Expected Behavior

Stable memory consumption

Current Behavior

Over about 20 hours memory usage went from 100MB to 900MB. Input was RTMP stream, output was to YouTube (livestream), and recording to files (split every 24 hours).

See here for Heaptrack file (550MB): https://www.etheli.com/d/obs/heaptrack.obs.1330493.zst

Here is consumed-memory graph from that Heaptrack file

heaptrack obs 1330493_consumedGraph

Steps to Reproduce

Run OBS as per above

Anything else we should know?

I was running a build I compiled from GitHub source 'master' as of Sep_12_2022 with PR #7358 applied. I've seen the same behavior when running release version 28.0.1

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 provided OBS log and 550MB Heaptrack capture, then review the RTMP source, YouTube output, recording configuration, and PR #7358 context. Done means reproducing the long-running memory growth, identifying the responsible subsystem, and demonstrating stable memory use with the reported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.