EPG (1 Viewer)

lcdfreeek

Portal Member
December 24, 2015
21
1
56
Home Country
Puerto Rico Puerto Rico
Thanks to you for your time and help.
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Progress report...

    Within the last few minutes I've been able to successfully reproduce the problem with the provided raw_packet_dump.ts file on my local PC. This is a good first step.

    It does indeed take a fair amount of memory to grab the EPG:
    upload_2016-1-14_22-38-11.png


    Then when TV Server tries to store the EPG I get the same error as you:
    [2016-01-14 22:31:21,795] [EPG ] [5 ] [INFO ] - dvb:dvb ready.EPG 7255 channels
    [2016-01-14 22:32:25,311] [Log ] [5 ] [ERROR] - Exception :confused:ystem.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    at System.String.InternalSubString(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
    at System.String.TrimHelper(Int32 trimType)
    at TvLibrary.Implementations.DVB.TvCardDvbBase.get_Epg()

    [2016-01-14 22:32:26,170] [Log ] [5 ] [ERROR] - Exception :confused:ystem.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    at TvLibrary.Interfaces.DvbTextConverter.Convert(IntPtr ptr, String lang)
    at TvLibrary.Implementations.DVB.TvCardDvbBase.get_Epg()

    [2016-01-14 22:32:26,936] [Log ] [5 ] [ERROR] - Exception :confused:ystem.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    at System.TimeZoneInfo.GetDaylightTime(Int32 year, AdjustmentRule rule)
    at System.TimeZoneInfo.GetIsDaylightSavingsFromUtc(DateTime time, Int32 Year, TimeSpan utc, AdjustmentRule rule, Boolean& isAmbiguousLocalDst)
    at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(DateTime time, Boolean& isAmbiguousLocalDst)
    at System.DateTime.get_Now()
    at TvLibrary.Implementations.DVB.TvCardDvbBase.get_Epg()

    Hopefully it'll just be a matter of time now before I can find a solution... :)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Okay.

    I've confirmed that the cause of this issue is that TV Server is running into the process memory limit on the given system. The exact limit varies depending on whether the process is 32 or 64 bit (TV Server has always been 32 bit), whether the OS is 32 or 64 bit, how much memory (RAM) the system has, and perhaps also how much memory other software is using. If you're interested, the following link gives a bit of background info:
    http://blogs.msdn.com/b/tom/archive...y-limits-for-32-bit-and-64-bit-processes.aspx

    All of this means that some systems may be able to collect EPG from your provider without any hassles, while other systems like yours will run into trouble.

    I've been able to apply and test some fairly minimal tweaks which seem to halve TV Server's memory usage during EPG processing. This enabled my system to collect the full 14 days x ~7250 channels worth of EPG data which your provider is broadcasting. Considering that my system - XP 32 bit, 4 GB memory - is fairly modest these days, and considering that your provider is almost certain to be the provider with the most EPG data on the planet, I'm hoping that my tweaks will be "good enough". Trying to reduce the memory footprint further... well, let's just say it's not going to happen easily or in a hurry.

    Without further ado, patched versions of a couple of TV Server's files are attached. All you have to do to apply the patches is:
    1. Open TV Server Configuration.
    2. Go to the "manual control" section.
    3. Click "stop service".
    4. Close TV Server Configuration.
    5. Open Windows Explorer.
    6. Navigate to your TV Server install directory (typically c:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server).
    7. Take a backup of TsWriter.ax and TVLibrary.dll.
    8. Download and extract the attached replacements into the TV Server install directory.
    9. Open TV Server Configuration (click "yes" to start the TV service).
    ...and you're done.
    Note the attached files are probably compatible with MediaPortal 1.6 and newer (...though I can't guarantee that they'll work with anything less than MP 1.12). Also, you'll have to re-apply this patch each time you update TV Server unless/until the patch is accepted for inclusion in TV Server.

    Please let me know if the patch works for you.

    Regards,
    mm
    :)
     

    Attachments

    • TsWriter_and_TVLibrary [1.12_DN_EPG_memory_usage_reductions_v2].zip
      338.1 KB

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    By the way, we don't hear from people such as yourself very often. I'm interested to know how you found the TV Server setup experience. Comments on what we do well and what we could do to improve would be appreciated. Also, if you happen to have access to 91W (or 82W), I'd be keen to grab another raw_packet_dump.ts for Bell TV. A subscription is not required - just a dish that can receive the signals.
     

    lcdfreeek

    Portal Member
    December 24, 2015
    21
    1
    56
    Home Country
    Puerto Rico Puerto Rico
    mm...


    I apply the patched files after stopping the service and restarted the TV Server, an Idle State was indicated in the Manual Control, and a "No Signal" indication was displayed when tried to preview a channel. So wasn't possible to test the EPG grabbing. Aafter that I re-copied the original files and was able to preview the channels again. [DOUBLEPOST=1452898976][/DOUBLEPOST]My setup experience its been up and down because there are no straight details for each case and as you said my case is not usual. But no so different as where I come from, a CW3000HD looking for help in MP because after 7 years my CW3KHD motherboard died, and there is no replacement for it and since the Linux system doesn't have support since few years ago that system doesn't run on a different hardware. Regarding the 91W or 82W I could give it a try ahead but will like to have the current system running stable before I go to the roof to aim additional birds.
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    I apply the patched files after stopping the service and restarted the TV Server, an Idle State was indicated in the Manual Control, and a "No Signal" indication was displayed when tried to preview a channel. So wasn't possible to test the EPG grabbing. Aafter that I re-copied the original files and was able to preview the channels again.
    Hmmm, I can't imagine any changes that I made causing "no signal". Nevertheless I've updated the patch. Could you please try again, and this time please provide the TV Server log files if the patch doesn't work. It's hard to know what's wrong without them.
     

    lcdfreeek

    Portal Member
    December 24, 2015
    21
    1
    56
    Home Country
    Puerto Rico Puerto Rico
    System working with the v2 files updated but EPG still the same, current and next program only on almost all channels.
     

    Attachments

    • EPG Current and Next program.jpg
      EPG Current and Next program.jpg
      64.9 KB

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Okay, small progress then.

    Please do the following:
    1. Close MediaPortal.
    2. Open TV Server Configuration.
    3. Navigate to the DVB EPG -> TV EPG Grabber section.
    4. Ensure all channels except 239 are unticked.
    5. Navigate to the "manual control" section.
    6. Click "refresh DVB EPG".
    7. Close TV Server Configuration.
    8. Wait 10 minutes.
    9. Open MediaPortal and check the guide again. If you still don't have more than current/next programs for most channels, please provide the TV Server log files.
    Note: I'm assuming that you haven't changed the DVB EPG settings since you provided the screenshots for me.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom