Question / Help OBS studio crashes on loading

alexmann97

New Member
Hi, I've been using classic OBS and recently decided to take a look at OBS Studio. I installed the latest version from the website but as soon as I try and open the program it crashes with the error "Failed to initialize video: Invalid parameters".

I've tried running as admin, and I've checked dxdiag and DirectX is installed and supported on all my monitors. The latest log file is below, I'd appreciate any ideas because I've not found much from google:

05:57:19.354: CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
05:57:19.354: CPU Speed: 3400MHz
05:57:19.354: Physical Cores: 4, Logical Cores: 8
05:57:19.354: Physical Memory: 16333MB Total, 1144MB Free
05:57:19.354: Windows Version: 6.3 Build 9600 (revision: 17415; 64-bit)
05:57:19.355: Running as administrator: true
05:57:19.355: Aero is Enabled (Aero is always on for windows 8 and above)
05:57:19.355: Portable mode: false
05:57:19.364: OBS 17.0.0 (64bit, windows)
05:57:19.364: ---------------------------------
05:57:19.365: ---------------------------------
05:57:19.365: audio settings reset:
05:57:19.365: samples per sec: 44100
05:57:19.365: speakers: 2
05:57:19.365: Failed to initialize obs video (-3) with graphics_module='libobs-d3d11.dll', retrying with graphics_module='libobs-opengl.dll'
05:57:19.365: Failed to initialize video: Invalid parameters
05:57:20.720: Freeing OBS context data
05:57:20.722: == Profiler Results =============================
05:57:20.722: run_program_init: 1422.84 ms
05:57:20.722: ┣OBSApp::AppInit: 1.402 ms
05:57:20.722: ┃ ┗OBSApp::InitLocale: 0.844 ms
05:57:20.722: ┗OBSApp::OBSInit: 35.398 ms
05:57:20.722: ┣obs_startup: 0.906 ms
05:57:20.722: ┗OBSBasic::OBSInit: 0.539 ms
05:57:20.722: ┣OBSBasic::InitBasicConfig: 0.289 ms
05:57:20.722: ┣OBSBasic::ResetAudio: 0.183 ms
05:57:20.722: ┗OBSBasic::ResetVideo: 0.028 ms
05:57:20.722: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.005 ms, max=0.247 ms, 99th percentile=0.247 ms, 100% below 25 ms
05:57:20.722: audio_thread(Audio): min=0.008 ms, median=0.011 ms, max=0.018 ms, 99th percentile=0.018 ms
05:57:20.723: =================================================
05:57:20.723: == Profiler Time Between Calls ==================
05:57:20.723: obs_hotkey_thread(25 ms): min=24.893 ms, median=25.025 ms, max=25.938 ms, 98.1132% within ±2% of 25 ms (0% lower, 1.88679% higher)
05:57:20.723: =================================================
05:57:20.728: Number of memory leaks: 172
 

alexmann97

New Member
I have also tried reinstalling my graphics driver, reinstalling the software, restarting the computer and have not yet had any success.
 

alexmann97

New Member
It's at 1920x1080 on all monitors, using a GTX660 graphics card. I'm not sure what you mean by associated. I do have a log file from Classic, will add below.

21:54:42: CLR host plugin strings not found, dynamically loading 4 strings
21:54:42: CLRHost::Initialize() attempting to load and start the .NET runtime (null)
21:54:42: CLRHost::Initialize() Found version v2.0.50727 .NET runtime
21:54:42: CLRHost::Initialize() Found version v4.0.30319 .NET runtime
21:54:42: CLRHost::Initialize() attempting to use v4.0.30319 .NET runtime
21:54:42: CLRHost::LoadInteropLibrary() load the assembly plugins\CLRHostPlugin\CLRHost.Interop.dll
21:54:42: CLRHost::LoadPlugins() attempting to load the plugin assembly CLRBrowserSourcePlugin
21:54:42: CLRHost:: Could not find/load browser settings at location C:\Users\Alex\AppData\Roaming\OBS\pluginData\browser.json
21:54:42: CLRHost:: Exception: System.IO.FileNotFoundException: Could not find file 'C:\Users\Alex\AppData\Roaming\OBS\pluginData\browser.json'.
21:54:42: File name: 'C:\Users\Alex\AppData\Roaming\OBS\pluginData\browser.json'
21:54:42: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
21:54:42: at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
21:54:42: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
21:54:42: at CLRBrowserSourcePlugin.Shared.BrowserSettings.Reload()
21:54:42: CLRHost::LoadPlugins() successfully added CLR plugin [Type: CLRBrowserSourcePlugin.CLRBrowserSourcePlugin, Name: CLR Browser Source Plugin]
21:54:45: Open Broadcaster Software v0.659b - 64bit ( ^ω^)
21:54:45: -------------------------------
21:54:45: CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
21:54:45: CPU Speed: 3410MHz
21:54:45: Physical Memory: 16333MB Total, 6534MB Free
21:54:45: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
21:54:45: monitor 1: pos={1920, 0}, size={1920, 1080}
21:54:45: monitor 2: pos={-1920, 0}, size={1920, 1080}
21:54:45: monitor 3: pos={0, 0}, size={1920, 1080}
21:54:45: Windows Version: 6.3 Build 9600 (revision 17415)
21:54:45: Aero is Enabled
21:54:45: -------------------------------
21:54:45: OBS Modules:
21:54:45: Base Address Module
21:54:45: 000000001A820000 OBS.exe
21:54:45: 00000000A0EF0000 OBSApi.dll
21:54:45: 00000000A9CB0000 CLRHostPlugin.dll
21:54:45: 00000000A8840000 DShowPlugin.dll
21:54:45: 00000000A2250000 GraphicsCapture.dll
21:54:45: 00000000AA690000 NoiseGate.dll
21:54:45: 00000000A62B0000 PSVPlugin.dll
21:54:45: 00000000A2220000 scenesw.dll
21:54:45: ------------------------------------------
21:54:45: Adapter 1
21:54:45: Video Adapter: NVIDIA GeForce GTX 660
21:54:45: Video Adapter Dedicated Video Memory: 2051510272
21:54:45: Video Adapter Shared System Memory: 4268357632
21:54:45: Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
21:54:45: Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
21:54:45: Video Adapter Output 3: pos={-1920, 0}, size={1920, 1080}, attached=true
21:54:45: =====Stream Start: 2017-01-16, 21:54:45===============================================
21:54:45: Multithreaded optimizations: On
21:54:45: Base resolution: 1920x1080
21:54:45: Output resolution: 1920x1080
21:54:45: ------------------------------------------
21:54:45: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
21:54:45: ------------------------------------------
21:54:45: Audio Format: 44100 Hz
21:54:45: ------------------------------------------
21:54:45: Audio Channels: 2 Ch
21:54:45: Playback device {0.0.0.00000000}.{e7ce5d7d-be15-4157-82d1-df7cfd178518}
21:54:45: ------------------------------------------
21:54:45: Using desktop audio input: Speakers (ASUS Xonar DGX Audio Device)
21:54:45: Global Audio time adjust: 0
21:54:45: ------------------------------------------
21:54:45: Using auxilary audio input: Microphone (HD Pro Webcam C920)
21:54:45: Mic time offset: 0
21:54:45: ------------------------------------------
21:54:45: Audio Encoding: MP3
21:54:45: bitrate: 128
21:54:45: ------------------------------------------
21:54:45: device: Logitech HD Pro Webcam C920,
21:54:45: device id \\?\usb#vid_046d&pid_082d&mi_00#7&2e29801f&3&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
21:54:45: chosen type: I420, usingFourCC: false, res: 320x240 - 320x240, frameIntervals: 333333-2000000
21:54:45: use buffering: false - 0, fourCC: 'I420'
21:54:45: audio device: Disable,
21:54:45: audio device id Disabled,
21:54:45: audio time offset 0,
21:54:45:
21:54:45: Using directshow input
21:54:45: Using graphics capture
21:54:45: Using graphics capture
21:54:45: Scene buffering time set to 700
21:54:45: ------------------------------------------
21:54:45: Video Encoding: x264
21:54:45: fps: 30
21:54:45: width: 1920, height: 1080
21:54:45: preset: veryfast
21:54:45: profile: main
21:54:45: keyint: 60
21:54:45: CBR: yes
21:54:45: CFR: yes
21:54:45: max bitrate: 3500
21:54:45: buffer size: 3500
21:54:45: ------------------------------------------
21:54:46: Audio timestamp for device 'Microphone (HD Pro Webcam C920)' was behind target timestamp by 120
21:54:47: Audio timestamp for device 'Microphone (HD Pro Webcam C920)' was behind target timestamp by 100
21:54:49: Total frames encoded: 61, total frames duplicated: 20 (32.79%)
21:54:49: Total frames rendered: 76, number of late frames: 5 (6.58%) (it's okay for some frames to be late)
21:54:49:
21:54:49: Profiler time results:
21:54:49:
21:54:49: ==============================================================
21:54:49: video thread frame - [100%] [avg time: 9.821 ms] [children: 51.9%] [unaccounted: 48.1%]
21:54:49: | scene->Preprocess - [1.46%] [avg time: 0.143 ms]
21:54:49: | GPU download and conversion - [50.4%] [avg time: 4.952 ms] [children: 1.95%] [unaccounted: 48.5%]
21:54:49: | | flush - [1.65%] [avg time: 0.162 ms]
21:54:49: | | CopyResource - [0.275%] [avg time: 0.027 ms]
21:54:49: | | conversion to 4:2:0 - [0.0305%] [avg time: 0.003 ms]
21:54:49: Convert444Threads - [100%] [avg time: 1.256 ms] [children: 99.7%] [unaccounted: 0.318%]
21:54:49: | Convert444toNV12 - [99.7%] [avg time: 1.252 ms]
21:54:49: encoder thread frame - [100%] [avg time: 4.125 ms] [children: 0.0727%] [unaccounted: 99.9%]
21:54:49: | sending stuff out - [0.0727%] [avg time: 0.003 ms]
21:54:49: ==============================================================
21:54:49:
21:54:49:
21:54:49: Profiler CPU results:
21:54:49:
21:54:49: ==============================================================
21:54:49: video thread frame - [cpu time: avg 0.411 ms, total 31.25 ms] [avg calls per frame: 1]
21:54:49: | scene->Preprocess - [cpu time: avg 0.205 ms, total 15.625 ms] [avg calls per frame: 1]
21:54:49: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:54:49: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:54:49: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:54:49: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:54:49: Convert444Threads - [cpu time: avg 0.6 ms, total 62.5 ms] [avg calls per frame: 2]
21:54:49: | Convert444toNV12 - [cpu time: avg 0.6 ms, total 62.5 ms] [avg calls per frame: 2]
21:54:49: encoder thread frame - [cpu time: avg 2.305 ms, total 140.625 ms] [avg calls per frame: 1]
21:54:49: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:54:49: ==============================================================
21:54:49:
21:54:49: =====Stream End: 2017-01-16, 21:54:49=================================================
21:54:53: CLR host plugin instance deleted; removing dynamically loaded localization strings
21:54:53: Terminating 0x2844


Last game capture log:
2017-01-14, 11:47:54: we're booting up:
11:47:54: CaptureThread: attached to process Overwatch.exe
11:47:54: DXGI Present
11:47:54: (half life scientist) everything.. seems to be in order
11:47:54: DXGI: Found D3D 11
11:47:54: setting up d3d11 data
11:47:54: ---------------------- Cleared D3D11 Capture ----------------------
11:47:54: found dxgi format (dx11) of: 28, size: {1920, 1080}, multisampled: false
11:47:54: DoD3D11Hook: success
11:47:54: successfully capturing d3d11 frames via GPU
11:48:44: stop requested, terminating d3d11 capture
11:48:44: ---------------------- Cleared D3D11 Capture ----------------------
 

Suslik V

Active Member
32 bit exe has same result for you? If yes, then you need to check how many video adapters you have installed.
 

alexmann97

New Member
Portable mode makes no difference, Anti-Virus and firewall and anything else that may cause an issue has been disabled, Nothing is overclocked. I have also tried every display individually, still not working. Is there a debugger or something that I can run to see what's causing this?
 

Suslik V

Active Member
Sure, you miss something.
  1. Any chance to make clear install of video driver (DDU), OS (maybe to other drive if you have any)?
  2. Check the logs from your security software (even if you think you disable it).
  3. Is portable mode of the OBS Studio was made of v17.0.2 and placed to different folder, when you performed the test?
This is opensource code. If you wish - you even able to modify it.
 

alexmann97

New Member
There's nothing in the logs at all, and the original install of OBS Studio was completely removed and the portable version was run from a USB stick. I used the latest version available from the download page. I will attempt to clear and reinstall my video driver from scratch later today and get back to you. I have no spare drives to install a clean OS for another month or so, so I'm hoping it doesn't come to that.
 
Top