When ending a stream, OBS Studio gets stuck on "Stopping Recording..." and "Stopping Streaming"

When I stream, everything goes completely fine. But when it's time to end the stream and I press "Stop Recording", the button hangs on "Stopping Recording" and never ends. I've tried leaving it open for hours in case it sorts itself out, but it never does. When I press "Stop Streaming", it also hangs on "Stopping Streaming" but it will stop properly if I click the button again.

The stream looks totally fine and the MKV recording is always recoverable and seems to have gone great until it's time to end. I always have to force-close OBS though and it's really strange.

I've streamed for years without this issue but it started about a month ago and has happened every stream since (3+ times a week). I can't think of any major hardware changes that have happened recently. Here's some quick details:

* Happens every time I stream + record
* Happens in Safe Mode with no plugins
* Happens on the latest version of OBS Studio and the previous version as well (it did NOT start after an OBS update)
* If I only local record for several hours with no live streaming, it does not happen
* When I ran a test-stream to Twitch with the "Enable Bandwidth Test Mode" option, it did NOT happen
* I tried freeing up more space on the recording drive and tried recording to a different drive altogether and it still happens

I left Memtest running overnight to check my RAM and found 0 errors. I'm very confused.
 

Attachments

  • 2024-08-28 19-23-17.txt
    37.6 KB · Views: 25

rockbottom

Active Member
That usually happens when things get overloaded but that doesn't appear to be the case here. Gen 13 & 14 have been prone to stability issues/failure so testing the CPU might be a good idea.

There's some errors in there & Application Audio is still Beta or a plugin could be wonky. Create a new Profile with just (1) Scene/Source & see if things improve.
 

PaganLinuxGeek

New Member
Any updates or changes? I've started seeing this after increasing my recording/streaming resolution and bitrate. The system is an i7-11700k with 32GB (3600) RAM, Nvidia 4060 GPU, running on NVME.
 
Sorry for the long disappearance! Life has been hectic and I haven't been streaming much.
I haven't nailed down what's causing this yet. Trying to reproduce it without actually live-streaming to Twitch is really inconsistent. It still happens every time I stream though. The fact that it usually DOESN'T happen when I only local record or when I turn on "Enable Bandwidth Test Mode" means it's a huge PITA to actually troubleshoot. I have to actually go live and do a real stream with things changed.
Here's a log where I tried CPU encoding instead of NVENC and still got the freeze.

I still need to try a fresh profile but haven't set that all up yet.
 

Attachments

  • 2024-09-05 19-24-00cpuencoding.txt
    39.3 KB · Views: 5
Here's my log from last night where I played a different game, didn't use Application Audio Capture, and deleted and replaced my "Chat Window" scene with a Browser Source instead of a Window Capture. I thought my old chat display might have been causing it because it's Java-based but no success yet.
 

Attachments

  • 2024-11-05 15-35-51.txt
    40.5 KB · Views: 13

rockbottom

Active Member
Some issues, there's probably more, still looking at the log.

Move Transtion plugin is stale.

Scenes are messy, some contain multiple, Game, Window or Display captures.

You're using Global & Source audio

Profile might be bugged....
 
The issue happens with all plugins disabled.
Is using multiple window captures bad? I never knew that. They're for capturing Twitch chat + whenever I want to show a diagram on-screen (explaining raid mechanics or quickly showing a picture shared in chat). What should I do instead?
For global and source audio, I mute one and use the other depending on the situation.
 
Possible big breakthrough last night. Using a fresh Profile + Scene Collection in testing seemed fine, so I've been deleting and readding sources to my main Profile and Scene Collection to experiment. I completely deleted and re-added my Webcam as a source and yesterday's stream had no issues! Will keep testing.
My Webcam is a Logitech c922 Pro if that matters.
 
Another stream completed with no issues! I guess it was just a bugged source? Log attached if it helps anyone else in future. Thank you all for the help!
 

Attachments

  • 2024-11-13 15-10-57.txt
    54.6 KB · Views: 7

rockbottom

Active Member
It can be better, there's a touch of rendering lag. It may or may not be related to the captions.

These SE/Java Script errors waste resources
15:11:02.709: [obs-browser: 'Browser - Alert Box'] Error: Uncaught (in promise) Something went wrong. (https://streamlabs.com/mixed/assets/widgets/js/alertbox.js?id=2959cc4ff1d037af9879:2)

This is the 4 hour stream, the Scene in play & several others still need housekeeping.
15:19:09.366: ==== Streaming Start ===============================================
15:24:27.228: User switched to scene 'Default (Webcam)'

15:11:00.483: - scene 'Default (Webcam)':

15:11:00.483: - source: 'Image - Background' (image_source)
15:11:00.483: - source: 'Window Capture - Fontificator' (window_capture)
15:11:00.483: - source: 'Webcam' (scene)
15:11:00.483: - source: 'Game Capture' (game_capture)
15:11:00.483: - filter: 'Color Correction' (color_filter_v2)
15:11:00.483: - source: 'Video Capture Device - Elgato' (dshow_input)
15:11:00.483: - monitoring: monitor and output
15:11:00.483: - source: 'Image - Chibi Nero' (image_source)
15:11:00.483: - source: 'InputOverlay' (input-overlay)
15:11:00.483: - source: 'Bluesky' (group)
15:11:00.483: - source: 'Image - Bluesky' (image_source)
15:11:00.483: - source: 'Text - Bluesky' (text_gdiplus)
15:11:00.483: - source: 'Text' (group)
15:11:00.483: - source: 'Text - Spoilers (FF14)' (text_gdiplus)
15:11:00.483: - source: 'Text - Spoilers (Don't Care)' (text_gdiplus)
15:11:00.483: - source: 'Text - Spoilers (Played Before)' (text_gdiplus)
15:11:00.483: - source: 'Text - Welcome' (text_gdiplus)
15:11:00.483: - source: 'Text - Spoilers' (text_gdiplus)
15:11:00.483: - source: 'Text - Spoilers (Chat)' (text_gdiplus)
15:11:00.483: - source: 'Text - Epilepsy' (text_gdiplus)
15:11:00.483: - source: 'Text - Music' (text_gdiplus)
15:11:00.483: - source: 'Text - Guideless' (text_gdiplus)
15:11:00.483: - source: 'Text - Misc.' (text_gdiplus)
15:11:00.483: - source: 'Chat Blocker Group' (group)
15:11:00.483: - source: 'Image - King Photo' (image_source)
15:11:00.483: - source: 'Text - No Mic' (text_gdiplus)
15:11:00.483: - source: 'Alerts' (scene)
15:11:00.483: - source: 'Application Audio Capture (BETA)' (wasapi_process_output_capture)
15:11:00.483: - source: 'Image - Avatar' (image_source)

19:41:28.173: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 21 (0.0%)
 
Not sure what to do about that javascript error! It's just the Streamlabs alert box with the URL they've given me.


What specifically is wrong with the Default (Webcam) scene? The Game Capture source is showing the game and the Window Capture source is showing my Twitch chat.
 

rockbottom

Active Member
Having multiple Display, Game or Window captures in the same Scene can cause interference & may be contributing to your rendering lag. SE/Java Script error, that can be wasting resources so best to fix or eliminate them.
 
Top