NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 30 31 32 33 34 … 433 Next »
Invalid character in EPG data/Unicode error

Invalid character in EPG data/Unicode error
ZXGuesser
Offline

Junior Member

Posts: 6
Threads: 3
Joined: Jul 2017
#1
2018-04-15, 06:01 PM
Hi, I'm having an issue where recordings of a programme fail, and can't be deleted, because of an invalid character in the programme description.

The relevant log lines are variations on the following:
Code:
[ERROR][1]    Unexpected error parsing EPGEvent xml: System.Xml.XmlException: '', hexadecimal value 0x19, is an invalid character. Line 5, position 161.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
   at System.Xml.XmlTextReaderImpl.ParseText()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at NUtility.EPGEvent.Parse(String xml)

In each case it's a character 0x19 in place of what should evidently be U+2019 right single quotation mark. The description is stored (with the invalid character) in the database, but the UI shows the description blank in the pending recordings list. They fail with Object reference not set to an instance of an object, and generate an unhandled exception for the same if trying to cancel them.

Looking at the database there are examples of the 0x19 getting into the description strings of epg events across many channels.

I first encountered the problem a few days ago running the previous version and have since reinstalled with 4.1.1.180410
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#2
2018-04-15, 06:11 PM
Can you supply your npvr.db3, so I can check a couple of things?
ZXGuesser
Offline

Junior Member

Posts: 6
Threads: 3
Joined: Jul 2017
#3
2018-04-15, 06:36 PM (This post was last modified: 2018-04-15, 06:41 PM by ZXGuesser.)
sub Wrote:Can you supply your npvr.db3, so I can check a couple of things?

ok
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#4
2018-04-15, 06:43 PM
Thanks - what show was it?
ZXGuesser
Offline

Junior Member

Posts: 6
Threads: 3
Joined: Jul 2017
#5
2018-04-15, 07:19 PM
Randall and Hopkirk (Deceased), but I've just tried scheduling a one off recording of another show containing that 0x19 character in the epg_event description field and it generated just the same error in the log.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#6
2018-04-15, 07:56 PM
Sorry to be a pain, but looks like the DVB EPG parser isn't handling this data correctly and I'd like to fix this the right way....

Is there any chance you could download/install the eval version of TSCapture from http://tscapture.com, and capture a 1 minute full transport stream of that channel, and put the file somewhere like dropbox or onedrive for me to download? That way I can put it through the signal generator here, and watch what's happening when it pulls in these listings.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#7
2019-02-07, 04:24 PM
Hi sub I got a database from a user and after a bit of research I figured out how to search hex with sqlite using the LIKE '%'||cast(X'19' as text)||'%' command

What I see is the text actually have several hex characters and they were the low bytes of 0x2013 0x2018 0x2019 and 0x201c and 0x201d which seemed to match this table https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html I am not sure if you parse the table as double byte but that might help if you never get the raw stream.

There were a few instances of 0x0a and 0x0d in there too. Not sure if you encode them for sending in xml.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  No data received jcole998 1 212 2025-04-15, 03:08 PM
Last Post: mvallevand
  Mouse Click on TV Guide throws an error mlopez1007 2 1,403 2021-03-22, 11:33 AM
Last Post: Graham
  No data delivered/failed to lock a signal? from Hauppauge HDHR/DCR-2650 bishoph 8 3,542 2020-04-13, 09:55 PM
Last Post: sub
  OTA EPG guide data only for 2 hrs acegolfer 6 3,532 2020-03-18, 08:30 PM
Last Post: mvallevand
  Unhandled Exception Error Message reedaf4 23 7,132 2020-03-13, 05:03 PM
Last Post: sub
Photo Server database error mnthope 4 2,174 2019-12-23, 11:28 PM
Last Post: sub
  Channles loosing EPG data Brucek2839 5 2,252 2019-11-21, 03:17 AM
Last Post: mvallevand
  HDHR Recordings Include Data From Wrong Channel During Post-Padding BrettB 2 5,186 2019-10-12, 05:34 PM
Last Post: mvallevand
  Framework Error Mroctober 1 1,167 2019-09-25, 03:13 PM
Last Post: Graham
  EPG error message djregehr 3 1,599 2019-08-09, 05:50 PM
Last Post: djregehr

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode