bugGnash - The GNU Flash player - Bugs: bug #21268, XML not displayed properly

 
 

bug #21268: XML not displayed properly

Submitted by:  Ludovico Fischer <ludovico_fischer>
Submitted on:  Fri 05 Oct 2007 11:36:18 PM UTC  
 
Category: pluginSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Benjamin Wolsey <bwy>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 15 Nov 2007 08:41:28 AM UTC, comment #9:

I confirm the fix. Other problems seem to be the TextField
height isn't enforced and the scrolling doesn't work.
I suggest submitter (or anyone else) to file another bug report for it.

Sandro Santilli <strk>
Project Member
Thu 15 Nov 2007 08:17:03 AM UTC, comment #8:

I've hijacked this bug, since the original problem (probably segfault / abort) was evidently fixed in head before the bug was submitted.

Something (I assume strk's as_environment change) has fixed Bejewelled.swf, so as far as I'm concerned this bug can be closed.

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Tue 13 Nov 2007 05:39:04 PM UTC, comment #7:

Try this option in XML::getXMLOptions():

XML_PARSE_NOCDATA = 16384 : merge CDATA as text nodes

From:

http://xmlsoft.org/html/libxml-parser.html#xmlParserOption

Sandro Santilli <strk>
Project Member
Tue 13 Nov 2007 05:05:37 PM UTC, comment #6:

And regsite.swf (the news page) works if you strip out the <![CDATA[ and ]]> parts. So XML isn't completely broken.

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Tue 13 Nov 2007 05:01:33 PM UTC, comment #5:

regsite.swf has the data stored like this:
<id><![CDATA[9058]]></id>
<artist_id><![CDATA[395]]></artist_id>
<date><![CDATA[10/19/07]]></date>
<name><![CDATA[VH1 20 Countdown 10/20/07]]></name>
<title><![CDATA[October 19, 2007]]></title>
...

which gnash also reads as empty data.

http://www.kirupa.com/web/xml/XMLbasics6.htm discusses CDATA nodes.

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Tue 13 Nov 2007 04:27:38 PM UTC, comment #4:

One bug with the bejeweled case seems to be that comments ( <!-- --> ) are added as a child to the parent node, and when gnash looks up firstChild.nodeValue, an empty string is returned instead of the string it's looking for.

19796] 17:20:20: Deleting XMLNode data text with value at 0xaf06a0
19796] 17:20:20: Deleting XMLNode data with value at 0xaf08f0
19796] 17:20:20: Deleting XMLNode data with value PLAY AGAIN at 0xaf0bb0
19796] 17:20:20: Deleting XMLNode data font with value at 0xaf0df0
19796] 17:20:20: Deleting XMLNode data with value at 0xaf1040
19796] 17:20:20: Deleting XMLNode data with value Halfmoon at 0xaf1300
19796] 17:20:20: Deleting XMLNode data size with value at 0xaf1540
19796] 17:20:20: Deleting XMLNode data with value at 0xaf1790
19796] 17:20:20: Deleting XMLNode data with value 14 at 0xaf1a50

The first child in each case comes from the comment and is completely empty.

Stripping the comments out of the xml file below shows an improvement with gnash -va (i.e. the correct strings are set), but they don't show up on the movie itself.

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Tue 13 Nov 2007 02:03:21 PM UTC, comment #3:

This is also affected by the an XML problem (offline testing just needs both files in the same directory or setting the base URL).

http://www.popcap.com/games/diamondmine/Bejeweled.swf?doGetURL=1

http://www.popcap.com/games/diamondmine/bejeweled.xml

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Sat 06 Oct 2007 06:53:17 AM UTC, comment #2:

Works fine for me too. The text problems are partly another case of failing to handle XML.

SWF: http://www.reginaspektor.com/regsite.swf

'News' XML: http://www.reginaspektor.com/multi_post/news.php

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Sat 06 Oct 2007 05:47:51 AM UTC, comment #1:

Seems to work with gnash head, except for other bugs in text rendering.

Sandro Santilli <strk>
Project Member
Fri 05 Oct 2007 11:36:18 PM UTC, original submission:

http://www.reginaspektor.com/index2.html

Ubuntu Gutsy 7.10, x386. Firefox (2.0) plug-in. The site says it just requires Flash 7, but nothing is displayed except a coloured background.

Ludovico Fischer <ludovico_fischer>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #14378:  why-do-these-fail-relative.swf added by bwy (10KiB - application/x-shockwave-flash)
file #14377:  why-do-these-fail.swf added by bwy (10KiB - application/x-shockwave-flash)
file #14376:  XMLNode-v7.swf added by None (2KiB - application/x-shockwave-flash)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by ludovico_fischer (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 15 Nov 2007 01:47:00 PM UTCbwyStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 15 Nov 2007 08:17:03 AM UTCbwyStatusIn Progress=>Ready For Test
      SummaryWeb page displays as monochrome backgound=>XML not displayed properly
    Tue 13 Nov 2007 05:39:04 PM UTCstrkStatusNone=>In Progress
      Assigned toNone=>bwy
    Tue 13 Nov 2007 02:19:55 PM UTCbwyAttached File-=>Added why-do-these-fail-relative.swf, #14378
    Tue 13 Nov 2007 02:03:55 PM UTCbwyAttached File-=>Added why-do-these-fail.swf, #14377
    Tue 13 Nov 2007 01:02:38 PM UTCNoneAttached File-=>Added XMLNode-v7.swf, #14376

    Back to the top


    Powered by Savane 3.1-cleanup1