Copying Volume Mesh objects leads to memory corruption
VolumeMeshObject copy constructor (used by its own
copy() method) creates a second shared pointer to the actual mesh instead of copying the mesh.
Steps to crash:
- Create volume object
- Create a copy using DataControl
- Exit OF, observe crash
To upload designs, you'll need to enable LFS. More information