Question / Help Systemwide freezes while using OBS Studio

Calungor

New Member
Hi there,

while having OBS open (I don't even need to start the stream it's enough to have the program running) I experience wierd systemwide freezes. These freezes last for about 1 or 2 seconds and feel like lags, except that virtually everything running stops for a moment. Not only the game but my entire system. Imagine you're pressing the pause button on a video. That's what happens to my computer for a short time. Then everything switches back to normal as if somebody suddenly pressed "play" again. There seems to be no rule to when these freezes occur. Sometimes I have one or two in 4 hours. Sometimes it's so bad it renders my stream unenjoyable.
Initially I thought that my cpu was too weak to use obs with taxing games properly but I got suspicious when I played some simple point and click adventures and it happened there as well. As a reference I used "Heroes & Generals" for my logfile, where i have an average cpu usage of about 20%.
The Game started at 15:55 (3:55pm) and this freeze thingy happened once around 16:22 (4:22pm) (Note: those freezes don't show in this or any other logfile at the time they are happening).
I experience this issue when there is nothing else but the game and OBS open. For this logfile I had everything I normaly use running including TS3, a webcam, seperate Music and a few browsertabs. Everything run as administrator. Power saving features are disabled.
Final Note: This does not happen at any other time when im NOT using OBS. Taxing games like Rainbow Six Siege or Witcher 3 run smoothely without any problem.
Logfile: https://gist.github.com/ad395f2bef1589315ab9753988865152
 
Last edited:

Sapiens

Forum Moderator
If your entire system is freezing then you have a system issue to troubleshoot, not an OBS issue.
 

Calungor

New Member
Well in only occurs while working with obs so i'm at a total loss here.
Nevertheless i had my Ram testet by MemTest, Furmark for GPU and CPU with prime95. I even went as far as having Furmark and prime95 running simultaneously for a while. After that i tested my harddrives for malfunctions with a S.M.A.R.T test.
None of the test utilities produced any indications for a system malfunction.
If anyone has an idea....
 
@Sapiens is quite correct, if you had a system freeze it is most likely a hardware issue/IDE conflict or something of that nature. If not hardware then it could be audio drivers, resident graphic drivers, even OS updates that are outdated and remain on the system, creating a conflict with more recent OS updates.

You may also have a heat issue, though with Prime95 it should have most definitely shut your PC down as a result of an overheating CPU, FurMark is not the best utility to use for your GPU, it does not provide any real-world use applicable statistics, just cooks your GPU with its torture test. Use a standard benchmarking tool in loop such as Heaven, Valley or similar until your GPU temps stop rising as it will give you a good real-world scenario of temps to expect in-game.

As for your logfile:
03:18:50.777: Output 'adv_stream': Total encoded frames: 202286
03:18:50.777: Output 'adv_stream': Total drawn frames: 202286
03:18:50.777: Output 'adv_stream': Number of skipped frames due to encoding lag: 13 (0.0%)
03:18:50.777: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 44 (0.0%)
03:18:50.777: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 83 (0.0%)

Your system is struggling a tad though not much, if you don't already capping your fps will solve the encoder and rendering lag as it will reduce CPU & GPU resource usage. If you do, then perhaps lower in-game settings a slight amount. The amount of encoding and rendering lag is really negligible to a degree, though best to not have any at all.
Your internet connection is not sufficient with your current OBS Studio stream settings, this in particular you don't want to have any at all as it affects your viewers as well as you, reduce your bitrate by 100-150 or so and it should clear it up, if not then drop it incrementally by 50 after until you never see the insufficient bandwidth/connection stall line in your logfile.
 

Calungor

New Member
@BornDownUnder I did a complete clean installation of Win 10 as well just to be sure that it's not a driver or some kind of lingering software issue. The only thing that I can think of is that somehow my audio device ( yamaha steinberg UR22 with asio driver) is causing some kind of trouble. It works flawlessly with games, DAWS (semiprofessional audio recording and editing) or other programs though. I remember that i had an audio problem with it around 1.5 years ago but it disappeared after upgrading to win10.

I'll benchmark my gpu with one of the utilities you mentioned just to be sure.
I monitored the hardware temperature while streaming for several hours. It settled at okayish 80°C for my gpu and around 55°C cpu.
FPS are capped at 30 by obs. I'll try to reduce the graphics a bit more, but to be honest pretty much everything is already either disabled or at a low setting.

The connection issue is interesting, I'll have a look at it. I used the estimator that Twitch provides to set my bitrate so I never gave it a second thought.
 
I hope you manage to figure out the issue you are having with your system freezing on you, it doesn't sound good and most of us tinkerers have been there.
 

Calungor

New Member
Sooo, it looks like it actually was caused by my usb audiointerface. For the sake of testing it I replaced it with a 40 bucks Behringer USB audiointerface with ASIO4ALL drivers. What is there to say, the freezes were gone. I did a really long testrun yesterday and had exactly 0 freezes. On the other hand after a while white noise appeared several times on the left mono track of my headphones. Only replugging the device helped.

While unable to exactly pinpoint the cause of the problem here is my best guess for anyone with a similar problem:

Something eventually causes the ASIO drivers/devices to partly collapse leading to problems. I haven't found an audiointerface in the configuration that i need for my system that doesn't utilize ASIO so i can't be 100% sure.

A quick google search revealed several streamers with the same 2 devices, so it might be a very specific problem of a hardware and software combination that affects me.
 
Great to hear you resolved your issue, sorry to hear you have static interference with your new setup. Audio components can be a real pita to troubleshoot.

The best thing to note is you managed to pick it up before it potentially wreaked havoc during non-gaming operation of your PC.
 
Top