question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve error reporting with PDF format and LaTeX

See original GitHub issue

Currently, if users have an old version of dvisvgm (older than 2.4 from May 2018) or if their dvisvgm is not configured correctly (e.g. missing libgs from Ghostscript), video rendering just fails and the users sees unknown option --pdf in their output.

We could improve this:

  • do a test call to dvisvgm --pdf one time and check the exit status
  • if it fails, raise an exception and output something along the lines of “Your installation does not support converting PDF to SVG. Consider updating dvisvgm to at least 2.4. If this does not solve the problem, please refer to our documentation.”
  • add some information in our docs
    • On Mac, people must have Ghostscript and libgs installed; installing MacTex does not, by default, install the latter. It is a separate package.
    • Sometimes, libgs is installed, but cannot be found by dvisvgm. In this case, the user must execute export LIBS=<path> prior to running manim

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
leotrscommented, Oct 16, 2020

“Your installation does not support converting PDF to SVG. Consider updating dvisvgm to at least 2.4. If this does not solve the problem, please refer to LINK_IN_TROUBLESHOOTING_SECTION_HERE.”

0reactions
PhilippImhofcommented, Nov 22, 2020

I would say so, yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to find and fix errors reported in generated files - Overleaf
Sometimes Overleaf will report errors which arise from files with names such as ... Apart from the output .pdf file, the LaTeX compilation...
Read more >
How can I make LaTex typeset a PDF regardless of an error?
1 Answer 1 ... That's not possible. Whether TeX can continue, heavily depends on the kind of error. \batchmode or \nonstopmode can be...
Read more >
The Effective Strategies to Avoid Medication Errors and ... - NCBI
An efficient medication error reporting system is the backbone of reliable practice and a measure of progress towards achieving safety.
Read more >
r - error using custom LaTeX style file to render PDF using ...
It works for me when I remove the \endinput from custom.sty . Problem is that includes just like \include in TeX inputs the...
Read more >
Creating high-quality PDF/A documents using LaTeX
If everything goes well, look at the resulting PDF file in Acrobat Reader. (You may have to select "File" → "Reload" if the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found