Math Processing Error (error log included)

775 views
Skip to first unread message

cole....@gmail.com

unread,
Dec 13, 2013, 12:07:22 AM12/13/13
to mathja...@googlegroups.com
We've been getting a few math processing errors infrequently.  We were able to reproduce it today and run MathJax.Hub.lastError.message. This is the output it produced:

[MathJax]/jax/input/TeX/jax.js failed to load properly

Does anyone have any idea what could be causing this, or how to fix it?  Is there any other investigation we need to do?  We are running MathJax 2.2.  We've gotten the error on Firefox a couple times, but I believe we've seen it in IE as well.

Thanks,
Cole
Message has been deleted

cole....@gmail.com

unread,
Dec 13, 2013, 10:51:47 AM12/13/13
to mathja...@googlegroups.com, cole....@gmail.com
I just did an alert(MathJax.Message.Log()) as well, and here is the full log:

Loading [MathJax]/config/default.js
Loading [MathJax]/jax/input/TeX/config.js
Loading [MathJax]/jax/output/HTML-CSS/config.js
Loading [MathJax]/extensions/jsMath2jax.js
Loading [MathJax]/jax/element/mml/jax.js
Loading [MathJax]/jax/input/TeX/jax.js
Loading [MathJax]/jax/output/HTML-CSS/jax.js
Loading [MathJax]/extensions/MathMenu.js
Loading [MathJax]/extensions/MathZoom.js
File failed to load: mathjax/jax/element/mml/jax.js
File failed to load: mathjax/jax/input/TeX/jax.js
File failed to load: mathjax/jax/output/HTML-CSS/jax.js
Loading [MathJax]/extensions/MathEvents.js
Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Peter Krautzberger

unread,
Dec 13, 2013, 1:28:34 PM12/13/13
to mathja...@googlegroups.com
Hi,

This usually indicates a connection issue -- as you probably guessed, MathJax is unable to load its files. There's not much more we can say from this limited amount of information. It's always best to provide a live sample (either a page or something like jsfiddle), state which browser versions and OS versions are involved etc -- see the User Group guidelines for more information.

Thanks,
Peter.


On Thu, Sep 5, 2013 at 8:13 PM, Ronald Chen <ronal...@gmail.com> wrote:
The mathjax display symbols of square root or vectors with a  bending line problem.
as shown below

It happens in Chrome ,and sometimes happens in Firefox.

How do  i fix it?

Ronald



--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

cole....@gmail.com

unread,
Dec 14, 2013, 12:46:47 AM12/14/13
to mathja...@googlegroups.com
Thanks, Peter.  Unfortunately, I can't give public access to the page I'm working on, but I tried to create a JSFiddle that's similar.  You can find it at http://jsfiddle.net/GtwTS/.

The browser we saw the issue with most recently was Firefox 18.0.2.  We've also seen it on a later version of Firefox, I believe something like 25.  I know we've seen it on Windows XP, and I believe we've seen it on Windows 7 as well.

Do you have any idea what could cause MathJax to be unable to load its files?  Could it be the way I'm configuring it, or would it be issues with the server serving the files?

Davide P. Cervone

unread,
Dec 14, 2013, 9:48:32 AM12/14/13
to mathja...@googlegroups.com
Are you using MathJax from our CDN, or from your own site?  The log messages suggest that it is from a copy on your own server.  It may be that the load on your server is delaying transmission of some files, and MathJax times out waiting for them to arrive.  For example, your Message.Log() suggests that mathjax/jax/element/mml/jax.js has timed out.  MathJax waits for 15 seconds for a file, and gives up if it takes longer than that.  You didn't give your configuration, but it appears that you aren't using a combined configuration file, which might help in these situations, since there are fewer files to download and less chance that one will time out.

If you want to lengthen the time out time and see if that helps, that can be done by adding

<script type="text/x-mathjax-config">
MathJax.Ajax.timeout = 20 * 1000;  // 20 seconds
</script>

(change the number of seconds to whatever you want).

Davide

cole....@gmail.com

unread,
Jan 27, 2014, 1:18:10 PM1/27/14
to mathja...@googlegroups.com
Sorry it's been so long since I've responded to this.  I got assigned to work on some other stuff for a while, but I'm back working on this now.

Yes, we are using a copy of MathJax on our own server, not the CDN.  We were also using the default.js configuration file rather than a combined configuration file.

I made some changes based on your recommendation.  I switched from using default.js to using TeX-AMS_HTML.js, and I'm using the local/local.js file to make the extra configurations I need.  So now we are calling MathJax like this:

<script type="text/javascript" src="js/mathjax/MathJax.js?config=TeX-AMS_HTML.js,local/local.js"></script>

We were also registering some startup hooks after the initial call to MathJax, but now I placed those in the local/local.js file instead.  I'm not sure if that makes a difference or not.  Anyway, I'm now seeing that MathJax is loading fewer files.  We are starting some automated tests now to see if we'll still get the math processing error.  I'll reply back with the results.  Last time it took our automated tests a couple days before the error came up, so it may be a bit before we know.

Thanks,
Cole
Message has been deleted

cole....@gmail.com

unread,
Feb 4, 2014, 12:08:47 PM2/4/14
to mathja...@googlegroups.com
Good news...  We've run lots of automated tests and haven't seen the math processing error again, so it seems like this fixed the problem.  Thanks for your help!

Do you think that registering startup hooks after the initial call to MathJax could have had anything to do with the issue, or do you think it completely had to do with not using a combined configuration file?

Thanks,
Cole

Davide P. Cervone

unread,
Feb 20, 2014, 3:08:10 PM2/20/14
to mathja...@googlegroups.com
Sorry for the long delay in getting back to you. I've been spending my time actually doing development rather than tech support. :-)

> Good news... We've run lots of automated tests and haven't seen the math processing error again, so it seems like this fixed the problem. Thanks for your help!

That IS good news. I'm glad that you seem to have resolved the timing issues.

> Do you think that registering startup hooks after the initial call to MathJax could have had anything to do with the issue, or do you think it completely had to do with not using a combined configuration file?

Yes, setting startup hooks after MathJax.js is loaded could be an issue. While you will still receive all the signals, they may have happened some time in the past (they are buffered and sent to you when you register the hook if you register after they are done). So it might be that you are reacting to things at the wrong time. but I'd need to know what hooks and what actions you are taking to say anything more concrete.

Davide
Reply all
Reply to author
Forward
0 new messages