vtkSurfaceWriter crash
Sometimes, in different scenarios of releases, grids and solvers, foam crashes during vtk writing of sampled surfaces with errors like:
[0] #0 Foam::error::printStack(Foam::Ostream&) at ??:? [0] #1 (closed) Foam::sigFpe::sigHandler(int) at ??:? [0] #2 (closed) ? in "/lib64/libc.so.6" [0] #3 (closed) void Foam::vtkSurfaceWriter::writeData(Foam::Ostream&, Foam::Field const&) at ??:? [0] #4 (closed) Foam::vtkSurfaceWriter::write(Foam::fileName const&, Foam::fileName const&, Foam::Field<Foam::Vector > const&, Foam::ListFoam::face const&, Foam::word const&, Foam::Field const&, bool, bool) const at ??:? [0] #5 (closed) void Foam::sampledSurfaces::writeSurface(Foam::Field const&, int, Foam::word const&, Foam::fileName const&) at ??:? [0] #6 (closed) void Foam::sampledSurfaces::sampleAndWrite(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? [0] #7 (closed) void Foam::sampledSurfaces::sampleAndWrite<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >(Foam::IOobjectList const&) at ??:? [0] #8 (closed) Foam::sampledSurfaces::write() at ??:? [0] #9 (closed) Foam::OutputFilterFunctionObjectFoam::sampledSurfaces::execute(bool) at ??:? [0] #10 (closed) Foam::functionObjectList::execute(bool) at ??:? [0] #11 (closed) Foam::Time::run() const at ??:? [0] #12 (closed) Foam::Time::loop() at ??:? [0] #13 (closed) Foam::simpleControl::loop() at ??:? [0] #14 (closed) ? at ??:? [0] #15 (closed) __libc_start_main in "/lib64/libc.so.6" [0] #16 (closed) ? at ??:?
In this case, the release is the v1606 and the solver is simpleFoam. The writing frequency was set to 10. The first set of cut planes was saved correctly at t=10 and the solver crashed when attempting to write at t=20.