OBS Crash, Encoder Error Occurred while Streaming

modrummer

New Member
Event from log file below. Any ideas? Crash can happen randomly. Sometimes I stream the whole time without a problem, sometimes it only makes it a couple hours. Streaming on NVENC new, RTX 3070, Ryzen 3700x.

00:20:25.986: [game-capture: 'Game Capture'] Buffer count: 2, swap effect: 4
00:20:26.059: [game-capture: 'Game Capture'] d3d12 shared texture capture successful
00:20:26.071: [game-capture: 'Game Capture'] shared texture capture successful
00:23:34.065: Device Remove/Reset! Rebuilding all assets...
00:23:34.269: error: EncodePicture failed!: invalid device (4)
00:23:34.269: [NVENC encoder: 'streaming_h264'] nvenc_encode: Error encoding: Invalid argument
00:23:34.269: Error encoding with encoder 'streaming_h264'
00:23:34.269: [rtmp stream: 'adv_stream'] Encoder error, disconnecting
00:23:34.269: Output 'adv_stream': stopping
00:23:34.269: Output 'adv_stream': Total frames output: 679685
00:23:34.269: Output 'adv_stream': Total drawn frames: 679236 (679865 attempted)
00:23:34.269: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 629 (0.1%)
00:23:34.270: warning: 2 frames left in the queue on closing
00:23:34.272: ==== Streaming Stop ================================================
00:23:43.192: ==== Shutting down ==================================================
00:23:43.205: [game-capture: 'Game Capture'] capture stopped
00:23:43.587: WASAPI: Device 'Microphone (Yeti Stereo Microphone)' Terminated
00:23:43.608: WASAPI: Device 'Speakers (2- Realtek(R) Audio)' Terminated
00:23:43.633: WASAPI: Device 'Microphone (2- Realtek(R) Audio)' Terminated
00:23:43.637: All scene data cleared
00:23:43.637: ------------------------------------------------
00:23:43.802: [Scripting] Total detached callbacks: 0
00:23:43.820: Freeing OBS context data
00:23:43.840: == Profiler Results =============================
00:23:43.840: run_program_init: 3140.76 ms
00:23:43.840: ┣OBSApp::AppInit: 58.66 ms
00:23:43.840: ┃ ┗OBSApp::InitLocale: 1.547 ms
00:23:43.840: ┗OBSApp::OBSInit: 2998.51 ms
00:23:43.840: ┣obs_startup: 7.096 ms
00:23:43.840: ┗OBSBasic::OBSInit: 2778.34 ms
00:23:43.840: ┣OBSBasic::InitBasicConfig: 1.043 ms
00:23:43.840: ┣OBSBasic::ResetAudio: 0.138 ms
00:23:43.840: ┣OBSBasic::ResetVideo: 430.751 ms
00:23:43.840: ┣OBSBasic::InitOBSCallbacks: 0.005 ms
00:23:43.840: ┣OBSBasic::InitHotkeys: 0.033 ms
00:23:43.840: ┣obs_load_all_modules: 513.085 ms
00:23:43.840: ┃ ┣obs_init_module(coreaudio-encoder.dll): 5.871 ms
00:23:43.840: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.419 ms
00:23:43.840: ┃ ┣obs_init_module(enc-amf.dll): 54.107 ms
00:23:43.840: ┃ ┣obs_init_module(frontend-tools.dll): 2.969 ms
00:23:43.840: ┃ ┣obs_init_module(image-source.dll): 0.004 ms
00:23:43.840: ┃ ┣obs_init_module(obs-browser.dll): 0.35 ms
00:23:43.840: ┃ ┣obs_init_module(obs-ffmpeg.dll): 20.571 ms
00:23:43.840: ┃ ┃ ┗nvenc_check: 20.026 ms
00:23:43.840: ┃ ┣obs_init_module(obs-filters.dll): 0.019 ms
00:23:43.840: ┃ ┣obs_init_module(obs-outputs.dll): 0.349 ms
00:23:43.840: ┃ ┣obs_init_module(obs-qsv11.dll): 286.907 ms
00:23:43.840: ┃ ┣obs_init_module(obs-text.dll): 0.188 ms
00:23:43.840: ┃ ┣obs_init_module(obs-transitions.dll): 0.009 ms
00:23:43.840: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
00:23:43.840: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
00:23:43.840: ┃ ┣obs_init_module(rtmp-services.dll): 2.785 ms
00:23:43.840: ┃ ┣obs_init_module(text-freetype2.dll): 0.155 ms
00:23:43.840: ┃ ┣obs_init_module(vlc-video.dll): 0.135 ms
00:23:43.840: ┃ ┣obs_init_module(win-capture.dll): 11.467 ms
00:23:43.840: ┃ ┣obs_init_module(win-decklink.dll): 4.275 ms
00:23:43.840: ┃ ┣obs_init_module(win-dshow.dll): 6.866 ms
00:23:43.840: ┃ ┣obs_init_module(win-mf.dll): 0 ms
00:23:43.840: ┃ ┣obs_init_module(win-wasapi.dll): 0.007 ms
00:23:43.840: ┃ ┗reset_win32_symbol_paths: 2.076 ms
00:23:43.840: ┣OBSBasic::ResetOutputs: 1.327 ms
00:23:43.840: ┣OBSBasic::CreateHotkeys: 0.037 ms
00:23:43.840: ┣OBSBasic::InitService: 2.316 ms
00:23:43.840: ┣OBSBasic::InitPrimitives: 0.067 ms
00:23:43.840: ┗OBSBasic::Load: 1714.25 ms
00:23:43.841: obs_hotkey_thread(25 ms): min=0.003 ms, median=0.013 ms, max=3749.75 ms, 99th percentile=0.179 ms, 99.9899% below 25 ms
00:23:43.841: audio_thread(Audio): min=0 ms, median=0.399 ms, max=311.142 ms, 99th percentile=0.98 ms
00:23:43.841: ┗receive_audio: min=0.002 ms, median=0.297 ms, max=3.439 ms, 99th percentile=0.582 ms
00:23:43.841: ┣buffer_audio: min=0 ms, median=0.001 ms, max=0.486 ms, 99th percentile=0.003 ms
00:23:43.841: ┗do_encode: min=0.155 ms, median=0.292 ms, max=3.429 ms, 99th percentile=0.576 ms
00:23:43.841: ┗encode(avc_aac_stream): min=0.152 ms, median=0.279 ms, max=3.421 ms, 99th percentile=0.557 ms
00:23:43.841: obs_graphics_thread(33.3333 ms): min=0.037 ms, median=1.701 ms, max=3951.34 ms, 99th percentile=5.874 ms, 99.9828% below 33.333 ms
00:23:43.841: ┣tick_sources: min=0.001 ms, median=0.035 ms, max=1110.03 ms, 99th percentile=0.875 ms
00:23:43.841: ┣output_frame: min=0.032 ms, median=1.159 ms, max=319.769 ms, 99th percentile=1.864 ms
00:23:43.841: ┃ ┣gs_context(video->graphics): min=0.032 ms, median=0.822 ms, max=319.429 ms, 99th percentile=1.446 ms
00:23:43.841: ┃ ┃ ┣render_video: min=0.002 ms, median=0.625 ms, max=319.337 ms, 99th percentile=1.233 ms
00:23:43.841: ┃ ┃ ┃ ┣render_main_texture: min=0.001 ms, median=0.605 ms, max=319.314 ms, 99th percentile=1.21 ms
00:23:43.841: ┃ ┃ ┃ ┣render_convert_texture: min=0.005 ms, median=0.01 ms, max=2.383 ms, 99th percentile=0.045 ms
00:23:43.841: ┃ ┃ ┃ ┗stage_output_texture: min=0.001 ms, median=0.003 ms, max=1.309 ms, 99th percentile=0.01 ms
00:23:43.841: ┃ ┃ ┣gs_flush: min=0.002 ms, median=0.17 ms, max=187.936 ms, 99th percentile=0.408 ms
00:23:43.841: ┃ ┃ ┗download_frame: min=0 ms, median=0.002 ms, max=188.086 ms, 99th percentile=0.006 ms
00:23:43.841: ┃ ┗output_video_data: min=0.193 ms, median=0.317 ms, max=11.58 ms, 99th percentile=0.574 ms
00:23:43.841: ┗render_displays: min=0 ms, median=0.4 ms, max=1000.38 ms, 99th percentile=4.572 ms
00:23:43.841: video_thread(video): min=2.034 ms, median=2.809 ms, max=33.614 ms, 99th percentile=3.666 ms
00:23:43.841: ┗receive_video: min=0.216 ms, median=0.52 ms, max=17.248 ms, 99th percentile=0.906 ms
00:23:43.841: ┗do_encode: min=0.216 ms, median=0.519 ms, max=17.247 ms, 99th percentile=0.905 ms
00:23:43.841: ┗encode(streaming_h264): min=0.212 ms, median=0.503 ms, max=17.24 ms, 99th percentile=0.883 ms
00:23:43.841: =================================================
00:23:43.841: == Profiler Time Between Calls ==================
00:23:43.841: obs_hotkey_thread(25 ms): min=24.075 ms, median=25.023 ms, max=3774.39 ms, 97.0261% within ±2% of 25 ms (0.015319% lower, 2.95854% higher)
00:23:43.841: obs_graphics_thread(33.3333 ms): min=1.768 ms, median=33.333 ms, max=3951.38 ms, 99.9516% within ±2% of 33.333 ms (0.0255203% lower, 0.0228803% higher)
00:23:43.841: =================================================
00:23:43.967: Number of memory leaks: 0
 

R1CH

Forum Admin
Developer
00:23:34.065: Device Remove/Reset! Rebuilding all assets...

This indicates a GPU crash, usually from overclocking, overheating, faulty hardware, bad drivers, bad power, etc.
 

modrummer

New Member
00:23:34.065: Device Remove/Reset! Rebuilding all assets...

This indicates a GPU crash, usually from overclocking, overheating, faulty hardware, bad drivers, bad power, etc.

Thank you for the quick reply. Is this only for GPU? I also have mildly overclocked CPU and RAM so it would be nice to know which one is causing the error. Weird that it will sometimes run for 6 hours straight before this happens.
 
Top