Readthedocs.org: pdf generation fails after a 'libpng error: Not a PNG file'

Created on 11 Mar 2020  路  5Comments  路  Source: readthedocs/readthedocs.org

Details

Building the documentation on my local machine works.

The document contains images such as this one:

Value-Chain-1198x619

Deploying the project documentation on rtfd fails due to a 'libpng error: Not a PNG file' due to the above mentioned image

Expected Result

the build succeeds

Actual Result

an error appears during the build :

/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1pcr.fd)libpng error: Not a PNG file

!pdfTeX error: pdflatex (file ./Value-Chain-1198x619.png): libpng: internal err
or
==> Fatal error occurred, no output PDF file produced!
Latexmk: Index file 'alt-f1-software-architecture.idx' was written
Failure to make 'alt-f1-software-architecture.pdf'
Collected error summary (may duplicate other messages):
pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Errors, in force_mode: so I tried finishing targets

Thank you in advance for the time you will invest on my issue

Support

All 5 comments

@Abdelkrim do you see the same problem when you build your docs locally in a clean environment? If so, this isn't a read the docs problem.

@stsewd the pdf is generated by sphinx.

  • I have executed the same command line as RTFD on my machine and the PDF was correctly generated

    • latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=alt-f1-software-architecture -interaction=nonstopmode
  • the pdf : SoftwareEngineeringByALT-F1.pdf

  • the image generating the error : Michael_Porters_Value_Chain-634x311

  • the logs from sphinx while generating the pdf : generate_pdf.txt

thank you for you support

@Abdelkrim you are using Git LFS in that file (https://bitbucket.org/altf1be/software-architecture/src/master/source/_static/img/business-to-you.com/Value-Chain-1198x619.png) which is not supported for now. See https://github.com/readthedocs/readthedocs.org/issues/1846 for more information.

I'm closing this one, but feel free to re-open if you consider.

Thanks!

@humitos thank you for the support. I didn't think about Git LFS!

For those who got the issue, here is THE solution : https://github.com/readthedocs/readthedocs.org/issues/1846#issuecomment-477096309

Was this page helpful?
0 / 5 - 0 ratings

Related issues

humitos picture humitos  路  4Comments

humitos picture humitos  路  3Comments

dxgldotorg picture dxgldotorg  路  3Comments

gtalarico picture gtalarico  路  4Comments

cagataycali picture cagataycali  路  4Comments