This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12345 - Amaya crashes on loading xml object pointing to xml file with mml inside
Summary: Amaya crashes on loading xml object pointing to xml file with mml inside
Status: RESOLVED WONTFIX
Alias: None
Product: Amaya
Classification: Unclassified
Component: XML (show other bugs)
Version: 11.3.1
Hardware: PC Windows 3.1
: P2 blocker
Target Milestone: ---
Assignee: lcarcone
QA Contact: lcarcone
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 10:22 UTC by Netsaver
Modified: 2014-05-26 18:32 UTC (History)
6 users (show)

See Also:


Attachments
kidding (28.19 KB, image/gif)
2014-05-24 10:03 UTC, azza
Details

Description Netsaver 2011-03-20 10:22:11 UTC
1. create a test xml file with mml code inside (see prova.xml attached):

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>prova</title>
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
</head>
<body>
<p><math xmlns="http://www.w3.org/1998/Math/MathML">
... mml code ...
</math></p>
</body>
</html>

2.test the correct visualization of the formula on Amaya and external browser (I use Firefox 4.0 RC2)

3. copy the test.xml file to an other linked_test.xml clone file (see prova2.xml attached)

4. add an object to the xml code pointing to the clone file:
<p>object: <object data="linked_test.xml" style="display: block; text-align: center; margin-left: auto; margin-right: auto">
  linked formula</object></p>

5. test the correct visualization of the two identical formulas on Amaya and external browser

6. exit amaya and restart it again

7. load the test.xml file: on loading the file, the crash happens, locking the whole interface up to external kill

8. to recover the file editing: kill Amaya and open text.xml in an external text editor

9. modify the linked file address as a non existing one, e.g. linked_text2.xml

10. open again the test.xml file in Amaya and restore the correct address (linked_test.xml)

11. note that both formulas are now displayed correctly and continue editing

Conclusion: when linking an external xml object file with mml code inside, Amaya is able to correctly interpret and display it along the same session where the object was created, likely exploiting some internal structure built at object creation time. In succeeding sessions, this internal structure is no more available and it is requested to rebuild it by creating the object again.

[tested on Windows Vista, Windows XP and Windows 7]
Comment 1 azza 2014-05-24 10:03:53 UTC
Created attachment 1480 [details]
kidding
Comment 2 lcarcone 2014-05-26 18:32:12 UTC
(In reply to azza from comment #1)
> Created attachment 1480 [details]
> kidding