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.
LyX ⇒ An error occured while running...
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: An error occured while running...
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.
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.
Re: An error occured while running...
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).
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).
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: An error occured while running...
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