Bug Report OBS Using Too Much RAM

Matthew Bencomo

New Member
I tried using OBS to run a stream for the first time, however It crashed due to is using over 14 GB of RAM. I have the priority set to above normal and I have 16 GB of RAM installed on my PC. Here is the Log:

[
15:06:36.238: CPU Name: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
15:06:36.238: CPU Speed: 3504MHz
15:06:36.238: Physical Cores: 4, Logical Cores: 4
15:06:36.238: Physical Memory: 16336MB Total, 13995MB Free
15:06:36.239: Windows Version: 10.0 Build 14393 (revision: 1198; 64-bit)
15:06:36.239: Running as administrator: false
15:06:36.239: Aero is Enabled (Aero is always on for windows 8 and above)
15:06:36.239: Portable mode: false
15:06:36.247: OBS 19.0.2 (64bit, windows)
15:06:36.247: ---------------------------------
15:06:36.248: ---------------------------------
15:06:36.248: audio settings reset:
15:06:36.248: samples per sec: 44100
15:06:36.248: speakers: 2
15:06:36.249: ---------------------------------
15:06:36.249: Initializing D3D11...
15:06:36.249: Available Video Adapters:
15:06:36.252: Adapter 1: NVIDIA GeForce GTX 970
15:06:36.252: Dedicated VRAM: 4256628736
15:06:36.252: Shared VRAM: 4270026752
15:06:36.253: output 1: pos={0, 0}, size={1600, 900}, attached=true
15:06:36.257: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
15:06:36.702: D3D11 loaded successfully, feature level used: 45056
15:06:37.237: ---------------------------------
15:06:37.237: video settings reset:
15:06:37.237: base resolution: 1600x900
15:06:37.237: output resolution: 1280x720
15:06:37.237: downscale filter: Lanczos
15:06:37.237: fps: 60/1
15:06:37.237: format: NV12
15:06:37.237: Audio monitoring device:
15:06:37.237: name: Default
15:06:37.237: id: default
15:06:37.238: ---------------------------------
15:06:37.240: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
15:06:37.249: [CoreAudio encoder]: Adding CoreAudio AAC encoder
15:06:37.251: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
15:06:37.251: Failed to initialize module 'enc-amf.dll'
15:06:37.265: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
15:06:37.266: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
15:06:37.266: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
15:06:37.267: Failed to load 'en-US' text for module: 'obs-browser.dll'
15:06:37.267: [browser_source: 'Version: 1.29.0']
15:06:37.271: NVENC supported
15:06:37.336: Couldn't find VLC installation, VLC video source disabled
15:06:37.344: No blackmagic support
15:06:37.405: ---------------------------------
15:06:37.405: Loaded Modules:
15:06:37.405: win-wasapi.dll
15:06:37.405: win-mf.dll
15:06:37.405: win-dshow.dll
15:06:37.405: win-decklink.dll
15:06:37.405: win-capture.dll
15:06:37.405: vlc-video.dll
15:06:37.405: text-freetype2.dll
15:06:37.405: rtmp-services.dll
15:06:37.405: obs-x264.dll
15:06:37.405: obs-vst.dll
15:06:37.405: obs-transitions.dll
15:06:37.405: obs-text.dll
15:06:37.405: obs-qsv11.dll
15:06:37.405: obs-outputs.dll
15:06:37.405: obs-filters.dll
15:06:37.405: obs-ffmpeg.dll
15:06:37.405: obs-browser.dll
15:06:37.405: image-source.dll
15:06:37.405: frontend-tools.dll
15:06:37.405: enc-amf.dll
15:06:37.405: coreaudio-encoder.dll
15:06:37.405: ==== Startup complete ===============================================
15:06:37.411: Switched to Preview/Program mode
15:06:37.411: ------------------------------------------------
15:06:37.413: All scene data cleared
15:06:37.413: ------------------------------------------------
15:06:37.459: WASAPI: Device 'Headphones (High Definition Audio Device)' initialized
15:06:37.479: WASAPI: Device 'Microphone (High Definition Audio Device)' initialized
15:06:37.515: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
15:06:37.537: ---------------------------------
15:06:37.537: [DShow Device: 'Webcam'] settings updated:
15:06:37.537: video device: Logitech QuickCam Pro 4000
15:06:37.537: video path: \\?\usb#vid_046d&pid_08b2&mi_00#6&2b87e29e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{9b365890-165f-11d0-a195-0020afd156e4}
15:06:37.537: resolution: 320x240
15:06:37.537: fps: 30.00 (interval: 333333)
15:06:37.537: format: I420
15:06:39.696: [Media Source 'Triforce']: settings:
15:06:39.696: input: D:/linku/Documents/Desktop/Stream Scenes/Triforce GIF.gif
15:06:39.696: input_format: (null)
15:06:39.696: is_looping: yes
15:06:39.696: is_hw_decoding: yes
15:06:39.696: is_clear_on_media_end: yes
15:06:39.696: restart_on_activate: yes
15:06:39.696: close_when_inactive: no
15:06:39.710: Switched to scene 'Loading'
15:06:39.729: warning: deprecated pixel format used, make sure you did set range correctly
15:06:39.834: ------------------------------------------------
15:06:39.834: Loaded scenes:
15:06:39.834: - scene 'Streaming':
15:06:39.834: - source: 'Display Capture' (monitor_capture)
15:06:39.834: - source: 'Desktop Audio' (wasapi_output_capture)
15:06:39.834: - source: 'Game Capture' (game_capture)
15:06:39.834: - source: 'Mic/Aux' (wasapi_input_capture)
15:06:39.834: - filter: 'Gain' (gain_filter)
15:06:39.834: - filter: 'Noise Gate' (noise_gate_filter)
15:06:39.834: - source: 'Webcam' (dshow_input)
15:06:39.834: - filter: 'Sharpen' (sharpness_filter)
15:06:39.834: - filter: 'Color Correction' (color_filter)
15:06:39.834: - source: 'Triforce' (ffmpeg_source)
15:06:39.834: - filter: 'Crop/Pad' (crop_filter)
15:06:39.834: - source: 'Alerts' (browser_source)
15:06:39.834: - scene 'Loading':
15:06:39.834: - source: 'Logo' (image_source)
15:06:39.834: - source: 'Soon' (text_gdiplus)
15:06:39.834: - filter: 'Scroll' (scroll_filter)
15:06:39.834: - scene 'Standby':
15:06:39.834: - source: 'Song' (browser_source)
15:06:39.834: - source: 'Technical Difficulties' (image_source)
15:06:39.834: - filter: 'Crop/Pad' (crop_filter)
15:06:39.834: - source: 'TorbFace' (image_source)
15:06:39.834: - filter: 'Sharpen' (sharpness_filter)
15:06:39.834: - source: 'Stand By' (text_gdiplus)
15:06:39.834: - filter: 'Scroll' (scroll_filter)
15:06:39.834: - source: 'Alerts' (browser_source)
15:06:39.834: - scene 'Thanks For Watching!':
15:06:39.834: - source: 'Thanks!' (image_source)
15:06:39.834: - source: 'Text (GDI+)' (text_gdiplus)
15:06:39.834: - scene 'Game Recording':
15:06:39.834: - source: 'Desktop Audio' (wasapi_output_capture)
15:06:39.834: - source: 'Mic/Aux' (wasapi_input_capture)
15:06:39.834: - filter: 'Gain' (gain_filter)
15:06:39.834: - filter: 'Noise Gate' (noise_gate_filter)
15:06:39.834: - source: 'Game Window' (game_capture)
15:06:39.834: - source: 'Triforce' (ffmpeg_source)
15:06:39.834: - filter: 'Crop/Pad' (crop_filter)
15:06:39.834: ------------------------------------------------
15:06:58.699: ---------------------------------
15:06:58.700: [NVENC encoder: 'simple_h264_stream'] settings:
15:06:58.700: rate_control: CBR
15:06:58.700: bitrate: 2500
15:06:58.700: cqp: 0
15:06:58.700: keyint: 120
15:06:58.700: preset: default
15:06:58.700: profile: main
15:06:58.700: level: auto
15:06:58.700: width: 1280
15:06:58.700: height: 720
15:06:58.700: 2-pass: true
15:06:58.700: b-frames: 2
15:06:58.700: GPU: 0
15:06:58.700:
15:06:59.064: [CoreAudio AAC: 'simple_aac']: settings:
15:06:59.064: mode: AAC
15:06:59.064: bitrate: 160
15:06:59.064: sample rate: 44100
15:06:59.064: cbr: on
15:06:59.064: output buffer: 1536
15:06:59.064: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://live-phx.twitch.tv/app...
15:06:59.096: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I219-V (ethernet, 100 mbps)
15:07:07.324: [rtmp stream: 'simple_stream'] Connection to rtmp://live-phx.twitch.tv/app successful
15:07:07.325: ==== Streaming Start ===============================================
15:07:27.294: User switched to scene 'Standby'
15:07:27.294: warning: deprecated pixel format used, make sure you did set range correctly
15:07:37.180: User switched to scene 'Loading'
15:07:59.837: User switched to scene 'Standby'
15:08:08.596: User switched to scene 'Streaming'
15:08:14.735: User switched to scene 'Standby'
15:08:24.888: User switched to scene 'Streaming'
15:09:53.231: [game-capture: 'Game Capture'] attempting to hook process: SpaceEngineers.exe
15:09:53.233: [game-capture: 'Game Capture'] using helper (compatibility hook)
15:09:53.262: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
15:09:55.241: [game-capture: 'Game Capture'] attempting to hook process: SpaceEngineers.exe
15:09:55.378: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
15:09:55.386: [game-capture: 'Game Capture'] shared texture capture successful
15:09:59.959: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
15:10:44.080: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
]
 

Attachments

On my system, a dedicated streaming setup, a quick look at Task Manager shows OBS taking up 1GB while I stream..

Go to task manager
Click on Processes
Click on the Memory column to sort

Put up a snapshot of Task Manager showing us how much OBS64 is taking up in memory. I have a hard time believing it takes up 14GB.
 
I ran the auto config wizard and that seemed to clear things up. Sorry I couldn't get the screenshot but I ran out of memory more than once. Crashed my whole PC twice. :/ At least it is working now.
 
Well its good its working now. But when I read what you just wrote, this tells me that even with the wrong settings, OBS memory consumption is growing dynamically and without limitation to crash your system. That shouldn't happen if the software checked for overrun type of conditions or set buffer limits.
 
Back
Top