VDR and XBMC - How to install VNSI server

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
davy39 Offline
Junior Member
Posts: 37
Joined: Nov 2011
Reputation: 0
Post: #11
Here a first feed back :

I still have some freezing problems probably due to a temporary loose of signal because of lack of connection to oscam dvbapi (network instability).

- Sometimes it freezes temporarly and then restart playing (good).
- Sometimes it stop playing but I still able to change channel or stop playing PVR. (acceptable)
- The problem is that sometimes, when I want to change channel or press stop, xbmc totaly freeze and is not responding any more... (that's very unconvenient).

here a end xbmc log when I try to stop PVR :

Code:
14:04:33 T:140613860194176   DEBUG: OnKey: 11 (0b) pressed, action is Select  <<<<----- here I push stop in the OSD
14:04:33 T:140613860194176   DEBUG: ExecuteXBMCAction : Translating PlayerControl(Stop)
14:04:33 T:140613860194176   DEBUG: ExecuteXBMCAction : To PlayerControl(Stop)
14:04:33 T:140613860194176   DEBUG: PVR - SaveCurrentChannelSettings - no custom channel settings for channel 'CANAL+ HD'
14:04:33 T:140613860194176  NOTICE: CDVDPlayer::CloseFile()
14:04:33 T:140613221312256    INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
14:04:33 T:140613221312256 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
14:04:33 T:140613860194176  NOTICE: DVDPlayer: waiting for threads to exit
14:04:33 T:140613221312256 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
14:04:33 T:140613221312256    INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 25.000000 fps
14:05:00 T:140613238097664   DEBUG: Thread Jobworker start, auto delete: 1

Maybe, there is a way to force the stop (or changing channel) and avoid this lost of xbmc control...
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,714
Joined: Jul 2010
Reputation: 37
Location: Munich
Post: #12
I need a complete debug log if you want me to look into this.
find quote
davy39 Offline
Junior Member
Posts: 37
Joined: Nov 2011
Reputation: 0
Post: #13
Here it is http://pastebin.com/5bYwiaNP
Thank you for your time.
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,714
Joined: Jul 2010
Reputation: 37
Location: Munich
Post: #14
We need to narrow this down. I don't have those kind of problems on my system. Can you try the following

- skin confluence, just to make sure this is not a skin issue
- do not use database for epg

Looks like the render thread calls into pvr and get stuck for some reason.
find quote
davy39 Offline
Junior Member
Posts: 37
Joined: Nov 2011
Reputation: 0
Post: #15
Here another log with confluence and disbling EPG update when playing.
I kept xbmc playing for an hour without looking at it. When I came back, video was frozen. I have'done STOP then ... xbmc freeze again.

http://pastebin.com/SHrRQsVM
(This post was last modified: 2012-06-05 18:43 by davy39.)
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,714
Joined: Jul 2010
Reputation: 37
Location: Munich
Post: #16
I think it starts with decryption problems. vnsi plugin does not detect signal lost because there is still one steam delivering data, teletext. Audio and video stall but recover a couple of times. Then audio thread dies. This are the last messages of audio thread:

Code:
17:39:59 T:140108101285632   ERROR: ffmpeg[759B7700]: [ac3] frame CRC mismatch
17:39:59 T:140108101285632 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
17:39:59 T:140108101285632   DEBUG: CDVDAudio::Drain - adding 3480 bytes of silence, buffer size: 360, chunk size: 3840

After this there are no audio packets coming from demuxer:
Code:
17:40:05 T:140108382447360   DEBUG: set caching from pvr to done. audio (1) = 0. video (1) = 100

So maybe audio is hanging waiting for data.

I admit, none of those problems should happen, the question is where to look first. I see you use pulse audio. Quite a few functions related to pulse audio were implemented just before Eden release and were not tested much with pvr streams.

I can think of those options:

- fixing the problem which causing the stream cut off
- try ALSA sound which might be more stable than pa
- update to unstable pvr with new audio engine

EDIT: might be an vnsi problem, will look into this.
(This post was last modified: 2012-06-05 20:25 by FernetMenta.)
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,714
Joined: Jul 2010
Reputation: 37
Location: Munich
Post: #17
davy39, do you have installed gdb and could you create a back trace when it has dead locked? That would help a lot.
find quote
davy39 Offline
Junior Member
Posts: 37
Joined: Nov 2011
Reputation: 0
Post: #18
Thanks for the explainations.
Concerning pulse-audio, I've observed the same problem since ~january, so maybe it was before the function implementation you mentionned... However, I'll try with alsa tomorow.

I don't know gdb but I'm interested in and would really help to debug this issue...
Is there simple gdb commands for me to do before launching xbmc ?

How can I install unstable xbmc ? Is there a ppa or need I compile it ? What repository from ?

PS : Actually I run xbmc from P8 ppa on Ubuntu 12.04
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,714
Joined: Jul 2010
Reputation: 37
Location: Munich
Post: #19
I think the best approach is to keep you current setup and we try to find the problem.

Install gdb, on Ubuntu this is apt-get install gdb
When it hangs, open a terminal via ssh and:
gdb attach $PID ($PID is the process is of xbmc.bin, find out with ps -ef)
on the gdb command prompt:
set logging on debug.txt (this writes output in debug.txt)
thread apply all bt (generates the back trace)
find quote
davy39 Offline
Junior Member
Posts: 37
Joined: Nov 2011
Reputation: 0
Post: #20
I'm not sure to have well understood :
When shoud I have to generate the back trace, before or after xbmc crash ?
When I attach PID, xbmc is not responding anymore. Is it normal ?
(This post was last modified: 2012-06-06 08:57 by davy39.)
find quote