ianharrigan / mathmlformula

Automatically exported from code.google.com/p/mathmlformula
1 stars 0 forks source link

Crash when converting invalid TeX to MathML #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. have an invalid tex string like "\begin{array} a & b \\ c & d \end{aray}" 
(if you type it in source code, you need to escape the backslahes; just notice 
the missing "r" in the second "array")
2. try to convert it width ConvertFromLatexToMathML.convertToMathML(tex)

Expected result:
 - some meaningfull MathML should be returned or 
 - an Error should be thrown or 
 - an ErrorEvent should be dispatched 

Actual result:
Flash Plugin freezes, consuming 100% CPU load and finally crashes. 

I'm trying to implement a pure AS3 application that renders tex user input 
just-in-time. With the current behaviour this is simply impossible, because 
there's no chance I can handle invalid user inputs. :-/

Original issue reported on code.google.com by morrand...@googlemail.com on 26 Oct 2012 at 12:49

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ionel.alexandru@gmail.com on 26 Oct 2012 at 12:58

GoogleCodeExporter commented 8 years ago

Original comment by ionel.alexandru@gmail.com on 6 Nov 2012 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by ionel.alexandru@gmail.com on 2 Dec 2012 at 4:14