NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 … 121 122 123 124 125 Next »
Bug in RssReader with translations?

 
  • 0 Vote(s) - 0 Average
Bug in RssReader with translations?
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#1
2005-04-27, 04:11 PM (This post was last modified: 2005-04-30, 07:49 AM by alibert.)
Hi,

I think there is a little Bug in the RssReader Plugin when having a language.xml file in use.

Here is the stack trace:

Code:
************** Ausnametext **************
System.Xml.XPath.XPathException: '/language/translate[@originalText="Error: '/language/translate[@originalText="Na, und worum geht's?" Christian Rahn gestaltet den Gesprchseinstieg herausfordernd. Weil er wei, dass seine Geschichte den Stoff liefert fr Klischeebehaftetes. "Absturz eines Jungstars" zum Beispiel. Oder: "Ein Nationalspieler als Zweitliga-Ersatz.""]' ist ein ungltiger Token."]' ist ein ungltiger Token.
   at System.Xml.XPath.XPathParser.ParseStep(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseLocationPath(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput)
   at System.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion)
   at System.Xml.XPath.XPathNavigator.Compile(String xpath)
   at System.Xml.XPath.XPathNavigator.Select(String xpath)
   at System.Xml.XmlNode.SelectSingleNode(String xpath)
   at GBPVR.Public.SkinHelper.getTranslation(String text)
   at cg.a(Boolean& A_0)
   at q.r()
   at cg.b(String A_0)
   at q.a(Message& A_0)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I think it happens when trying to translate a text body from a rss news with invalid (non ANSI?) characters in it.

Maybe such strings could be excluded from translation?

-alibert
HenkH
Offline

Member

Posts: 100
Threads: 6
Joined: Mar 2005
#2
2005-04-27, 11:32 PM
Are you sure the RSS plugin is to blame? When I look at the trace you posted I can't see any reference to the RSS plugin. The appearance of obfusicated classes/methods might indicate the error occurs in the base GB-PVR application or one of the standard skins. The RSS-plugin doesn't explicitly call any of the language functions.

If you post a link to the offending feed and your language.xml I will look into it.
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#3
2005-04-28, 06:13 AM (This post was last modified: 2005-04-28, 06:16 AM by alibert.)
Hi,

of course I'm not sure if it is the plugin which crashes the application. I thought because of the call of "GBPVR.Public.SkinHelper.getTranslation(String text)" that the plugin is actively trying to translate the text.

Here is the additional information:

The feed is: http://photodb.kicker.de/library/rss091/kicker.xml , for example.

My language.xml file is attached.

Thanks for your help,

-alibert
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#4
2005-04-30, 07:48 AM (This post was last modified: 2005-04-30, 07:50 AM by alibert.)
Hi,

I've just tried a very basic language.xml file, containing just those two entries:

Code:
<language>
    <translate originalText="TV Guide" translatedText="blahblah"/>
    <translate originalText="Search Guide" translatedText="ascacs"/>
</language>

Again, the application crashed when reading a RSS-Feed. Then, I investigated that the exception always occurs when the character >"< is in the feed (a double quote / quotation mark).
So I don't think that it has something to do with any translations or country-specific characters in the feed.
[I've changed the topic title accordingly]

-alibert
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#5
2005-04-30, 10:31 AM
Hi again,

I've downloaded the sourcecode for the news plugin and added three string-replacement operations to avoid the double-quotes to be displayed. I replaced them with two single-quotes (" to ''), which should look okay with most proportional fonts

It seemed that when drawing things via the SkinHelper, strings are automatically tried to be translated.

I've attached the modified file RssFeed.cs.

-alibert
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2005-04-30, 02:52 PM
The feed then is sending non-valid XML if they aren't escaping the double quotes/quotation marks with &quote;. In order for it to be a well formed XML document it needs to have that escape code anytime a quote appears in the text. Same thing goes for an ampersand appearing in the text.
rumbert
Offline

Junior Member

Posts: 5
Threads: 0
Joined: Apr 2005
#7
2005-04-30, 07:04 PM
Hi, I have the same problem. I'm using translation spanish language.xml file, and when I'm reading rss feeds GBPVR hangs.

The attach file is the window message results.

Without the translation file, GBPVR runs ok.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#8
2005-04-30, 07:07 PM
Just stop using those badly formed RSS feeds, or report the problem to the respective websites that are supplying the RSS information.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  RSSReader and GMail ? techguy 9 3,340 2006-03-25, 10:53 PM
Last Post: McBainUK
  rssreader task-image?! dottore 0 1,102 2006-01-30, 08:00 PM
Last Post: dottore
  RssReader isgdre 4 2,113 2006-01-25, 06:39 PM
Last Post: ljalg
  RSSReader font size isgdre 2 1,577 2005-10-21, 12:38 AM
Last Post: isgdre
  Wellington Webcams - RSSReader psycik 3 2,160 2005-09-19, 10:35 PM
Last Post: tieke

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

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

Linear Mode
Threaded Mode