MERGING MediaPortal Url Source Splitter & IPTV Filter (5 Viewers)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    @georgius

    How i can build IPTV filter ?
    When i build the filter, it seems only URL part is register and i don't see IPTV one (in graphstudio).
    If i understand correctly 'MP1-4155-FEAT-Merge_of_IPTV_filter_and_MediaPortal_Url_Source_Splitter' branch should register both mode or for now we need to set something in code to make it work one or other mode ?

    Thanks :)
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    Hi,
    @mm1352000 we have noticed some memory leak or filter not correctly released/free when for sure while EPG Grabbing when i can't stream the channel (crypted or what ever)

    My TVService goes to 1.7GB of RAM in 24H.

    Will try to work with Georgius on this to know where is the culprit.

    I have notice that Timishift timeout is not respected while filter try to find a stream.
    Will report more finding later :)
    Can you stop tv service, clean logs, start tv service and let it run for hour or two without anything else? Then stop tv service and post logs. I'll count how many instances were created and destroyed. There is still possibility that filter has memory leak.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Should i need to tune a IPTV channel (i think yes) want to be sure :)
    Sorry for noob question :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Can you stop tv service, clean logs, start tv service and let it run for hour or two without anything else? Then stop tv service and post logs. I'll count how many instances were created and destroyed. There is still possibility that filter has memory leak.

    Running let see how it goes in few hours :)

    I have notice that : (don't think it's related to IPTV) (will try to reproduce on DEV PC (to avoid french garbage lol)
    Code:
    [2013-09-02 14:12:25,330] [Error  ] [PowerEventThread] [ERROR] - Error in writing log entry
    [2013-09-02 14:12:25,335] [Error  ] [PowerEventThread] [ERROR] - Exception: System.FormatException: L'index (de base zéro) doit être supérieur ou égal à zéro et inférieur à la taille de la liste des arguments.
      à System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
      à System.String.Format(IFormatProvider provider, String format, Object[] args)
      à TvLibrary.Log.Log.WriteToFile(LogType logType, LogLevel logLevel, String format, Object[] arg)  Message: L'index (de base zéro) doit être supérieur ou égal à zéro et inférieur à la taille de la liste des arguments.  Site  : System.Text.StringBuilder AppendFormat(System.IFormatProvider, System.String, System.Object[])  Source : mscorlib  Stack Trace:	à System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
      à System.String.Format(IFormatProvider provider, String format, Object[] args)
      à TvLibrary.Log.Log.WriteToFile(LogType logType, LogLevel logLevel, String format, Object[] arg)
    [2013-09-02 14:12:34,943] [Error  ] [PowerEventThread] [ERROR] - Error in writing log entry
    [2013-09-02 14:12:34,944] [Error  ] [PowerEventThread] [ERROR] - Exception: System.FormatException: L'index (de base zéro) doit être supérieur ou égal à zéro et inférieur à la taille de la liste des arguments.
      à System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
      à System.String.Format(IFormatProvider provider, String format, Object[] args)
      à TvLibrary.Log.Log.WriteToFile(LogType logType, LogLevel logLevel, String format, Object[] arg)  Message: L'index (de base zéro) doit être supérieur ou égal à zéro et inférieur à la taille de la liste des arguments.  Site  : System.Text.StringBuilder AppendFormat(System.IFormatProvider, System.String, System.Object[])  Source : mscorlib  Stack Trace:	à System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
      à System.String.Format(IFormatProvider provider, String format, Object[] args)
      à TvLibrary.Log.Log.WriteToFile(LogType logType, LogLevel logLevel, String format, Object[] arg)


    I have something to test after, like i can crash tvservice by doing that :
    Scan or try to tune an IPTV channel where the IP is reachable. (after many try -> crash/died)
    I'm thinking it's also maybe the culprit when memory goes up (but need confirming) when EPG grabber try to grab EPG stuff.
    It's possible that 2 nights ago, my Freebox Player goes to deep OFF (so not reachable) and then EPG Grabber try to tune those channel but failed and lead to high memory consumed.

    Seb.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi,

    This is strange and i need to find a way to trigger this memory usage.
    It seems, the DVB EPG get stuck on first channel :
    Code:
    [2013-09-02 17:10:28,485] [Log	] [DVB EPG timer] [INFO ] - **************************************************
    [2013-09-02 17:10:28,486] [Log	] [DVB EPG timer] [INFO ] - ***** SIGNAL LEVEL: 100, SIGNAL QUALITY: 100 *****
    [2013-09-02 17:10:28,486] [Log	] [DVB EPG timer] [INFO ] - **************************************************
    [2013-09-02 17:10:28,486] [Log	] [DVB EPG timer] [DEBUG] - card: tuned user: epg subchannel: 0
    [2013-09-02 17:10:28,487] [Log	] [DVB EPG timer] [INFO ] - user:epg add
    [2013-09-02 17:10:28,488] [Log	] [DVB EPG timer] [DEBUG] - CardReservation.RemoveTuneTicket: removed reservation with id=1, tuningdetails=DVBIP:tv: 1 - TF1 (TNT) Freq:0 ONID:0 TSID:1537 SID:1537 PMT:0x64 FTA:True LCN:10000 Url:rtsp://192.168.20.155/fbxdvb/stream?tsid=6&nid=8442&sid=1537&frontend=1
    [2013-09-02 17:10:28,489] [Log	] [DVB EPG timer] [INFO ] - card: SignalTuneEvent card: 8 / subch: 0
    [2013-09-02 17:10:28,489] [Log	] [DVB EPG timer] [INFO ] - Controller: GrabEpg on card ID == 8
    [2013-09-02 17:10:28,490] [EPG	] [DVB EPG timer] [INFO ] - EpgGrabbing: Start
    [2013-09-02 17:10:28,491] [Log	] [DVB EPG timer] [INFO ] - dvb:grab epg...
    [2013-09-02 17:10:28,493] [EPG	] [DVB EPG timer] [INFO ] - EpgCard: card: 8 starting to grab DVBIP:tv: 1 - TF1 (TNT) Freq:0 ONID:0 TSID:1537 SID:1537 PMT:0x64 FTA:True LCN:10000 Url:rtsp://192.168.20.155/fbxdvb/stream?tsid=6&nid=8442&sid=1537&frontend=1
    [2013-09-02 17:10:58,502] [EPG	] [19	  ] [INFO ] - EpgCard: allow grabbing for 30,0087164 seconds on card 8
    [2013-09-02 17:11:28,515] [EPG	] [19	  ] [INFO ] - EpgCard: allow grabbing for 60,021433 seconds on card 8
    [2013-09-02 17:11:58,530] [EPG	] [19	  ] [INFO ] - EpgCard: allow grabbing for 90,0361498 seconds on card 8
    [2013-09-02 17:12:28,545] [EPG	] [4		] [INFO ] - EpgCard: allow grabbing for 120,0518666 seconds on card 8
    [2013-09-02 17:12:58,558] [EPG	] [19	   ] [INFO ] - EpgCard: allow grabbing for 150,0645832 seconds on card 8
    [2013-09-02 17:13:28,574] [EPG	] [4		] [INFO ] - EpgCard: allow grabbing for 180,0803 seconds on card 8
    [2013-09-02 17:13:58,588] [EPG	] [19	   ] [INFO ] - EpgCard: allow grabbing for 210,0940167 seconds on card 8
    It continue while never stop it.

    Will try to do a scan (while NAT port are not reachable) and see if i can trigger memory usage.
    And i will also put back the wrong mapping about issue with TF1 vs 6TER (when stream are not free when changing channel)
     

    Users who are viewing this thread

    Top Bottom