Last modified: 2014-11-18 16:57:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75090, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73090 - LaTeXML: Ackermann page is rerendered over and again
LaTeXML: Ackermann page is rerendered over and again
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Lowest minor (vote)
: ---
Assigned To: physikerwelt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-06 19:28 UTC by physikerwelt
Modified: 2014-11-18 16:57 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description physikerwelt 2014-11-06 19:28:37 UTC
The page of the Ackermann function
https://en.wikipedia.org/wiki/Ackermann_function#Expansion
in LaTeXML rendering mode that is enabled for example here
http://ntcir11-wmc.nii.ac.jp/index.php/Ackermann%20function
rerenderes the long expansion on every page visit.
Comment 1 physikerwelt 2014-11-06 19:42:04 UTC
It seems to be a problem with the database layout.
The mathml column is too short...
  Select count(l), l from (SELECT length(math_mathml) l FROM mediawiki.mathlatexml order by length(math_mathml) desc) t group by l order by l desc;
Indicates that 35/312240 mathml expression are longer than 65535.
Comment 2 physikerwelt 2014-11-06 19:43:36 UTC
The Latexml table can be updated via
ALTER TABLE `mathlatexml` 
CHANGE COLUMN `math_mathml` `math_mathml` MEDIUMBLOB NULL DEFAULT NULL ;
Comment 3 physikerwelt 2014-11-06 19:52:58 UTC
After the update the affected pages need to be rerendered.
The affected pages can be obtained via
select distinct mathindex_page_id as oldid from mathlatexml join mathindex on mathindex_inputhash = math_inputhash where length(math_mathml)=65535;

This list can be used for manual purging. Note that the the mathindex_page_id refers to the oldid.
Comment 4 Gerrit Notification Bot 2014-11-06 20:07:30 UTC
Change 171627 had a related patch set uploaded by Physikerwelt:
Increase size of the math_mathml in the mathlatexml table

https://gerrit.wikimedia.org/r/171627
Comment 5 physikerwelt 2014-11-06 20:16:12 UTC
After having reloaded all 35 pages via curl
 curl http://ntcir11-wmc.nii.ac.jp/index.php?oldid=15477
the problem seems to be fixed.
The longest mathml expression is 129726 chars now.
Comment 6 Gerrit Notification Bot 2014-11-18 16:57:49 UTC
Change 171627 merged by jenkins-bot:
Increase size of the math_mathml in the mathlatexml table

https://gerrit.wikimedia.org/r/171627

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links