Bug Report Reconnecting stops: "Could not open services. xconfig"

HeWeR

New Member
Hello!
I'm trying to stream webcams 24/7. It works pretty well, but from time to time OBS stops streaming without no error, no alert or no dropped frames. The interface looks like the stream is stoped and never started.

It tries to reconnect in most cases successful. But sometimes it gets "Connection to Primary Youtube ingest server failed: Could not open services. xconfig" and stop trying to reconnect again.

Strange thinks is that on the same PC runs multiple instances and some of them reconnecting successfully and some not (for the record, all on the same cable/driver/card network).

Code:
03:22:08: RTMPPublisher::SocketLoop: Received FD_CLOSE, 3974 ms since last send (buffer: 143516 / 144384)
03:22:08: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 10053
03:22:09: Total frames encoded: 242826, total frames duplicated: 18174 (7.48%)
03:22:09: Total frames rendered: 242841, number of late frames: 14 (0.01%) (it's okay for some frames to be late)
03:22:09: ~RTMPPublisher: Packet flush completed in 146 ms
03:22:09: ~RTMPPublisher: Send thread terminated in 11 ms
03:22:09: ~RTMPPublisher: Socket thread terminated in 0 ms
03:22:09: Average send payload: 5273 bytes, average send interval: 37 ms
03:22:09: Number of times waited to send: 2, Waited for a total of 8194 bytes
03:22:09: Number of b-frames dropped: 10 (0.0041%), Number of p-frames dropped: 29 (0.012%), Total 39 (0.016%)
03:22:09: Number of bytes sent: 1719003436
03:22:09:
03:22:09: Profiler time results:
03:22:09:
03:22:09: ==============================================================
03:22:09: video thread frame - [100%] [avg time: 8.262 ms] [children: 4.91%] [unaccounted: 95.1%]
03:22:09: | scene->Preprocess - [0.133%] [avg time: 0.011 ms]
03:22:09: | GPU download and conversion - [4.78%] [avg time: 0.395 ms] [children: 2.76%] [unaccounted: 2.02%]
03:22:09: | | flush - [0.641%] [avg time: 0.053 ms]
03:22:09: | | CopyResource - [1.88%] [avg time: 0.155 ms]
03:22:09: | | conversion to 4:2:0 - [0.242%] [avg time: 0.02 ms]
03:22:09: Convert444Threads - [100%] [avg time: 5.284 ms] [children: 99.5%] [unaccounted: 0.511%]
03:22:09: | Convert444toNV12 - [99.5%] [avg time: 5.257 ms]
03:22:09: encoder thread frame - [100%] [avg time: 9.853 ms] [children: 3.52%] [unaccounted: 96.5%]
03:22:09: | sending stuff out - [3.52%] [avg time: 0.347 ms]
03:22:09: ==============================================================
03:22:09:
03:22:09:
03:22:09: Profiler CPU results:
03:22:09:
03:22:09: ==============================================================
03:22:09: video thread frame - [cpu time: avg 1.311 ms, total 318382 ms] [avg calls per frame: 1]
03:22:09: | scene->Preprocess - [cpu time: avg 0.007 ms, total 1825.21 ms] [avg calls per frame: 1]
03:22:09: | GPU download and conversion - [cpu time: avg 0.258 ms, total 62852.8 ms] [avg calls per frame: 1]
03:22:09: | | flush - [cpu time: avg 0.041 ms, total 10030.9 ms] [avg calls per frame: 1]
03:22:09: | | CopyResource - [cpu time: avg 0.084 ms, total 20592.1 ms] [avg calls per frame: 1]
03:22:09: | | conversion to 4:2:0 - [cpu time: avg 0.014 ms, total 3525.62 ms] [avg calls per frame: 1]
03:22:09: Convert444Threads - [cpu time: avg 4.235 ms, total 2.05704e+006 ms] [avg calls per frame: 2]
03:22:09: | Convert444toNV12 - [cpu time: avg 4.221 ms, total 2.05015e+006 ms] [avg calls per frame: 2]
03:22:09: encoder thread frame - [cpu time: avg 7.972 ms, total 1.93597e+006 ms] [avg calls per frame: 1]
03:22:09: | sending stuff out - [cpu time: avg 0.104 ms, total 25396.9 ms] [avg calls per frame: 1]
03:22:09: ==============================================================
03:22:09:
03:22:09: =====Stream End: 2015-03-10, 03:22:09=================================================
03:22:30: =====Stream Start: 2015-03-10, 03:22:30===============================================
03:22:30:   Multithreaded optimizations: On
03:22:30:   Base resolution: 1280x720
03:22:30:   Output resolution: 1280x720
03:22:30: ------------------------------------------
03:22:30: Loading up D3D10 on Intel(R) HD Graphics 4600 (Adapter 1)...
03:22:30: ------------------------------------------
03:22:30: Audio Format: 44100 Hz
03:22:30: ------------------------------------------
03:22:30: Audio Channels: 2 Ch
03:22:30: Playback device Default
03:22:30: ------------------------------------------
03:22:30: Using desktop audio input: Reproduktory (Realtek High Definition Audio)
03:22:30: Global Audio time adjust: 0
03:22:31: ------------------------------------------
03:22:31: Using auxilary audio input: Vstup (Realtek High Definition Audio)
03:22:31: Mic time offset: 1600
03:22:31: ------------------------------------------
03:22:31: Audio Encoding: AAC
03:22:31:     bitrate: 128
03:22:31: Using Video Source
03:22:31: Scene buffering time set to 700
03:22:31: ------------------------------------------
03:22:31: Video Encoding: x264
03:22:31:     fps: 20
03:22:31:     width: 1280, height: 720
03:22:31:     preset: veryfast
03:22:31:     profile: main
03:22:31:     keyint: 40
03:22:31:     CBR: yes
03:22:31:     CFR: yes
03:22:31:     max bitrate: 1000
03:22:31:     buffer size: 1000
03:22:31: ------------------------------------------
03:22:33: Connection to Primary Youtube ingest server failed: Could not open services.xconfig
03:22:34: Total frames encoded: 51, total frames duplicated: 4 (7.84%)
03:22:34: Total frames rendered: 69, number of late frames: 1 (1.45%) (it's okay for some frames to be late)
03:22:34: ~RTMPPublisher: Packet flush completed in 0 ms
03:22:34: Number of times waited to send: 0, Waited for a total of 0 bytes
03:22:34: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
03:22:34: Number of bytes sent: 0
03:22:34:
03:22:34: Profiler time results:
03:22:34:
03:22:34: ==============================================================
03:22:34: video thread frame - [100%] [avg time: 8.918 ms] [children: 4.65%] [unaccounted: 95.3%]
03:22:34: | scene->Preprocess - [0.213%] [avg time: 0.019 ms]
03:22:34: | GPU download and conversion - [4.44%] [avg time: 0.396 ms] [children: 3.61%] [unaccounted: 0.83%]
03:22:34: | | flush - [2.12%] [avg time: 0.189 ms]
03:22:34: | | CopyResource - [1.3%] [avg time: 0.116 ms]
03:22:34: | | conversion to 4:2:0 - [0.191%] [avg time: 0.017 ms]
03:22:34: Convert444Threads - [100%] [avg time: 5.786 ms] [children: 99.6%] [unaccounted: 0.398%]
03:22:34: | Convert444toNV12 - [99.6%] [avg time: 5.763 ms]
03:22:34: encoder thread frame - [100%] [avg time: 6.197 ms] [children: 0.339%] [unaccounted: 99.7%]
03:22:34: | sending stuff out - [0.339%] [avg time: 0.021 ms]
03:22:34: ==============================================================
03:22:34:
03:22:34:
03:22:34: Profiler CPU results:
03:22:34:
03:22:34: ==============================================================
03:22:34: video thread frame - [cpu time: avg 1.808 ms, total 124.8 ms] [avg calls per frame: 1]
03:22:34: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
03:22:34: | GPU download and conversion - [cpu time: avg 0.226 ms, total 15.6 ms] [avg calls per frame: 1]
03:22:34: | | flush - [cpu time: avg 0.226 ms, total 15.6 ms] [avg calls per frame: 1]
03:22:34: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
03:22:34: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
03:22:34: Convert444Threads - [cpu time: avg 5.4 ms, total 561.603 ms] [avg calls per frame: 2]
03:22:34: | Convert444toNV12 - [cpu time: avg 5.4 ms, total 561.603 ms] [avg calls per frame: 2]
03:22:34: encoder thread frame - [cpu time: avg 3.67 ms, total 187.201 ms] [avg calls per frame: 1]
03:22:34: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
03:22:34: ==============================================================
03:22:34:
03:22:34: =====Stream End: 2015-03-10, 03:22:34=================================================
 

R1CH

Forum Admin
Developer
If you're running multiple instances it's possible they're all reconnecting at once and the services file is locked. Not sure if XConfig can safely be shared or not, will see if this is the case.
 

HeWeR

New Member
I've solved it by setting different reconnecting times to each instance of OBS (eg. 11s, 13s, 17s). It looks like it's working fine this way.
 
Top