Do you notice a pattern for what is causing the error? For example, does it only occur in posts that have a lot of formulas in them?
When the error happens again, if you are able to open your browser’s web inspector to its console tab, it is possible there will be some relevant errors. If you could share those with is it might help to debug the issue.
So I dug into the problem and here are my observations:
It is not related with the number of formulas
Web inspector doesn’t show any problem
It happens on formulas which contain an array (such as matrix) - \begin\array
The problem does not appear randomly, there is a precise way to reproduce it:
I have to go on my Discourse forum homepage, using anonymous mode in browser
I have to open any topic which does not contain an array
Then come back to homepage
Then go in a topic which contain an array : the problem occurs
If I reload, the problem disappears (or if I go to any other topic with array inside, no problem)
If I open directly a topic with an array (direct link), the problem doesn’t occur.
I did several searches on the Internet with the keywords “Math Processing Error”, “Math Processing Error latex”, “Math Processing Error mathjax”, “Math Processing Error array”. No result found, so I am wondering if this problem doesn’t happen only to me.
Anyway I switched to KateX, and there is no more problem.
Moreover KateX solved another issue: formulas too long which don’t fit mobile screen.
I had another issue when I use “!” (factorielle) in a formula, which triggered another error message “Undefined control sequence \mathchoice”, randomly without a pattern to reproduce it. I don’t know if this problem is related with the first one, but it was also solved by using KateX.
So my final thought is that I’m gonna use KateX instead of Mathjax.