OBS Stream Crashing |60-100% of GPU (prevails after stream)| High CPU usage -> freezes/crashes stream

niknes

New Member
Hello,

I’ve been experiencing issues while streaming with OBS where my stream freezes or crashes when CPU usage spikes high. Despite extensive troubleshooting, I haven’t been able to resolve the problem and need help identifying the root cause.

I've noticed some time ago, that the GPU usage spikes after some time hits around 65-100% and stays on about 65% even after stream. (Idle after opening about 8% cpu, 17% gpu)

I know with the "source record", and with that recording multiple sources, I am using more resources than normal, but until about 2 weeks ago it has never been a big issue. No spikes, no crashes.

I thought it might be the new game I started, but I reduced the quality without much change and it started happening to other less intense games too.

I checked the OBS analyzer, I hit a Max Audio Buffer with my "Razer Kiyo Pro" (https://obsproject.com/logs/ypqcOu3y7TQEXQt5), but I've seem to have fixed that, without changing the result of this problem...

I changed the multiple game captures (https://obsproject.com/logs/jmjObivE4IuzNCKh), I made my scenes as easy as possible, I removed the "face tracker" plugin (one of the only things I can think of that I changed), made nested scenes easier, put all of my alerts and chats in as little of browser sources as possible.

There are no red nor orange reports through the OBS analyzer now (https://obsproject.com/logs/usO3jU7uBqJc0fFv), but I'm still hitting the highs of CPU (about 40%, bringing my cpu to 100% for some reason) and GPU (as I said 60-100%).

What seems to have been always weirdly high is my average time to render frame about 16.3 ms even if I have OBS open without streaming. (attached)

I left it open while I was gone, maybe this crash report can help too: https://obsproject.com/logs/3RXgrY5RylTRN5Lk


I'm at a loss here and I just want to enjoy streaming T-T

PC Specs:
CPU: Intel Core i9-10900K
GPU: NVIDIA RTX 3080
RAM: 64GB DDR4

I also use Audio Monitor and Move source

I really hope you can help me and I appreciate every idea or help I can get.

Thank you in advance,
NikNes
 

Attachments

  • Screenshot 2024-12-18 235947.png
    Screenshot 2024-12-18 235947.png
    18.9 KB · Views: 5
  • Screenshot 2024-12-19 014138.png
    Screenshot 2024-12-19 014138.png
    29.5 KB · Views: 5
  • Screenshot 2024-12-18 235958.png
    Screenshot 2024-12-18 235958.png
    6.1 KB · Views: 3
  • Screenshot 2024-12-18 235947.png
    Screenshot 2024-12-18 235947.png
    18.9 KB · Views: 5
  • Crash 2024-12-19 00-07-13.txt
    150 KB · Views: 2
  • Crash 2024-12-18 19-16-03.txt
    150 KB · Views: 2
  • Crash 2024-12-19 00-07-13.txt
    150 KB · Views: 3
  • Crash 2024-12-18 19-16-03.txt
    150 KB · Views: 5
  • Screenshot 2024-12-19 014138.png
    Screenshot 2024-12-19 014138.png
    29.5 KB · Views: 5
  • Screenshot 2024-12-18 235958.png
    Screenshot 2024-12-18 235958.png
    6.1 KB · Views: 6

rockbottom

Active Member
There's lots o slop in those logs.

Move & Source Record plugins are stale, update them & see if things improve.

16:44:38.196: [Move Transition] loaded version 2.8.0

16:44:40.371: Failed to load 'en-GB' text for module: 'source-record.dll'
16:44:40.371: [Source Record] loaded version 0.3.1
 

niknes

New Member
Hi,

I updated the plugins, the average render time seems to have gotten down a bit, but there was still a ~99% gpu spike of obs (Up to 70% gpu usage is somewhat fine, after that the frames are dropping fast xp)

Here's the log file https://obsproject.com/logs/23zw92wdOBt7V4rs
I hope there's less slop now tho haha

And thanks for the help ^^
 

Attachments

  • Screenshot 2024-12-20 221851.png
    Screenshot 2024-12-20 221851.png
    6.2 KB · Views: 2

rockbottom

Active Member
Sounds like there was some improvement but the log ends before you stopped encoding. The tiny tubular task thread crashing is caused by a plugin. Fix the resolution on this encode, maybe it's causing issues with Source Record or the encoder itself.

20:57:26.302: [ffmpeg muxer: 'Source Record'] Writing file 'D:/Videos/Raw/Streams/Games/Monitor-2024-12-20 20-57-25.mkv'...
20:57:26.461: [obs-nvenc: 'Source Record'] settings:
20:57:26.461: codec: H264
20:57:26.461: rate_control: CQP
20:57:26.461: bitrate: 0
20:57:26.461: cqp: 15
20:57:26.461: keyint: 60
20:57:26.461: preset: p6
20:57:26.461: tuning: hq
20:57:26.461: multipass: qres
20:57:26.461: profile: high
20:57:26.461: width: 1924
20:57:26.461: height: 1082
20:57:26.461: b-frames: 2
20:57:26.461: lookahead: true
20:57:26.461: psycho_aq: true
20:57:26.461:
20:57:27.333: ---------------------------------
20:57:27.334: [FFmpeg aac encoder: 'Source Record'] bitrate: 128, channels: 2, channel_layout: stereo

 

rockbottom

Active Member
20:43:13.066: Game Bar: On > Off
20:43:13.066: Game DVR: On > Off

This plugin is not installed
0:43:19.106: - source: 'Sebi' (image_source)
20:43:19.106: - filter: 'Scale To Sound' (scale_to_sound)
20:43:19.106: - filter: 'Scale To Sound 2' (scale_to_sound)

Bad Scene, there may be more....
20:43:19.106: - scene 'Games':
20:43:19.106: - source: 'Game monitor' (group)
20:43:19.106: - filter: 'Source Record' (source_record_filter)
20:43:19.106: - source: 'League2' (window_capture)
20:43:19.106: - filter: 'Source Record' (source_record_filter)
20:43:19.106: - source: 'any foreground' (game_capture)
20:43:19.106: - filter: 'Source Record' (source_record_filter)
20:43:19.106: - source: 'clip studio' (window_capture)
20:43:19.106: - source: 'Opera' (window_capture)
20:43:19.106: - filter: 'Source Record' (source_record_filter)

20:43:19.883: Failed to open file 'D:/# Storage/Preparation/Camera/cam3.png': No such file or directory
20:43:19.884: WIC: Failed to create IWICBitmapDecoder from file: D:/# Storage/Preparation/Camera/cam3.png
20:43:19.884: gs_image_file_init_internal: Failed to load file 'D:/# Storage/Preparation/Camera/cam3.png'
20:43:19.886: NV12 texture support enabled
20:43:19.886: P010 texture support not available
20:43:20.005: NV12 texture support enabled
20:43:20.005: P010 texture support not available
20:43:20.008: NV12 texture support enabled
20:43:20.008: P010 texture support not available
20:43:20.011: NV12 texture support enabled
20:43:20.011: P010 texture support not available
20:43:20.016: Failed to open file 'C:/Users/User/Downloads/black-rectangle.png': No such file or directory
20:43:20.016: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/black-rectangle.png
20:43:20.016: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/black-rectangle.png'
20:43:20.017: Failed to open file 'C:/Users/User/Downloads/black-rectangle2.png': No such file or directory
20:43:20.017: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/black-rectangle2.png
20:43:20.017: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/black-rectangle2.png'
20:43:20.017: Failed to open file 'C:/Users/User/Downloads/rounded-rectangle.png': No such file or directory
20:43:20.017: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/rounded-rectangle.png
20:43:20.017: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/rounded-rectangle.png'
20:43:20.017: Failed to open file 'D:/# Storage/Preparation/Camera/cam3.png': No such file or directory
20:43:20.017: WIC: Failed to create IWICBitmapDecoder from file: D:/# Storage/Preparation/Camera/cam3.png
20:43:20.017: gs_image_file_init_internal: Failed to load file 'D:/# Storage/Preparation/Camera/cam3.png'
20:43:20.017: Failed to open file 'C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png': No such file or directory
20:43:20.017: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png
20:43:20.017: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png'
20:43:20.017: Failed to open file 'C:/Users/User/Downloads/black-rectangle.png': No such file or directory
20:43:20.018: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/black-rectangle.png
20:43:20.018: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/black-rectangle.png'
20:43:20.018: Failed to open file 'C:/Users/User/Downloads/black-rectangle2.png': No such file or directory
20:43:20.018: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/black-rectangle2.png
20:43:20.018: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/black-rectangle2.png'
20:43:20.018: Failed to open file 'C:/Users/User/Downloads/smoother-rounded-rectangle2.png': No such file or directory
20:43:20.018: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/smoother-rounded-rectangle2.png
20:43:20.018: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/smoother-rounded-rectangle2.png'
20:43:20.018: Failed to open file 'C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png': No such file or directory
20:43:20.018: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png
20:43:20.018: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png'
20:43:20.035: NV12 texture support enabled
20:43:20.035: P010 texture support not available
20:43:20.100: Failed to open file 'C:/Users/User/Downloads/black-rectangle.png': No such file or directory
20:43:20.100: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/black-rectangle.png
20:43:20.100: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/black-rectangle.png'
20:43:20.100: Failed to open file 'C:/Users/User/Downloads/black-rectangle2.png': No such file or directory
20:43:20.100: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/black-rectangle2.png
20:43:20.100: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/black-rectangle2.png'
20:43:20.100: Failed to open file 'C:/Users/User/Downloads/rounded-rectangle.png': No such file or directory
20:43:20.100: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/rounded-rectangle.png
20:43:20.100: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/rounded-rectangle.png'
20:43:20.123: Failed to open file 'C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png': No such file or directory
20:43:20.123: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png
20:43:20.123: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Downloads/fague-smoother-rounded-rectangle.png'
20:43:20.123: NV12 texture support enabled
20:43:20.123: P010 texture support not available
20:43:20.270: NV12 texture support enabled
20:43:20.270: P010 texture support not available
20:43:20.370: NV12 texture support enabled
20:43:20.370: P010 texture support not available
20:43:20.508: NV12 texture support enabled
20:43:20.508: P010 texture support not available

I would disable Hardware accelerated decoding for these (2) Media Sources.
20:43:20.569: input: D:/Preparation/profounder/profounder_stinger_new/Footage/WEBM with transparent background/template.webm
20:43:20.569: input_format: (null)
20:43:20.569: speed: 100
20:43:20.569: is_looping: no
20:43:20.569: is_linear_alpha: no
20:43:20.569: is_hw_decoding: yes
20:43:20.569: is_clear_on_media_end: yes
20:43:20.569: restart_on_activate: yes
20:43:20.569: close_when_inactive: no
20:43:20.569: full_decode: no
20:43:20.569: ffmpeg_options:
20:43:20.569: [Media Source 'Profile Stinger (Stinger)']: settings:
20:43:20.569: input:
20:43:20.569: input_format: (null)
20:43:20.569: speed: 100
20:43:20.569: is_looping: no
20:43:20.569: is_linear_alpha: no
20:43:20.569: is_hw_decoding: yes
20:43:20.569: is_clear_on_media_end: yes
20:43:20.569: restart_on_activate: yes
20:43:20.569: close_when_inactive: no
20:43:20.569: full_decode: no

Tons of SE, java script errors that could be wasting resources. Most appear to be browser sources, cleaning them up would be a good thing to do.
 

rockbottom

Active Member
For the encoding, all (8) encodes can be completed with the 3080. Just need to use lower presets. Or you can do some of the encodes with the iGPU to free up some headroom on your CPU.

This is a great reference, check out Table 2.
 
Last edited:
Top