Autor Thema: Tvheadend compatibiltiy broken  (Gelesen 11811 mal)

knumor

  • Newbie
  • *
  • Beiträge: 3
    • Profil anzeigen
Tvheadend compatibiltiy broken
« am: Oktober 10, 2009, 11:51:46 Vormittag »
Hi.

The last driver that is fully functioning with tvheadend on my Ubuntu 9.10 beta-installation is 20090926. Every driver after that results in tvheadend complaining about 'Too many open files' after a while.

As far as i can tell this is due to the libmediaclient.so library, and indeed lsof -p $(pidof tvheadend) confirms that the number of open unix sockets are ever increasing and eventually tvheadend reaches 1024 (default max open files per user).

As a matter of fact, just starting tvheadend results in >400 open files, compared to about 80 with the 20090926-driver.

Hope you can look into the problem. If you need any more details just ask.

--
Regards.

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Tvheadend compatibiltiy broken
« Antwort #1 am: Oktober 10, 2009, 01:25:33 Nachmittag »
Do you know an exact way how to reproduce this after a clean installation?

Maybe can you run tvheadend with "gdb" and trace where it tries to open the files, it was not reproducible just by running tvheadend and capturing some shows here.
Failure is a good thing! I'll fix it

knumor

  • Newbie
  • *
  • Beiträge: 3
    • Profil anzeigen
Re:Tvheadend compatibiltiy broken
« Antwort #2 am: Oktober 10, 2009, 01:55:37 Nachmittag »
System is Ubuntu 9.10, latest, kernel 2.6.31-12-generic.

Seems you are right about this not being reproducable with the MediaPro stick, however the libmediaclient.so preload affects tvheadend with regards to my other DVB-card...

I have a TT-1501-C PCI-card as my first DVB-adapter, and as far as I can tell the problems relate to tvheadend opening /dev/adapter0/demux0. No such problems when running tvheadend without the library preload.

So, in summary, to reproduce you will need a system with a "real" DVB-card, and tvheadend running with the libmediaclient.so library preloaded...

I don't have time to get more details at the moment, let me know if there is anything in particular I should do to assist you in light of this new information.

--
Regards.


Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Tvheadend compatibiltiy broken
« Antwort #3 am: Oktober 10, 2009, 02:25:16 Nachmittag »
This is reproducible with legacy devices yes, we updated the 091009 release with a hotfix for legacy devices.

Thanks
« Letzte Änderung: Oktober 10, 2009, 02:37:58 Nachmittag von Sundtek »
Failure is a good thing! I'll fix it

knumor

  • Newbie
  • *
  • Beiträge: 3
    • Profil anzeigen
Re:Tvheadend compatibiltiy broken
« Antwort #4 am: Oktober 10, 2009, 02:44:59 Nachmittag »
Thanks for your quick response, I can confirm my legacy device is now working as expected.

--
Regards.

carelw

  • Newbie
  • *
  • Beiträge: 34
    • Profil anzeigen
Re:Tvheadend compatibiltiy broken
« Antwort #5 am: November 09, 2009, 01:36:58 Nachmittag »
I've added a question about this phenomena here: http://support.sundtek.com/index.php/topic,149.msg609.html#msg609

Thanks,

Carel

« Letzte Änderung: November 09, 2009, 02:14:51 Nachmittag von carelw »
Nvidia ION - Intel Atom 230

Ubuntu Server 10.04 x86_64 - kernel 2.6.34  - vdr-1.7.15 + Ext patch NG

Plugins: s.c, xineliboutput, epgsearch, iptv, live, osdteletext, exrecmenu.

2 x Sundtek DVB-C