Question / Help Possible memory leak

Arxon

New Member
Ok so here is how it works and I can reproduce it everytime. Have battlefield 4 open then open OBS to stream. As soon as I hit Start Streaming my ram jumps to 96% usage and my whole computer lags out. here is the log from the stream. Going to download fraps and record it as it happens then post here if possible.

Code:
21:01:14: Open Broadcaster Software v0.584b - 64bit ( ^ω^)
21:01:14: -------------------------------
21:01:14: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
21:01:14: CPU Speed: 3300MHz
21:01:14: Physical Memory:  16281MB Total, 836MB Free
21:01:14: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
21:01:14: monitor 1: pos={0, 0}, size={1920, 1080}
21:01:14: monitor 2: pos={1920, 0}, size={1920, 1080}
21:01:14: Windows Version: 6.2 Build 9200 
21:01:14: Aero is Enabled
21:01:14: -------------------------------
21:01:14: OBS Modules:
21:01:14: Base Address     Module
21:01:14: 00000000B7AF0000 OBS.exe
21:01:14: 000000003B210000 OBSApi.dll
21:01:14: 0000000043740000 DShowPlugin.dll
21:01:14: 0000000041600000 GraphicsCapture.dll
21:01:14: 000000003FDB0000 NoiseGate.dll
21:01:14: 000000003FD90000 PSVPlugin.dll
21:01:14: ------------------------------------------
21:01:14: Adapter 1
21:01:14:   Video Adapter: AMD Radeon HD 6900 Series
21:01:14:   Video Adapter Dedicated Video Memory: 2126168064
21:01:14:   Video Adapter Shared System Memory: 4026531840
21:01:14:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
21:01:14:   Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
21:01:14: ------------------------------------------
21:01:14: Adapter 2
21:01:14:   Video Adapter: Intel(R) HD Graphics 3000
21:01:14:   Video Adapter Dedicated Video Memory: 33554432
21:01:14:   Video Adapter Shared System Memory: 1711276032
21:01:14: =====Stream Start: 2013-11-19, 21:01:14===============================================
21:01:14:   Multithreaded optimizations: On
21:01:14:   Base resolution: 1920x1080
21:01:14:   Output resolution: 1280x720
21:01:14: ------------------------------------------
21:01:14: Loading up D3D10 on AMD Radeon HD 6900 Series...
21:01:14: ------------------------------------------
21:01:14: Audio Format: 48000hz
21:01:14: Playback device Default
21:01:14: ------------------------------------------
21:01:14: Using desktop audio input: Speakers (Corsair Vengeance 1500 Headset)
21:01:14: ------------------------------------------
21:01:14: Using auxilary audio input: Microphone (Corsair Vengeance 1500 Headset)
21:01:14: ------------------------------------------
21:01:14: Audio Encoding: AAC
21:01:14:     bitrate: 128
21:01:14: Using graphics capture
21:01:14: Scene buffering time set to 700
21:01:14: ------------------------------------------
21:01:14: Video Encoding: x264
21:01:14:     fps: 30
21:01:14:     width: 1280, height: 720
21:01:14:     preset: veryfast
21:01:14:     profile: high
21:01:14:     keyint: 60
21:01:14:     CBR: yes
21:01:14:     CFR: yes
21:01:14:     max bitrate: 1000
21:01:14:     buffer size: 1000
21:01:14: ------------------------------------------
21:01:14: MMDeviceAudioSource: Frequency for device 'Speakers (Corsair Vengeance 1500 Headset)' is 352800, samples per sec is 44100
21:01:14: MMDeviceAudioSource: Frequency for device 'Microphone (Corsair Vengeance 1500 Headset)' is 352800, samples per sec is 44100
21:01:14: Bad timestamp detected, syncing audio to video time
21:01:17: Using RTMP service: Twitch / Justin.tv
21:01:17:   Server selection: rtmp://live-iad.justin.tv/app
21:01:17:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps)
21:01:17: Completed handshake with rtmp://live-iad.justin.tv/app in 489 ms.
21:01:19: Total frames encoded: 113, total frames duplicated: 4 (3.54%)
21:01:19: Number of frames skipped due to encoder lag: 2 (1.77%)
21:01:19: Total frames rendered: 115, number of late frames: 1 (0.87%) (it's okay for some frames to be late)
21:01:19: SO_SNDBUF was at 65536
21:01:19: SO_SNDBUF is now 65536
21:01:19: RTMPPublisher::SocketLoop: Graceful loop exit
21:01:19: Number of times waited to send: 0, Waited for a total of 0 bytes
21:01:19: Number of b-frames dropped: 0 (-1.$%), Number of p-frames dropped: 0 (-1.$%), Total 0 (-1.$%)
21:01:19: Number of bytes sent: 0
21:01:19: 
21:01:19: Profiler time results:
21:01:19: 
21:01:19: ==============================================================
21:01:19: video thread frame - [100%] [avg time: 1.483 ms] [children: 9.98%] [unaccounted: 90%]
21:01:19: | scene->Preprocess - [0.0674%] [avg time: 0.001 ms]
21:01:19: | GPU download and conversion - [9.91%] [avg time: 0.147 ms] [children: 7.62%] [unaccounted: 2.29%]
21:01:19: | | flush - [7.01%] [avg time: 0.104 ms]
21:01:19: | | CopyResource - [0.539%] [avg time: 0.008 ms]
21:01:19: | | conversion to 4:2:0 - [0.0674%] [avg time: 0.001 ms]
21:01:19: Convert444Threads - [100%] [avg time: 0.455 ms] [children: 99.1%] [unaccounted: 0.879%]
21:01:19: | Convert444toNV12 - [99.1%] [avg time: 0.451 ms]
21:01:19: encoder thread frame - [100%] [avg time: 3.996 ms]
21:01:19: ==============================================================
21:01:19: 
21:01:19: 
21:01:19: Profiler CPU results:
21:01:19: 
21:01:19: ==============================================================
21:01:19: video thread frame - [cpu time: avg 0.271 ms, total 31.25 ms] [avg calls per frame: 1]
21:01:19: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:01:19: | GPU download and conversion - [cpu time: avg 0.135 ms, total 15.625 ms] [avg calls per frame: 1]
21:01:19: | | flush - [cpu time: avg 0.135 ms, total 15.625 ms] [avg calls per frame: 1]
21:01:19: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:01:19: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:01:19: Convert444Threads - [cpu time: avg 0.343 ms, total 62.5 ms] [avg calls per frame: 2]
21:01:19: | Convert444toNV12 - [cpu time: avg 0.343 ms, total 62.5 ms] [avg calls per frame: 2]
21:01:19: encoder thread frame - [cpu time: avg 0.339 ms, total 31.25 ms] [avg calls per frame: 1]
21:01:19: ==============================================================
21:01:19: 
21:01:19: =====Stream End: 2013-11-19, 21:01:19=================================================
21:01:22: =====Stream Start: 2013-11-19, 21:01:22===============================================
21:01:22:   Multithreaded optimizations: On
21:01:22:   Base resolution: 1920x1080
21:01:22:   Output resolution: 1280x720
21:01:22: ------------------------------------------
21:01:22: Loading up D3D10 on AMD Radeon HD 6900 Series...
21:01:22: ------------------------------------------
21:01:22: Audio Format: 48000hz
21:01:22: Playback device Default
21:01:22: ------------------------------------------
21:01:22: Using desktop audio input: Speakers (Corsair Vengeance 1500 Headset)
21:01:22: ------------------------------------------
21:01:22: Using auxilary audio input: Microphone (Corsair Vengeance 1500 Headset)
21:01:22: ------------------------------------------
21:01:22: Audio Encoding: AAC
21:01:22:     bitrate: 128
21:01:22: Using graphics capture
21:01:22: Scene buffering time set to 700
21:01:22: ------------------------------------------
21:01:22: Video Encoding: x264
21:01:22:     fps: 30
21:01:22:     width: 1280, height: 720
21:01:22:     preset: veryfast
21:01:22:     profile: high
21:01:22:     keyint: 60
21:01:22:     CBR: yes
21:01:22:     CFR: yes
21:01:22:     max bitrate: 1000
21:01:22:     buffer size: 1000
21:01:22: ------------------------------------------
21:01:22: MMDeviceAudioSource: Frequency for device 'Speakers (Corsair Vengeance 1500 Headset)' is 352800, samples per sec is 44100
21:01:22: MMDeviceAudioSource: Frequency for device 'Microphone (Corsair Vengeance 1500 Headset)' is 352800, samples per sec is 44100
21:01:22: Bad timestamp detected, syncing audio to video time
21:01:24: Using RTMP service: Twitch / Justin.tv
21:01:24:   Server selection: rtmp://live-iad.justin.tv/app
21:01:24:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 1000 mbps)
21:01:25: Completed handshake with rtmp://live-iad.justin.tv/app in 403 ms.
21:01:26: SO_SNDBUF was at 65536
21:01:26: SO_SNDBUF is now 65536
21:01:28: SharedTexCapture hooked
21:02:20: RTMPPublisher::SocketLoop: Stalled for 1686 ms to write 141199 bytes (buffer: 0 / 144384), unstable connection?
21:02:25: Total frames encoded: 1856, total frames duplicated: 92 (4.96%)
21:02:25: Number of frames skipped due to encoder lag: 10 (0.54%)
21:02:25: Total frames rendered: 1817, number of late frames: 17 (0.94%) (it's okay for some frames to be late)
21:02:25: RTMPPublisher::SocketLoop: Graceful loop exit
21:02:25: Average send payload: 4842 bytes, average send interval: 38 ms
21:02:25: Number of times waited to send: 4, Waited for a total of 14930 bytes
21:02:25: Number of b-frames dropped: 7 (0.4%), Number of p-frames dropped: 0 (0%), Total 7 (0.4%)
21:02:25: Number of bytes sent: 7413829
21:02:26: 
21:02:26: Profiler time results:
21:02:26: 
21:02:26: ==============================================================
21:02:26: video thread frame - [100%] [avg time: 2.354 ms] [children: 16.5%] [unaccounted: 83.5%]
21:02:26: | scene->Preprocess - [0.0425%] [avg time: 0.001 ms]
21:02:26: | GPU download and conversion - [16.4%] [avg time: 0.387 ms] [children: 2.85%] [unaccounted: 13.6%]
21:02:26: | | flush - [2.46%] [avg time: 0.058 ms]
21:02:26: | | CopyResource - [0.297%] [avg time: 0.007 ms]
21:02:26: | | conversion to 4:2:0 - [0.085%] [avg time: 0.002 ms]
21:02:26: Convert444Threads - [100%] [avg time: 0.392 ms] [children: 99.2%] [unaccounted: 0.765%]
21:02:26: | Convert444toNV12 - [99.2%] [avg time: 0.389 ms]
21:02:26: encoder thread frame - [100%] [avg time: 1.437 ms]
21:02:26: ==============================================================
21:02:26: 
21:02:26: 
21:02:26: Profiler CPU results:
21:02:26: 
21:02:26: ==============================================================
21:02:26: video thread frame - [cpu time: avg 0.051 ms, total 93.75 ms] [avg calls per frame: 1]
21:02:26: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:02:26: | GPU download and conversion - [cpu time: avg 0.008 ms, total 15.625 ms] [avg calls per frame: 1]
21:02:26: | | flush - [cpu time: avg 0.008 ms, total 15.625 ms] [avg calls per frame: 1]
21:02:26: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:02:26: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:02:26: Convert444Threads - [cpu time: avg 0.475 ms, total 1703.13 ms] [avg calls per frame: 2]
21:02:26: | Convert444toNV12 - [cpu time: avg 0.475 ms, total 1703.13 ms] [avg calls per frame: 2]
21:02:26: encoder thread frame - [cpu time: avg 0.076 ms, total 140.625 ms] [avg calls per frame: 1]
21:02:26: ==============================================================
21:02:26: 
21:02:26: =====Stream End: 2013-11-19, 21:02:26=================================================


Last game capture log:
2013-11-19, 21:01:22: we're booting up: 
21:01:22: D3D9 Present
21:01:23: DXGI Present
21:01:23: (half life scientist) everything..  seems to be in order
21:01:28: DXGI: Found D3D 11
21:01:28: setting up d3d11 data
21:01:28: ---------------------- Cleared D3D11 Capture ----------------------
21:01:28: found dxgi format (dx11) of: 28, size: {1920, 1080}, multisampled: false
21:01:28: DoD3D11Hook: success
21:01:28: successfully capturing d3d11 frames via GPU
21:02:25: stop requested, terminating d3d11 capture
21:02:25: ---------------------- Cleared D3D11 Capture ----------------------
21:02:25: DoD3D11Hook: success
 

R1CH

Forum Admin
Developer
21:01:14: Physical Memory: 16281MB Total, 836MB Free
Sounds like you're having RAM problems well before you start streaming with OBS. Close down some apps.
 
Top