Bug Report Disconnections and Memory Leaks in log file

dramabomb

Member
Just tried to stream for an hour or so, and I keep on getting what appears to be random disconnects/resumes again. It also shows memory leaks in the log file. Here is the first log file where things seemed to be going just fine:

Code:
Open Broadcaster Software v0.463a (test build 8) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3300MHz
Physical Memory:  8159MB Total, 6178MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 560 Ti  
  Video Adapter Dedicated Video Memory: 1025966080
  Video Adapter Shared System Memory: 3221106688
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 7
------------------------------------------
using memory capture
Total frames rendered: 121, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 7
------------------------------------------
using memory capture
Total frames rendered: 101, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 7
------------------------------------------
using memory capture
Using RTMP service: Twitch / Justin.tv
  Server selection: 뛀9
bufferTime: 1416, outputRateWindowTime: 1000, dropThreshold: 1916
Total frames rendered: 16794, number of frames that lagged: 1 (0.01%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 4.568 ms] [avg calls per frame: 1] [children: 71.7%] [unaccounted: 28.3%]
| scene->Preprocess - [0.0438%] [avg time: 0.002 ms] [avg calls per frame: 1]
| video encoding and uploading - [71.6%] [avg time: 3.272 ms] [avg calls per frame: 1] [children: 20.6%] [unaccounted: 51%]
| | CopyResource - [0.241%] [avg time: 0.011 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.197%] [avg time: 0.009 ms] [avg calls per frame: 0]
| | call to encoder - [20%] [avg time: 0.913 ms] [avg calls per frame: 0]
| | sending stuff out - [0.219%] [avg time: 0.01 ms] [avg calls per frame: 0]
==============================================================

Here is the problem log:

Code:
Open Broadcaster Software v0.463a (test build 8) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3300MHz
Physical Memory:  8159MB Total, 6099MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 560 Ti  
  Video Adapter Dedicated Video Memory: 1025966080
  Video Adapter Shared System Memory: 3221106688
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 7
------------------------------------------
using memory capture
Total frames rendered: 31, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 7
------------------------------------------
using memory capture
Using RTMP service: Twitch / Justin.tv
  Server selection: 꾀
bufferTime: 1914, outputRateWindowTime: 1000, dropThreshold: 2414
RTMPPublisher::BufferedSend: Buffer is full (460833 / 463872 bytes), waiting to send 4083 bytes
RTMPPublisher::BufferedSend: Buffer is full (460833 / 463872 bytes), waiting to send 4083 bytes
RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 0
Total frames rendered: 71739, number of frames that lagged: 2 (0.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 26 (0.015%), Number of p-frames dropped: 10 (0.0057%), Total 36 (0.021%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 7
------------------------------------------
using memory capture
Using RTMP service: Twitch / Justin.tv
  Server selection: 쎀
bufferTime: 1957, outputRateWindowTime: 1000, dropThreshold: 2457
RTMPPublisher::BufferedSend: Buffer is full (462442 / 463872 bytes), waiting to send 1959 bytes
RTMPPublisher::BufferedSend: Buffer is full (462442 / 463872 bytes), waiting to send 1959 bytes
RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 0
Total frames rendered: 3841, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 28 (0.31%), Number of p-frames dropped: 26 (0.28%), Total 54 (0.59%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 7
------------------------------------------
using memory capture
Using RTMP service: Twitch / Justin.tv
  Server selection: 낀
bufferTime: 1883, outputRateWindowTime: 1000, dropThreshold: 2383
Warning -- MemoryCapture::Init: Could not open file mapping
Total frames rendered: 1698, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 5.596 ms] [avg calls per frame: 1] [children: 75.6%] [unaccounted: 24.4%]
| scene->Preprocess - [0.0357%] [avg time: 0.002 ms] [avg calls per frame: 1]
| video encoding and uploading - [75.5%] [avg time: 4.227 ms] [avg calls per frame: 1] [children: 16.5%] [unaccounted: 59.1%]
| | CopyResource - [0.161%] [avg time: 0.009 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.197%] [avg time: 0.011 ms] [avg calls per frame: 0]
| | call to encoder - [16%] [avg time: 0.893 ms] [avg calls per frame: 0]
| | sending stuff out - [0.161%] [avg time: 0.009 ms] [avg calls per frame: 0]
==============================================================

Memory Leaks Were Detected.

I don't think my settings are the culprit, are there? Here is a link to my Videos page on Twitch. You can see there was some type of disconnect, as there are two short videos above the longer one: http://www.twitch.tv/thedigitalbench/vi ... broadcasts

Link to the actual good recording: http://www.twitch.tv/thedigitalbench/b/355080999

Any help would be greatly appreciated!
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
The memory leak is minor and is probably unrelated to this. I don't specifically know how to replicate it each time at the moment.

As for the disconnection, it might be related to the fact you're dropping frames and are 30fps. There might be a bug currently where if you start dropping frames for a long gap of time the server will disconnect you. I'm looking at ways to reduce p-frame dropping (which would be the general cause)
 

dramabomb

Member
Is there anything I can do to not drop frames at this point? I remember that in a previous version you had fixed this. When I cap at 60fps, I don't think I get this issue, although Twitch really can't handle that reliably sometimes. I don't think this happens with the 32bit version, but I have to use 64bit when I use OBS for Minecraft.

My speeds in case you need to know this information:
203610102.png


Would lowering my bitrate help?
 

dramabomb

Member
I'm going to try the .467a version when I get home to see if this issue persists. No matter what, you're still miles ahead of XSplit in terms of usability and system resource use.
 

dramabomb

Member
I upgraded to the latest build and it seems the disconnecting issue is gone. I'll post in this thread if I encounter the issues again.
 

Niamor

Member
I have the same issue and tried the .467a test version, I quickly reverted back to .466a because .467a didn't work properly with me :

- High cpu usage (~50%).
- Mic completely out of sync.
- Frames lagged and dropped.

Here's a log (streamed for about 40mins)

Code:
Open Broadcaster Software v0.467a (test 1) - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz
CPU Speed: 4013MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: AMD Radeon HD 6800 Series
  Video Adapter Dedicated Video Memory: 1057464320
  Video Adapter Shared System Memory: 4025509888
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (VIA High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    max bitrate: 3000
    buffer size: 3000
    quality: 8
------------------------------------------
SharedTexCapture hooked
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-lhr-backup.justin.tv/app
bufferTime: 1956, outputRateWindowTime: 1000, dropThreshold: 2456
SharedTexCapture hooked
SharedTexCapture hooked
Total frames rendered: 69870, number of frames that lagged: 419 (0.60%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 652 (0.38%), Number of p-frames dropped: 974 (0.57%), Total 1626 (0.95%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 6.581 ms] [avg calls per frame: 1] [children: 81.5%] [unaccounted: 18.5%]
| scene->Preprocess - [0.076%] [avg time: 0.005 ms] [avg calls per frame: 1]
| video encoding and uploading - [81.4%] [avg time: 5.358 ms] [avg calls per frame: 1] [children: 49%] [unaccounted: 32.4%]
| | CopyResource - [0.167%] [avg time: 0.011 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.425%] [avg time: 0.028 ms] [avg calls per frame: 0]
| | call to encoder - [47.6%] [avg time: 3.131 ms] [avg calls per frame: 0]
| | sending stuff out - [0.836%] [avg time: 0.055 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
aero either on or off doesn't affect game capture.

and wah? 0.467a test 1 caused more CPU usage? what in the nine divines.. I didn't add any any extra stuff to it to make it use more CPU
 

dramabomb

Member
That's what I noticed, at least. Even with Minecraft/Diablo 3, games that aren't very demanding. I noticed the framerate drop about 30-40 minutes into streaming. I checked my system and everything seems to be in order. I will revert back to the latest stable version and report back here in the morning sometime.
 
Top