getstream died right after startup

Florian Lohoff flo at rfc822.org
Thu Feb 26 19:26:02 CET 2009


On Thu, Feb 26, 2009 at 06:58:32PM +0200, Serg Gulko wrote:
> Hello!
> 
> Yes, you was right about commenting watchdog. But now I have new troubles:)
> 
> 2009-02-27 03:56:53.215 fe: Adapter 1 Setting up frontend tuner
> 2009-02-27 03:56:53.217 fe: adapter 1 type OFDM name "Zarlink ZL10353 DVB-T"
> 2009-02-27 03:56:53.217 fe: adapter 1 frequency min 174000000 max 862000000
> step 166667 tolerance 0
> 2009-02-27 03:56:53.217 fe: adapter 1 symbol rate min 0 max 0 tolerance 0
> 2009-02-27 03:56:53.217 dmx: Setting filter for pid 8192 pestype 20
> 2009-02-27 03:56:53.252 dvr: Add Section callback for PID 0 (0x0000) type 1
> (PAT)
> 2009-02-27 03:56:53.252 dvr: Add TS callback for PID 0 (0x0000) type 9
> (Reassemble)
> 2009-02-27 03:56:59.042 fe: Adapter 1 Status: 0x00 ()
> 2009-02-27 03:56:59.042 dvr: lockup of DVB card detected - trying to
> reanimate via bouncing filter
> 2009-02-27 03:57:04.862 fe: Adapter 1 Status: 0x00 ()
> 2009-02-27 03:57:04.862 dvr: lockup of DVB card detected - trying to
> reanimate via bouncing filter
> 2009-02-27 03:57:10.712 fe: Adapter 1 Status: 0x00 ()
> 2009-02-27 03:57:10.712 dvr: lockup of DVB card detected - trying to
> reanimate via bouncing filter

Okay - something is wrong with your tuner setup i guess - because your
DVB card does not hand out TS packets ....

These are 2 mechanisms - The guard thread watches whether TS packets get
processed from a different thread. When the main getstream thread gets
stuck (mostly because of a programming error or some other strange
things) it kills getstream. So when you want to provide a "high
availability" solution you'd want to start getstream with something like

	while true; do ./getstream -dd -c config; done

So getstream kills itself when getting stuck and this would restart it.

The other mechanism you trigger now is a workaround for some strange DVB
cards which sometimes get stuck. Read: getstream is runnign but no TS
packets. The workaround is to drop all filters or better close all fds
and reopen them.

Both of which get triggered when there are no dvb packets. I'll think
about the watchdog as it might be enough to set a timer in the main
process to trigger every second. When getstream gets stuck there will be
no timer/event handling and it'll get killed too.

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-171-2280134
	Those who would give up a little freedom to get a little 
          security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://gt.owl.de/pipermail/getstream/attachments/20090226/83f32a19/attachment.pgp 


More information about the Getstream mailing list