Page MenuHomePhabricator

latexer fails on some bundles, "! Missing \endgroup inserted."
Open, Needs TriagePublic

Description

E.g. for https://en.wikipedia.org/wiki/Douglas_SBD_Dauntless and https://en.wikipedia.org/wiki/Martin_B-26_Marauder:

Report as ticket ID 8143373

alex@alex-laptop:~/Development/MediaWiki/extensions/Collection ((7e672d3...))$ ./mw-ocg-bundler/bin/mw-ocg-bundler -v -o bundle.zip --prefix enwiki "Martin_B-26_Marauder"
[...]
alex@alex-laptop:~/Development/MediaWiki/extensions/Collection ((7e672d3...))$ ./mw-ocg-latexer/bin/mw-ocg-latexer -v -D -o OTRS8143373.pdf bundle.zip
[...]
[75%] Compiling PDF
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/Debian)
 restricted \write18 enabled.
entering extended mode
(./output.tex
LaTeX2e <2011/06/27>

[...]

Underfull \hbox (badness 10000) in paragraph at lines 190--190

<use  "/tmp/mw-ocg-latexer5390hgjph74/bundle/images/tmp-4179qm2f82o.jpg" >
<use  "/tmp/mw-ocg-latexer5390hgjph74/bundle/images/tmp-4179nexany8.jpg" >
[6]
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.227 }]
        \end{description}
Output written on output.pdf (6 pages).
Transcript written on output.log.

---------------------------------------

** WARNING ** Failed to convert input string to UTF16...

---------------------------------------
Error: Latex Error! Check your latex string
    at /home/alex/Development/MediaWiki/extensions/Collection/mw-ocg-latexer/node_modules/gammalatex/app.js:72:12
    at CB (/home/alex/Development/MediaWiki/extensions/Collection/mw-ocg-latexer/node_modules/gammalatex/node_modules/rimraf/rimraf.js:68:5)
    at Object.oncomplete (fs.js:107:15)

I have outdated copies of the bundler and latexer, but this also occurs in production.

Event Timeline

Krenair created this task.Feb 19 2015, 11:23 PM
Krenair raised the priority of this task from to Needs Triage.
Krenair updated the task description. (Show Details)
Krenair added a project: OCG-PDF-renderer.
Krenair added a subscriber: Krenair.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 19 2015, 11:23 PM

As already announced in Tech News, OfflineContentGenerator (OCG) will not be used anymore after October 1st, 2017 on Wikimedia sites. OCG will be replaced by Electron. You can read more on mediawiki.org.