Linux VNSI closes connection after some time
#1
Hi,

I am using XBMC Gotham 13.1 and VDR 2.1.6 with VNSI (current GIT version) which works quite well. But after a while i cannot watch any channels in XBMC. The channel switch sounds appears but nothing else happens. I can still add timers and watch recordings, only live TV isn't working anymore. I cannot find anything suspicous in the xbmc log (http://pastebin.com/8G9ux5yD). On the server side the connection got closed immediately after I choose a channel:
Code:
Aug  1 16:45:40 localhost vdr: [22662] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Aug  1 16:45:40 localhost vdr: [22662] VNSI: Client with ID 9 connected: 192.168.0.25:55998
Aug  1 16:45:40 localhost vdr: [25705] VNSI: Welcome client 'XBMC Media Center' with protocol version '5'
Aug  1 16:45:40 localhost vdr: [25705] VNSI: LiveStreamer::Close - close
Aug  1 16:45:40 localhost vdr: [25705] VNSI: close video input ...
Aug  1 16:45:40 localhost vdr: [25705] VNSI: allocated timeshift buffer with size: 1500000000
Aug  1 16:45:41 localhost vdr: [22663] VNSI: Client with ID 8 seems to be disconnected, removing from client list

Anyone got an idea? After a VDR restart everything works again:
Code:
Aug  1 17:01:59 localhost vdr: [25898] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Aug  1 17:01:59 localhost vdr: [25898] VNSI: Client with ID 0 connected: 192.168.0.25:56324
Aug  1 17:01:59 localhost vdr: [25915] VNSI: Welcome client 'XBMC Media Center' with protocol version '5'
Aug  1 17:02:06 localhost vdr: [25898] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Aug  1 17:02:06 localhost vdr: [25898] VNSI: Client with ID 1 connected: 192.168.0.25:56328
Aug  1 17:02:06 localhost vdr: [25916] VNSI: Welcome client 'XBMC Media Center' with protocol version '5'
Aug  1 17:02:06 localhost vdr: [25916] VNSI: LiveStreamer::Close - close
Aug  1 17:02:06 localhost vdr: [25916] VNSI: close video input ...
Aug  1 17:02:06 localhost vdr: [25916] VNSI: allocated timeshift buffer with size: 1500000000
Aug  1 17:02:06 localhost vdr: [25917] receiver on device 1 thread started (pid=25887, tid=25917, prio=high)
Aug  1 17:02:06 localhost vdr: [25916] VNSI: Successfully switched to channel 1 - Das Erste HD
Aug  1 17:02:06 localhost vdr: [25916] VNSI: Started streaming of channel Das Erste HD (timeout 10 seconds)
Aug  1 17:02:06 localhost vdr: [25919] cLiveStreamer stream processor thread started (pid=25887, tid=25919, prio=high)
Aug  1 17:02:06 localhost vdr: [25920] TS buffer on device 1 thread started (pid=25887, tid=25920, prio=high)
Aug  1 17:02:07 localhost vdr: [25892] VNSI: Video Input - new pmt, attaching receiver
Aug  1 17:02:07 localhost vdr: [25919] VNSI: Created stream for pid=6010 and type=8
Aug  1 17:02:07 localhost vdr: [25919] VNSI: Created stream for pid=6022 and type=1
Aug  1 17:02:07 localhost vdr: [25919] VNSI: Created stream for pid=6020 and type=2
Aug  1 17:02:07 localhost vdr: [25919] VNSI: Created stream for pid=6021 and type=2
Aug  1 17:02:07 localhost vdr: [25919] VNSI: Created stream for pid=6031 and type=9
Aug  1 17:02:07 localhost vdr: [25919] VNSI: Created stream for pid=6030 and type=11
Aug  1 17:02:14 localhost vdr: [25916] VNSI-Error: cxSocket::read: read() error at 0/4
Aug  1 17:02:14 localhost vdr: [25919] VNSI: exit streamer thread
Aug  1 17:02:14 localhost vdr: [25919] cLiveStreamer stream processor thread ended (pid=25887, tid=25919)
Aug  1 17:02:14 localhost vdr: [25916] VNSI: LiveStreamer::Close - close
Aug  1 17:02:14 localhost vdr: [25916] VNSI: close video input ...
Aug  1 17:02:14 localhost vdr: [25916] VNSI: call retune ...
Aug  1 17:02:14 localhost vdr: [25916] VNSI: call retune ...
Aug  1 17:02:14 localhost vdr: [25916] VNSI: close video input ...
Aug  1 17:02:14 localhost vdr: [25920] TS buffer on device 1 thread ended (pid=25887, tid=25920)
Aug  1 17:02:14 localhost vdr: [25917] buffer stats: 197024 (3%) used
Aug  1 17:02:14 localhost vdr: [25917] receiver on device 1 thread ended (pid=25887, tid=25917)
Aug  1 17:02:14 localhost vdr: [25911] VNSI: Client with ID 1 seems to be disconnected, removing from client list

The same thing happens with VDR 2.0.3 and 2.0.6. Any suggestions are greatly appreciated Nod
Reply
#2
Can't help you with VNSI disconnecting. VNSI is working okay around here. As workaround you could try XVDR instead of VNSI. It does (almost) the same job. Be aware 1. you need to compile the XVDR plugin into VDR and 2. add the XVDR plugin into XBMC. See XVDR Readme.txt I'm using XVDR for years without problems. (My setup Gen2VDR 2.0.6 and XBMC 14 nightly build.)

https://github.com/pipelka/xbmc-addon-xvdr
Reply
#3
Thanks I will try it. But I cannot build the windows plugin. Tried to compile it like described here: http://xvdr.weebly.com/building-the-addon.html

Then i get this error:
Code:
i586-mingw32msvc-g++: unrecognized option '-no-cygwin'
consoleclient.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status

Also the download xvdr-repositry doesnt work. It says missing dll or xbmc crashes. Do you have a working windows plugin?

Regards
zeebee

edit: ok, works now. I forgot to make clean after i built the linux64 client for my main htpc.
Reply
#4
current git(master branch) version is not compatible with 13.x you need to checkout release 1.1
Reply
#5
Ok, thanks. Didn`t knew that. But xvdr works fine so far and has faster channel switching (esp. scrambled channels) for me. So I stay with xvdr for the time being.
Reply

Logout Mark Read Team Forum Stats Members Help
VNSI closes connection after some time0