Error when manually saving a state in yade.gz

Asked by Irfaan Peerun

Hi there,

I am using Yade 1.20.0 on Ubuntu 16.04 LTS (Xenial).
I used O.pause() followed by O.save('filename') in my script to save a simulation state in yade.gz format, which works well and saved with no errors.
However, when I use the GUI pause and save tabs to manually pause and save the simulation, I obtain the following error:

RuntimeError Traceback (most recent call last)
/usr/lib/x86_64-linux-gnu/yade/py/yade/__init__.py in saveSlot(self)
    152 f=str(f)
    153 if not f: return # cancelled
--> 154 O.save(f)
    155 def reloadSlot(self):
    156 self.deactivateControls()

RuntimeError: output stream error

Appreciate your feedback on how to resolve this. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hello,

> Appreciate your feedback on how to resolve this.

obviously, do not use GUI, but the command line :-)

Otherwise we would need more info - the script you use and how many iterations you run, if you are sure you have write permissions to save the file etc..

Also your version of Yade is relatively old and I am not sure if in such case anybody would be willing to dig much deeper into the problem..

cheers
Jan

Revision history for this message
Irfaan Peerun (irfaan) said :
#2

Hi Jan,

I have upgraded my Yade version to Yade 20200204-3281~72de5d7~xenial1 and that solved the problem.
I can now save the state using GUI as well. Thank you for your help.

Kind regards,
Irfaan

Revision history for this message
Irfaan Peerun (irfaan) said :
#3

Thanks Jan Stránský, that solved my question.