Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream stopped with error -3821 ("Stream was stopped by the system") #11864

Closed
gtoto007 opened this issue Feb 14, 2025 · 4 comments
Closed

Stream stopped with error -3821 ("Stream was stopped by the system") #11864

gtoto007 opened this issue Feb 14, 2025 · 4 comments

Comments

@gtoto007
Copy link

Operating System Info

macOS 15

Other OS

No response

OBS Studio Version

31.0.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://drive.google.com/file/d/1TRQm7IGW-PNiK6VsIM_sVruTINr0OLZr/view?usp=sharing

OBS Studio Crash Log URL

https://drive.google.com/file/d/1TRQm7IGW-PNiK6VsIM_sVruTINr0OLZr/view?usp=sharing

Expected Behavior

Recorded sessions should be saved correctly when I click on Stop Recording.

Current Behavior

Recorded sessions randomly become corrupted after 10–15 minutes.

....
16:19:34.169: [CoreAudio AAC: 'Track1']: settings:
16:19:34.169: 	mode:          AAC
16:19:34.169: 	bitrate:       160
16:19:34.169: 	sample rate:   44100
16:19:34.169: 	cbr:           on
16:19:34.169: 	output buffer: 1536
16:19:34.230: ==== Recording Start ===============================================
16:19:34.230: [ffmpeg muxer: 'adv_file_output'] Writing file '/Users/r0xst4t10n/Movies/2025-02-13 16-19-34.mkv'...
16:40:10.300: [ mac-screencapture ]: Stream stopped with error -3821 ("Stream was stopped by the system")
16:47:32.635: [ffmpeg muxer: 'adv_file_output'] Output of file '/Users/r0xst4t10n/Movies/2025-02-13 16-19-34.mkv' stopped

Steps to Reproduce

•	At the start of the session, I had 15GB of free space.
•	The recorded file was less than 1GB, meaning there was sufficient storage available.
•	However, the issue completely disappeared after I freed up an additional 100GB of disk space.

Anything else we should know?

Possible Cause:
It seems that despite having enough space for the recording, the system might require significantly more free disk space to maintain stable recording performance. The issue could be related to macOS system constraints, temporary file storage, or how OBS (or the recording software) handles disk usage.

@PatTheMav
Copy link
Member

The SCStreamErrorSystemStoppedStream indeed means that it was macOS that canceled the stream by itself and we heard about ScreenCaptureKit/ReplayKit bailing out early if there is not enough free cache space on the main drive.

To our knowledge there is nothing for us to do about this, as it's functionality provided and controlled by the operating system.

@PatTheMav
Copy link
Member

One more thought: If you're willing, you are welcome to add a suggestion about changing the "low disk space" detection on macOS to require at least 50GB available space on the main drive if screen capture is active to the Ideas And Suggestions site.

@gtoto007
Copy link
Author

gtoto007 commented Feb 14, 2025

@PatTheMav Thank you for you quickly reply. I've just question. How does the "low disk space detection" currently work? I didn't notice any warning about this

@PatTheMav
Copy link
Member

@PatTheMav Thank you for you quickly reply. I've just question. How does the "low disk space detection" currently work? I didn't notice any warning about this

It only kicks in for recordings or with an active replay buffer (so right now it would notify you during a stream), and right now it's triggered when there's just 50MB of disk space left, an almost comically low value in my opinion, but that's the current state of the code.

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

No branches or pull requests

2 participants