Page MenuHomePhabricator

enwiki "Switzerland" article fails to render: "LaTeX Error: Something's wrong--perhaps a missing \item."
Closed, ResolvedPublic

Description

8050756

https://en.wikipedia.org/wiki/Switzerland

"Generation of the document file has failed.

Status: Rendering process died with non zero code: 1"

Event Timeline

Krenair renamed this task from enwiki "Switzerland" article fails to render: to enwiki "Switzerland" article fails to render.
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 set Security to None.
Krenair subscribed.

I wonder if TimedMediaHandler is doing something weird with those missing subtitles http://www.webpagetest.org/result/150111_D9_THY/1/details/

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.97 \item{
           }\textbf{\nolinkurl{File:Symbol\_support\_vote.svg}} \emph{Source...
Output written on output.pdf (32 pages).
Transcript written on output.log.

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

** WARNING ** Failed to convert input string to UTF16...
** WARNING ** Can't begin an annotation when one is pending.
** WARNING ** Interpreting special command bann (pdf:) failed.
** WARNING ** >> at page="5" position="(102.565, 416.44)" (in PDF)
** WARNING ** >> xxx "pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[0 1 1]/A<..."
** WARNING ** >> Reading special command stopped around >><</Type/Annot/Subtype/Link/Border[0 0 0]/C[0 1 1]/A<</S/URI/...<<
** WARNING ** Tried to end an annotation without starting one!
** WARNING ** Interpreting special command eann (pdf:) failed.
** WARNING ** >> at page="5" position="(90.0324, 380.842)" (in PDF)
** WARNING ** >> xxx "pdf:eann"
** WARNING ** Invalid CMap mapping entry. (ignored)

---------------------------------------
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)

Krenair, do you manage to see whether we are using -interaction=nonstopmode as in the gammalatex example? It would be nice to see whether it skips some warnings and manages to output something whatever.

Krenair, do you manage to see whether we are using -interaction=nonstopmode as in the gammalatex example? It would be nice to see whether it skips some warnings and manages to output something whatever.

https://github.com/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-latex_renderer/blob/master/lib/index.js#L2037 ?

Aklapper renamed this task from enwiki "Switzerland" article fails to render to enwiki "Switzerland" article fails to render: "LaTeX Error: Something's wrong--perhaps a missing \item.".Sep 15 2015, 10:05 AM

Krenair, do you manage to see whether we are using -interaction=nonstopmode as in the gammalatex example? It would be nice to see whether it skips some warnings and manages to output something whatever.

https://github.com/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-latex_renderer/blob/master/lib/index.js#L2037 ?

There is -halt-on-error, so in practice we are not using nonstopmode?

Change 304697 had a related patch set uploaded (by Nemo bis):
Make xelatex not stop at the first non-serious error

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

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.

This was about a single page PDF, now handled by Proton, where it is fixed

Change 304697 abandoned by Thiemo Kreuz (WMDE):
Make xelatex not stop at the first non-serious error

Reason:
This is more than 3 years old and most probably doesn't apply any more. The linked ticket is closed as being resolved. Please reopen if this was a mistake.

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

This is more than 3 years old and most probably doesn't apply any more. The linked ticket is closed as being resolved. Please reopen if this was a mistake.

I have no reason to believe the bug is fixed in OCG: nobody claimed it was (a more accurate status is "declined" if there is no intention to let anyone fix any OCG bug). The feature no longer exists, we have no way to know if https://en.wikipedia.org/wiki/Book:Switzerland would work now with OCG (it does work with mwlib on PediaPress, but we already knew that).