OBS Studio 26.1.1 randomly crashes after a certain amount of time

Izofeu

New Member
As above, OBS Studio 26.1.1 randomly crashes with no error message after a certain amount of time. Sometimes ir crashes with an error, sometimes it just closes. Sometimes it crashes my whole pc, causing it to instantly reboot. I included a crash log from the time it crashed with an error. Crashing usually happens up to an hour. This only happens with x264 encoder. It doesn't happen with AMD GPU h.264 encoding. It didn't happen with older OBS versions (though I don't remember which one). Here is a normal (not crash) log after my obs crashed today with no error message: https://drive.google.com/file/d/1PUmsdk_UwEn2nIvCZU9wVC5thleA-9hG/view?usp=sharing (OBS crashed about half an hour later after the last line in the log).
GPU driver is newest, Windows has been updated from Windows Update as well.
Once it even crashed before I even started recording (I was running fullscreen preview though).
I've ran out of ideas on how to approach this problem.
 

Attachments

  • Crash 2021-02-02 19-58-15.txt
    150 KB · Views: 88

nanarakam

New Member
Sth like this was happening for me too, how I get around was completely removing OBS and re-installing and installing only the required plugin. That worked, at least for now. I accidentally installed 32 bit version, but keeping it that way since it is doing well. Thanks.
 

Izofeu

New Member
Sth like this was happening for me too, how I get around was completely removing OBS and re-installing and installing only the required plugin. That worked, at least for now. I accidentally installed 32 bit version, but keeping it that way since it is doing well. Thanks.
How can I export my settings (mainly scenes and sources) and import them in a new install?
 

Izofeu

New Member
Nope. I did a full uninstall, installed the 32bit version and it crashed within 3 seconds with the same error message regarding libx264-161.dll. I think I'd need to downgrade the libx264 version but I don't know how.
 

Izofeu

New Member
SFC scan didn't find any integrity violations. I downgraded OBS to 26.0.2 which uses libx264 v. 157 instead of v. 161 hoping it'll fix it but no, it still crashed. I'm running OBS as admin now, maybe this will fix it.
 

Izofeu

New Member
It cannot be hardware failure. I just performed memtest86 for almost 3 hours, showed no error. I do not have any CPU overclocks. On top of that, when I render videos in a video editor using x264, it never crashed on me. It's only OBS that crashes. I also tried disabling XMP profile on my RAM and no, it still crashes. I'll run the H.264 encoder test and see if that crashes it, maybe the problem is my elgato hd60 pro although the capture card itself works flawlessly and I've never had issues with it.
 

R1CH

Forum Admin
Developer
x264 is extensively tested and does not just randomly crash. It is built with hand-tuned assembly code which maximizes your CPU throughput. Use Prime95 as a similar level of stress testing if you want to verify your system is stable and make sure your BIOS is up to date (some Ryzen models have defective microcode).
 

Izofeu

New Member
x264 crashes indicate hardware failure. Turn off any overclocks, update your BIOS, test your RAM.
To confirm what I said earlier, I've been running OBS with x264 encoding for over an hour but I disabled my capture card. Everything works fine, and OBS did not crash. The issue has to be my capture card then. Thank you everyone for help. Thread can be locked.
 

Izofeu

New Member
Update:
I was about to send the capture card back, but I did some more testing just to be extra sure it's the capture card's fault. I found out that R1CH was right. I didn't know that AMD's CPU boost feature can impact code execution. I turned off AMD's boost feature which was on by default and the crashes disappeared completely. If anyone has this problem in the future, try turning off your CPU's boost feature.
Sorry for this, I had no idea that a stock feature which is a default manufacturer boost could cause this.
 

Lawrence_SoCal

Active Member
wait, what, .... AMD software driver code having bugs... really? ;^)
[sorry, couldn't resist. and nVidia no saint, just better at encoding offload for H.264]
 
Top