LyXAn error occured while running...

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
LyX4ever
Posts: 2
Joined: Wed Jul 23, 2014 12:38 pm

An error occured while running...

Post by LyX4ever »

Dear all,

When I have animations in my documents, I meet the error "An error occurred while running:" followed by the name of my script.

In fact there is no error at all, this is only due to the fact that my documents are slow to be generated when they contain animations. LyX visibly consider an error when the script takes too much time.

I have then to run my script manually outside LyX.

How can I fix this issue to generate my documents from LyX even when the document needs much time to be generated?

Thank you in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: An error occured while running...

Post by scottkosty »

I do not see this on LyX 2.1.1. I have used scripts that take days to finish. If you are running in the GUI then you will probably get a popup asking if you want to cancel, but that's it.

If you are seeing this on LyX 2.1.1 it sounds like a serious problem. LyX should not kill your script. Can you post a complete example? Also, please give more information such as OS.
LyX4ever
Posts: 2
Joined: Wed Jul 23, 2014 12:38 pm

Re: An error occured while running...

Post by LyX4ever »

I have absolutely no doubts about the fact that it's just a matter of time since I ran a test where the script does nothing more than a pause.

Example of converter :
gnome-terminal --working-directory=$$r -e "bash -c \"read p; exec bash\""

And after a while, LyX simply kills it and gives an error message.

The LyX version is 2.0.2 and the OS is Ubuntu 12.04 (LTS).
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: An error occured while running...

Post by scottkosty »

In this case I suggest considering whether you want to try upgrading to LyX 2.1.1. On Ubuntu it's easy to have parallel installations without conflicts. See here: http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3
Post Reply