OBS GPU usage randomly jumping to 75%+, lagging entire PC

meatyw

New Member
Hi, I'm currently dealing with an issue where I can be streaming normally for a while without issues then suddenly OBS's GPU usage will spike extremely high where my overall GPU usage is at 100%. It makes the entire PC lag/completely freeze until I manage to close OBS and the game I'm playing. It even bricked my PC to the point where I had to do a BIOS reset to even get into my PC. While I'm streaming without issue, OBS's GPU usage sits around 10%.

I've tried running OBS in admin mode, updating GPU drivers, switching to CPU encoding, and lowering game settings. It seems like a very odd issue because it can work fine for a while then just randomly explode. I noticed some errors in the logs but they are 20 minutes before it starts being an issue.

I've streamed for 3+ hours before the issue started and its also started after an hour, with nothing being consistent to whats happening in game when it starts.

1703614179451.png
 

Attachments

  • 2023-12-26_00-57-42 - Censored.txt
    157.1 KB · Views: 27

koala

Active Member
May be GPU overheating. This would match with the system freezing/becoming instable.
 

rockbottom

Active Member
It may not be overheating but it clearly is overloaded.
04:26:19.440: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 8373 (1.2%)

Your Scenes need to be addressed as there's multiple, Game/Window/Display captures in several of them. Only (1) per.

SE is a joke, nothing but errors, start fixing them.
 

meatyw

New Member
It may not be overheating but it clearly is overloaded.
04:26:19.440: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 8373 (1.2%)

Your Scenes need to be addressed as there's multiple, Game/Window/Display captures in several of them. Only (1) per.

SE is a joke, nothing but errors, start fixing them.
any idea how to fix the streamelements errors?
 

luiz freitas

New Member
Same problem here 2 years ago, with the 2080 / 3080 and now with the 4080, I can't use obs because of this, then the fanboys arrive saying "check the output, leave it simple, use cqp and bla bla bla"
 

AaronD

Active Member
...then the fanboys arrive saying "check the output, leave it simple, use cqp and bla bla bla"
You mean the well-experienced people who know what they're talking about?

Did you try their suggestions? If not, you don't have a valid argument. If so, say so and report the problems that you still have, with all of the information that we ask for to help you fix them.
 

KingKong77

Member
Hello,


In your log, there are some reccurent errors:
Code:
03:44:27.422: [obs-browser: 'Overlay'] Error: [Report Only] Refused to load the script 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js' because it violates the following Content Security Policy directive: "script-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
...
04:01:30.720: [obs-browser: 'Overlay'] Error: [Report Only] Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'none'".
04:01:30.720:  (https://streamelements.com/overlay/scripts/vendor.js:censored)
...

Lot of libraries are not loaded and tons of cumulated javascript errors.
Someone has pointed out this in a post about a common issue with Javascript errors.

I have been having this same issue for 2 weeks now. After banging my head against a wall I looked at the log files and saw Java Script. This is the most common language used to program alerts/overalys/animated borders/etc. Turning these off will fix your issue. I would keep them off until the issue can be resolved.

This could be a good start to find out your issue.
 

rockbottom

Active Member
There's still some errors in there, one of them is this overlay.
20:07:47.766: [obs-browser: 'Alerts'] Error: [GraphQL] One or more GraphQL errors were detected on request 01HJPE7TKEKAN1JJHZRX1Z6V0R. ActivityListContextV2Query: server error [object Object] (https://static.twitchcdn.net/assets/sunlight-overlay-b783d05330b21c2487dc.js:1)

You're using Global & Source audio, I use one or the other but not both. I never tested using both concurrently, so no idea what could be going on there.

Main monitor is at 59HZ, can't it be set @ 60?

Dial back the in game settings so your GPU isn't getting tapped out.
 
Last edited:

rockbottom

Active Member
Your audio set-up appears to be incorrect. I'll let you dig deeper.

 

meatyw

New Member
Well none of the adjustments seemed to do anything. I got to the point where OBS wouldn't even open without my computer freezing up, so I did a clean reinstall of OBS and now everything is perfect and the issue hasn't happened again. Don't know what the issue was.
 

Carlos726811

New Member
I had the exact Same issue. I managed to solve it.
I Uninstalled OBS and all the plugins. Re-installed fresh.
I have Hardware GPU Scheduling enabled.
Capped frames in Nvidia Control panels..
Now my GPU usage for OBS is now 15% when streaming....
 
Top