S4L is unable to read and load my project

after saving my S4L project, when I try to open the file (always read and loaded), now S4L returns the reported error message and I am no more able to open and work with this project.

Warning: Unable to load module 'C:\Program Files\Sim4Life_v5.2.1.1375\MusaikInterface.xdll'
Error : Could not read document version of file 'D:\S4L\Models\120-150_32elems_d20.smash'.
Warning : Unable to load document D:\S4L\Models\120-150_32elems_d20.smash

Is there a way to recover my file?

Thanks in advance


Hi Annalisa, your message won't be enough to try to help. The Musaik warning should not be a problem, maybe somehow the file got corrupted? Would need to maybe look at the .smash file to try and help, or maybe you can say what happened before that issue?

Before that issue, I saved the file at the end of my working day. Then, the day after I saw that the pc automatically restarted. And after that, I am not able to open the file. Unfortunately, the smash file is too large for the uploading. Is there an alternative way to send it?



Smash file uploaded

What version of S4l are you using? Sim4Life -> Help -> About (Should be something like Sim4Life

Sim4Life V

Ok, best I could do was allow you to recover your simulations and post processing but not the models..

I suspect that somehow maybe S4L was saving when the computer crashed or somehow restarted and this corrupted the smash file.

A quick explanation:

Smash files are .h5 files (you can use an hdf viewer - I use HDF Viewer 2.13 - to sort through the data structure). I compared your smash file to another smash file and I noticed that the field "Data -> _Object -> _DocumentVersion" was missing so I recreated it and opened your project in S4L. This still didn't show your modeling objects but it did show your simulations and postpro.

I guess you could look further into the h5 file structure (comparing to a 'reference' one from another one of your simulations to check what else could be missing) or maybe you can mail the support team to ask for help recovering your data? Or hopefully you have some backup?

At the very least your results should still be safe and you can always drag and drop your results into sim4life to inspect them (they are the output.h5 files in the results folder ... not ideal I know).

Please find the version where I tried to fix your issue here (in maybe 15 minutes, when it finished uploading):

https://outbox.itis.swiss/montanaro/<your filename>

Ok, thank you very much. Recovering the simulation results and postpro is the most important thing. I can easily reconstruct the transducer model via Python, but running again all the simulation I made it's the time consuming thing.
So thanks a lot for your help.
I would like to ask another thing. Generally speaking, my software works in a strange manner in the last days. When I work with the analysis tools, it returns errors messages like this:
Error : Unable to read array voxels.
Analysis : [Error] Unable to load speed of sound
Analysis : [Error] Unable to load speed of sound
Analysis : [Error] Unable to update 'Overall Field'
Then, I have to close the file. Re-open it and the analysis restarts to work. I am working with 4 separated files, all open at this moment. Maybe this could generate some problems ?

Don't think the separate files should matter. I haven't encountered these issues before, maybe it has to do with some item in your post processing pipeline? Maybe you can do Reset Analysis in postpro (but careful, you'll need to re do your data extraction - not the simulations though). I find it a bit strange that you only get these issues the first time you open the project file..

Log in to reply