INTERACT FORUM

More => Old Versions => Media Center 13 (Development Ended) => Topic started by: jonkjon on September 03, 2009, 01:16:00 pm

Title: Out of memory error loading xmltv guide
Post by: jonkjon on September 03, 2009, 01:16:00 pm
While loading the xmltv guide data, i receive an out of memory error and no data loads. I am running Vista Ultimate SP2 with 4 gb ram and a q8200 cpu. Thanks in advance.
Title: Re: Out of memory error loading xmltv guide
Post by: Matt on September 03, 2009, 01:27:48 pm
While loading the xmltv guide data, i receive an out of memory error and no data loads. I am running Vista Ultimate SP2 with 4 gb ram and a q8200 cpu. Thanks in advance.

Would you be able to to send a copy of the XMLTV file you're parsing to matt at jriver dot com?  Compress it if possible.

Thanks.
Title: Re: Out of memory error loading xmltv guide
Post by: Matt on September 03, 2009, 03:12:55 pm
Thanks for the file.  I see the out-of-memory error too.

We're using in-memory parsing of XMLTV.  It looks like the grow-by-chunks allocation when loading UTF-8 (the XML) to UTF-16 (used inside the program) is a problem on a huge file like that.

Media Center 14.0.63 (available in about a week on the v14 board) will have a more memory efficient parser.  It will still use 300 MB for that file, but that should be alright for a short burst.

The next step would be a disk-based record-by-record parser, but I don't think that will be necessary.

Thanks again for the help.
Title: Re: Out of memory error loading xmltv guide
Post by: jonkjon on September 03, 2009, 05:16:55 pm
You're sure welcome. Is there something that i can do to get around this in mc13 or am i just out of luck?.....
Title: Re: Out of memory error loading xmltv guide
Post by: Matt on September 04, 2009, 09:25:49 am
Sorry, but any new changes will be in v14 only.

v14 is stable and our recommended download now. 

Television in v14 has recently had some nice improvements for how series and metadata is handled that you might like.  We hope to put out a build this weekend with the updated XML parser.