obsproject / obsproject/obs-studio
OBS crashes with a fault in obs-outputs.dll!rtmp_stream_congestion
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
Windows 10
Other OS
No response
OBS Studio Version
27.0.1
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/ah0by4d2u5N7pdCG
OBS Studio Crash Log URL
https://obsproject.com/logs/8BNC10mu15ZnDP-z
Expected Behavior
The stream and recording should start and not crash OBS when websocket clients are connected.
Current Behavior
Shortly after starting the stream via websocket commands, OBS crashes.
Steps to Reproduce
- OBS is opened about an hour before streaming is to begin (although sometimes it is opened only shortly before starting to stream)
- Several websocket clients connect
- Streaming is started automatically via the websocket plugin
- About 15-20 seconds later OBS crashes
This crash is intermittent however and it doesn't always crash. Usually restarting OBS after the crash and starting streaming manually doesn't seem to cause the same crash.
Anything else we should know?
OBS sometimes crashes shortly after starting streaming and recording while two websocket connections are established. One of the connections is from Bitfocus Companion and the other is a custom Java application using the https://github.com/Twasi/websocket-obs-java/ library. This library is used to start streaming and it is usually shortly after this that the crash occurs.
This crash doesn't always occur, but does happen very frequently and happened in OBS Studio 27.0.0 as well as now in 27.0.1.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked OBS log and crash log, focusing on the obs-outputs.dll!rtmp_stream_congestion fault and the timing after websocket-triggered streaming starts. Reproduce with websocket clients connected while starting streaming and recording, then verify that the intermittent crash no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100