Page MenuHomePhabricator

"Test Comparing the generated SVG with the reference failed."
Open, Needs TriagePublic

Description

[sudleypl@sl-508-24 mw19]$ uname -a
Linux sl-508-24.slc.westdc.net 3.10.0-962.3.2.lve1.5.32.el7.x86_64 #1 SMP Fri Feb 28 07:18:51 EST 2020 x86_64 x86_64 x86_64 GNU/Linux

I'm trying to install the Math extension to Mediawiki 1.34.1. I first tried

  • Downloading extension Math-REL1_34-b1a022f (stable MediaWiki) into a clean Math directory in my extensions folder.
  • Run php maintenance/update.php
  • Loaded http://nars2000.us/mw19/index.php?title=Special:MathStatus with the results:
    • Test Rendering the input "x^2+\text{a sample Text}" succeeded.
    • Test Comparing to the reference rendering succeeded.
    • Test Rendering of a+b in plain MathML mode succeeded.
    • Test Checking the presence of '+' in the MathML output succeeded.
    • Test Comparing the generated SVG with the reference failed.
    • Test Checking if MathML input is supported succeeded.
    • Test Rendering Presentation MathML sample failed.
    • Test Checking if the link to SVG image is correct failed.

I searched around for " Comparing the generated SVG with the reference failed" without learning anything about how to fix it.

Next,

Internal Error

  • [Xs1wC2eECk@QqJI7jdpuvwAAAAc] /mw19/index.php?title=Special:MathStatus Error from line 175 of /home/sudleypl/public_html/nars2000.org/mw19/extensions/Math/src/MathRestbaseInterface.php: Call to undefined method MediaWiki\Http\HttpRequestFactory::createMultiClient()

AFAICT, it appears that the master branch version of Math uses features in MW 1.35 which is not quite out as yet, but I might be misreading the tea leaves.

Any suggestions as to where to go now?

Event Timeline

Any suggestions as to where to go now?

I'd recommend following https://www.mediawiki.org/wiki/Topic:T6y4k5rdw0a4wwa9 and setting up a debug log to see what's happening.

Thanks for the reference. I forgot to mention previously that my LocalSettings file also contains:

wfLoadExtension ('Math');
$wgDefaultUserOptions['math'] = 'mathml';
$wgUseTeX = true;

I enabled almost all the DEBUG statements. Using the Math-1.34 extension, the Special:MathStatus page still failed for the three tests:

Test Comparing the generated SVG with the reference failed.
Test Rendering Presentation MathML sample failed.
Test Checking if the link to SVG image is correct failed.

The rest of the tests succeeded.

The Debug Data: section contained many messages. The ones that stood out were

  • [SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for sudleypl_wikidb-NARS_:messages:en.

Looks harmless.

  • [Math] NoResponse:array (

'post' => 'type=mml&q=%3Cmath%3E%3Cmsub%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20P%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20i%3C%2Fmi%3E%20%20%3Cmi%3E%20j%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%3C%2Fmsub%3E%20%20%3Cmo%3E%20%3D%3C%2Fmo%3E%20%20%3Cmfrac%3E%20%20%3Cmrow%3E%20%20%3Cmn%3E%20100%3C%2Fmn%3E%20%20%3Cmsub%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20d%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20i%3C%2Fmi%3E%20%20%3Cmi%3E%20j%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%3C%2Fmsub%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmn%3E%206.75%3C%2Fmn%3E%20%20%3Cmsub%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20r%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20j%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%3C%2Fmsub%3E%20%3C%2Fmrow%3E%20%3C%2Fmfrac%3E%20%20%3Cmo%3E%20%2C%3C%2Fmo%3E%20%3C%2Fmath%3E%3C%2Fmath%3E',
'host' => 'http://mathoid.testme.wmflabs.org',
'errormsg' => '<ul><li>Error fetching URL: Could not resolve host: mathoid.testme.wmflabs.org</li>
<li>There was a problem during the HTTP request: 0 Error</li></ul>
',
)

Not sure how harmless this one is. In fact, the referenced domain doesn't exist.

  • The above error occurred once again, after which there were no other errors.
Aklapper renamed this task from Problem Installing Math Extension to Problem Installing Math Extension: Could not resolve host: mathoid.testme.wmflabs.org.May 27 2020, 8:13 AM

Thanks for the reference to http://mathoid.testme.wmflabs.org not working. I edited extension.json to change the host to https://mathoid-beta.wmflabs.org which removes two of the three errors. Now I'm left with

Test Comparing the generated SVG with the reference failed.

The debug section has two entries with No entry found in database. , e.g.

[Math] Start rendering ${\displaystyle x^2+\text{a sample Text}}$ in mode mathml
[Math] Start rendering ${\displaystyle a+b}$ in mode mathml
[Math] No entry found in database.

and

[Math] Picking host https://mathoid-beta.wmflabs.org
[Math] Get post data: type=mml&q=%3Cmath%3E%3Cmsub%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20P%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20i%3C%2Fmi%3E%20%20%3Cmi%3E%20j%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%3C%2Fmsub%3E%20%20%3Cmo%3E%20%3D%3C%2Fmo%3E%20%20%3Cmfrac%3E%20%20%3Cmrow%3E%20%20%3Cmn%3E%20100%3C%2Fmn%3E%20%20%3Cmsub%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20d%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20i%3C%2Fmi%3E%20%20%3Cmi%3E%20j%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%3C%2Fmsub%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmn%3E%206.75%3C%2Fmn%3E%20%20%3Cmsub%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20r%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%20%3Cmrow%3E%20%20%3Cmi%3E%20j%3C%2Fmi%3E%20%3C%2Fmrow%3E%20%3C%2Fmsub%3E%20%3C%2Fmrow%3E%20%3C%2Fmfrac%3E%20%20%3Cmo%3E%20%2C%3C%2Fmo%3E%20%3C%2Fmath%3E%3C%2Fmath%3E
[Math] Start rendering ${\displaystyle <msub> <mrow> <mi> P</mi> </mrow> <mrow> <mi> i</mi> <mi> j</mi> </mrow> </msub> <mo> =</mo> <mfrac> <mrow> <mn> 100</mn> <msub> <mrow> <mi> d</mi> </mrow> <mrow> <mi> i</mi> <mi> j</mi> </mrow> </msub> </mrow> <mrow> <mn> 6.75</mn> <msub> <mrow> <mi> r</mi> </mrow> <mrow> <mi> j</mi> </mrow> </msub> </mrow> </mfrac> <mo> ,</mo> </math>}$ in mode mathml
[Math] No entry found in database.

Am I to infer that the result of a test SVG rendering is checked against a database in the new MathMathMLUrl host and because a match is not found the test fails? If that's the case, then it looks like I can safely ignore this error.

Aklapper renamed this task from Problem Installing Math Extension: Could not resolve host: mathoid.testme.wmflabs.org to "Test Comparing the generated SVG with the reference failed.".Dec 31 2020, 11:25 AM