WebEPG: Index was outside the bounds of the array. (1 Viewer)

darren

New Member
January 4, 2008
3
0
Home Country
Netherlands Netherlands
When I try to run WebEPG with 25 channels (see WebEPG.xml below) it fails. The log file shows the following error:

2008-01-03 23:15:07.890625 [Info.][1]: WebEPG: SubLink Request http://www.tvgids.nl/programmadetail/?ID=6806707 POST:
2008-01-03 23:15:08.218750 [ERROR][1]: WebEPG: Fatal Error
2008-01-03 23:15:08.218750 [ERROR][1]: WebEPG: Index was outside the bounds of the array.
2008-01-03 23:15:08.218750 [Info.][1]: WebEPG: Finished


Any ideas?

<?xml version="1.0" encoding="utf-8"?>
<WebEPG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Info maxGrabDays="7" />
<ChannelMap>
<Channel id="ned3@omroep.nl" displayName="Nederland 3" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="rtl4.nl" displayName="RTL 4" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="bbc2@bbc.co.uk" displayName="BBC 2" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="cnni-emea@cnn.com" displayName="CNN International" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="zdf.de" displayName="ZDF" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="raiuno.rai.it" displayName="Rai Uno" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="ned1@omroep.nl" displayName="Nederland 1" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="ned2@omroep.nl" displayName="Nederland 2" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="rtl5.nl" displayName="RTL 5" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="sbs6.sbs.nl" displayName="SBS 6" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="rtl7.nl" displayName="RTL 7" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="veronica.sbs.nl" displayName="Veronica / Jetix" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="net5.sbs.nl" displayName="Net 5" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="ketnet.be" displayName="Ketnet / Canvas" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="rtvutrecht.nl" displayName="Regio TV Utrecht" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="discoverychannel.nl" displayName="Discovery Channel" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="nationalgeographic.nl" displayName="National Geographic" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="animalplanet.nl" displayName="Animal Planet" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="mtv.nl" displayName="MTV" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="nickelodeon.nl" displayName="Nickelodeon" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="tmf.nl" displayName="TMF" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="eurosport@eurosport.com" displayName="EUROSPORT" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="bbc1@bbc.co.uk" displayName="BBC 1" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="f@tv5.fr" displayName="TV 5 Monde" grabber="NL\1-www_tvgids_nl.xml" />
<Channel id="bbcworld.com" displayName="BBC World" grabber="NL\1-www_tvgids_nl.xml" />
</ChannelMap>
<Authentication />
</WebEPG>

TV-Server Version:
MediaPortal Version: 0.2.3.0
MediaPortal Skin:
Windows Version: XP SP2
CPU Type: Intel Pentium 4
HDD: 320GB Western Digital
Memory: 2GB Corsair
Motherboard: ASUS P4C
Motherboard Chipset:
Motherboard Bios:
Video Card: Raedeon
Video Card Driver:
Sound Card:
Sound Card AC3:
Sound Card Driver:
1. TV Card: Hauppauge PVR 150
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection:
 

Furetto

Moderator - Dutch Forums
April 11, 2005
664
61
52
Brussels
Home Country
Belgium Belgium
I used to have this issue as well, a few SVNs ago, after the big change you made for the apostrophe. Before yelling "Confirmed", I upgraded to tonight's SVN and the issue disappeared. As I posted in another thread, it seemed to be an issue with the Start and End tag in the Details Template.

So, Darren, try to update to latest SVN...

The other issue I had is still there nonetheless. Something goes wrong with the details section, I guess when using the *match and *value tags. I ran the grabber with these settings:

Code:
<?xml version="1.0" encoding="utf-8"?>
<WebEPG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Info maxGrabDays="1" />
  <ChannelMap>
    <Channel id="vitaya.be" displayName="Vitaya" grabber="BE\www_humo_be.xml" />
  </ChannelMap>
  <Authentication />
</WebEPG>

Using an older SVN version (not sure which one, but from before the Xmas update) I get for the 23h45 show:

Code:
  <programme start="20080105234500" stop="20080106001000" channel="Vitaya-vitaya.be">
    <title>Missing Persons Unit</title>
    <desc>Amerikaanse realityreeks waarin telkens een verdwijning wordt onderzocht.
Vandaag: Agent Darren Conabeer krijgt de zaak van een moeder die haar gezin in de steek liet toegewezen - agent Gary Melchiore is nog steeds op zoek naar Michael Veron, de man die acht dagen geleden uit een boot viel - agente Jane Sutcliffe krijgt de zaak toegewezen van Ronald Baars die sinds twee dagen vermist is. Zijn vrouw Kathy gaf haar man als vermist op nadat hij niet meer thuiskwam met zijn motor.</desc>
    <episode-num>5</episode-num>
  </programme>

Using the latest SVN, I get for this same show:

Code:
  <programme start="20080105234500" stop="20080106001000" channel="Vitaya-vitaya.be">
    <title>Missing Persons Unit</title>
  </programme>

Could you pretty please have a look at this ?
 

darren

New Member
January 4, 2008
3
0
Home Country
Netherlands Netherlands
I managed to get it working for 3 channels and 1 day. I thought it had something to do with an overrun whilst reading the schedule because regardless of how many days you request the URL always obtains 7 days.

This didn't work again when I scaled up. What I find strange is that from the logs I see that it fetches a number of programme details before stopping with this error.

If I try it with the SBS website (I found this in the same grabber directory as TV GIDS - /NL) then it fetches the schedule without an issue.

I will try to update to the latest SVN and see if that works too. I am currently using the normal release version.
 

Midget

Portal Pro
October 1, 2007
78
2
Siena
Home Country
Italy Italy
Similar error there using latest SVN...

This is the log:

Code:
2008-01-10 22.57.10.093750 [Info.][1]: WebEPG: Starting
2008-01-10 22.57.10.109375 [Info.][1]: WebEPG: Using directories
2008-01-10 22.57.10.109375 [Info.][1]:  WebEPG - C:\Programmi\Team MediaPortal\MediaPortal
2008-01-10 22.57.10.109375 [Info.][1]:  xmltv  - C:\Programmi\Team MediaPortal\MediaPortal\xmltv\
2008-01-10 22.57.10.109375 [Info.][1]: Assembly versions:
2008-01-10 22.57.10.109375 [Info.][1]: WebEPG 3.0.2.0
2008-01-10 22.57.10.109375 [Info.][1]: Utils 2.2.4.0
2008-01-10 22.57.10.140625 [Info.][1]: Loading Config File: C:\Programmi\Team MediaPortal\MediaPortal\WebEPG\WebEPG.xml
2008-01-10 22.57.10.500000 [Info.][1]: WebEPG: Loading Channel Config
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel RAIUNO ID: Rai 1
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel RAIDUE ID: Rai 2
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel RAITRE ID: Rai 3
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel Rete 4 ID: Rete 4
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel Canale 5 ID: Canale 5
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel Italia 1 ID: Italia 1
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel La 7 ID: La7
2008-01-10 22.57.10.500000 [Debug][1]:  Loading Channel MTV Italia ID: MTV Italia
2008-01-10 22.57.10.500000 [Info.][1]: WebEPG: Getting Channel ID: Rai 1
2008-01-10 22.57.10.500000 [Info.][1]:         [1 of 8]
2008-01-10 22.57.10.515625 [Info.][1]: WebEPG: Opening IT\alice_it.xml
2008-01-10 22.57.11.062500 [Info.][1]: WebEPG: Version: 2.1.0
2008-01-10 22.57.11.062500 [Info.][1]: WebEPG: TimeZone, Local: ora solare Europa occidentale
2008-01-10 22.57.11.062500 [Info.][1]: WebEPG: TimeZone, Site : W. Europe Standard Time
2008-01-10 22.57.11.140625 [Info.][1]: WebEPG: ChannelId: Rai 1
2008-01-10 22.57.11.140625 [Debug][1]: WebEPG: Grab Start 22.57 10/01/2008
2008-01-10 22.57.11.218750 [Info.][1]: WebEPG: Reading http://spettacolo.alice.it/guidatv/cgi/index.cgi?tipo=3&channel=1&day=10/01/2008 POST: 
2008-01-10 22.57.11.859375 [Info.][1]: WebEPG: Listing Count 42
2008-01-10 22.57.11.953125 [Info.][1]: WebEPG: Guide, Program Info: 20080110011500 - Tg1 - Tg1 Le idee - Che tempo fa
2008-01-10 22.57.11.968750 [Info.][1]: WebEPG: Program starts in the past, ignoring it.
....
....
2008-01-10 22.57.12.046875 [Info.][1]: WebEPG: Guide, Program Info: 20080110203000 - Soliti ignoti - Identità nascoste
2008-01-10 22.57.12.046875 [Info.][1]: WebEPG: Program starts in the past, ignoring it.
2008-01-10 22.57.12.046875 [Info.][1]: WebEPG: Guide, Program Info: 20080110213000 - Affari tuoi - Speciale per due
2008-01-10 22.57.12.046875 [Info.][1]: WebEPG: SubLink Request http://spettacolo.alice.it/guidatv/cgi/index.cgi?tipo=1&qs=10424442 POST: 
2008-01-10 22.57.12.312500 [Debug][1]: WebEPG: Getting sublinked data sucessful
2008-01-10 22.57.12.328125 [Info.][1]: WebEPG: Guide, Program Info: 20080110225500 - Tg1
2008-01-10 22.57.12.328125 [Info.][1]: WebEPG: SubLink Request http://spettacolo.alice.it/guidatv/cgi/index.cgi?tipo=1&qs=10415328 POST: 
2008-01-10 22.57.12.593750 [ERROR][1]: WebEPG: Fatal Error
2008-01-10 22.57.12.593750 [ERROR][1]: WebEPG: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
2008-01-10 22.57.12.593750 [Info.][1]: WebEPG: Finished

(I've removed a long series of similar lines from the log: "program starts in the past...")
Any idea ?

:D
 

pirlone

Portal Pro
October 21, 2005
220
5
Home Country
Croatia Croatia
same situation here... yesterdays svn... italian grabber from spettacolo.alice.it.
when i changed to adkronos, everything went well...

rgs,
pirlone
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Ok. I found the problem using alice.it

    It is now fixed in the SVN (17022).
     

    darren

    New Member
    January 4, 2008
    3
    0
    Home Country
    Netherlands Netherlands
    Still see the problem using my NL grabber. Here is the error message from Jame's WebEPG test program:

    ************** Exception Text **************
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at MediaPortal.Utils.Web.HtmlString.GetTagLength(String strSource, Int32 StartPos)
    at MediaPortal.Utils.Web.HtmlString.TagList(String source)
    at MediaPortal.Utils.Web.HtmlProfiler.BuildProfile(String source)
    at MediaPortal.Utils.Web.HtmlProfiler.MatchCount(String source)
    at MediaPortal.Utils.Web.HtmlParser.ParseUrl(HTTPRequest site)
    at MediaPortal.WebEPG.Parser.WebParser.GetLinkedData(ProgramData& data)
    at MediaPortal.WebEPG.WebListingGrabber.GetProgram(Int32 index)
    at MediaPortal.WebEPG.WebListingGrabber.GetListing(Boolean& error)
    at MediaPortal.WebEPG.WebListingGrabber.GetGuide(String strChannelID, Boolean Linked, Int32 linkStart, Int32 linkEnd, DateTime startDateTime)
    at MediaPortal.EPG.WebEPGTester.fTester.bRun_Click(Object sender, EventArgs e) in D:\Dev\MediaPortal\WebEPG\WebEPG-Tester\Tester.cs:line 423
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    WebEPG-Tester
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Temp/webepg/WebEPG-Tester.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Utils
    Assembly Version: 2.2.0.0
    Win32 Version: 0.2.2.9991
    CodeBase: file:///C:/Temp/webepg/Utils.DLL
    ----------------------------------------
    WebEPG
    Assembly Version: 2.4.8.0
    Win32 Version: 2.4.8.0
    CodeBase: file:///C:/Temp/webepg/WebEPG.DLL
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    312ljv_m
    Assembly Version: 2.4.8.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    Databases
    Assembly Version: 0.2.2.9991
    Win32 Version: 0.2.2.9991
    CodeBase: file:///C:/Temp/webepg/Databases.DLL
    ----------------------------------------
    System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
    ----------------------------------------
    Core
    Assembly Version: 0.2.2.9991
    Win32 Version: 0.2.2.9991
    CodeBase: file:///C:/Temp/webepg/Core.DLL
    ----------------------------------------
    System.ServiceProcess
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
     

    Users who are viewing this thread

    Top Bottom