Crash when directory contains files with spaces or other odd characters in their filenames
paraFoam crash on start with the following error:
Created temporary 'run407.OpenFOAM' I/O : uncollated fileName::stripInvalid() called for invalid fileName tot6.7kn.0032.jpg For debug level (= 2) > 1 this is considered fatal Aborted (core dumped)
When the current directory contains the files:
tot 6.7kn.0000.jpg tot 6.7kn.0001.jpg tot 6.7kn.0002.jpg tot 6.7kn.0003.jpg etc.
(the files where generated by the paraFoam File -> save animation)
When the files are renamed to use underscores, paraFoam starts normally:
tot_6.7kn.0000.jpg tot_6.7kn.0001.jpg tot_6.7kn.0002.jpg tot_6.7kn.0003.jpg etc.
When a new animation is made by clicking File -> save animation -> ok
the file name selection dialog correctly merges the image files to: "[+]tot_6.7kn...jpg"
I don't know if this is a recent problem since I normally don't use spaces in filenames. It was found by someone else.
The obvious workaround is to not uses spaces in animation filenames, or deleting old images before starting paraFoam.
paraview 5.4.0 OS: Ubuntu 16.04.3 LTS (64 bit) compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609 [CORRECTED] build command: ./makeParaView PARAVIEW_QT_VERSION=4
I looked at Development/ThirdParty-plus but i'm not sure if paraFoam is a third party build script and neither project readme's mention paraFoam. Please let me know if this issue should be in ThirdParty-plus.
small detail: I have 63 images, named 0..62. I don't know why the error is for image 32, it could be the order in which the OS lists the file names but (after renaming to underscores) ls -u *.jpg also lists image 32 somewhere in the middle of the file list.