OpenMfxForBlender icon indicating copy to clipboard operation
OpenMfxForBlender copied to clipboard

Crash when rendering animation

Open tkarabela opened this issue 3 years ago • 1 comments

I've encountered some strange behavior specifically when rendering animation (as opposed to rendering still frames or working in the viewport).

With https://github.com/eliemichel/OpenMeshEffectForBlender/commit/5b8b30afc8fdc9407d6fe49ede0ab3eca8938ec1 plus https://github.com/tkarabela/MfxVTK/commit/afdb181ea794c7a00b469c6ec89253c60f561394 (both debug builds, on Linux), I've tripped stack-buffer-overflow error in AddressSanitizer, regarding the stack-allocated MeshInternalData for output mesh.

Before crashing a couple animation frames were rendered - in some frames, GetInput(kOfxMeshMainOutput).GetMesh() returned NULL mesh, which failed the cooking, while other frames cooked OK. This is the partially rendered animation (MfxVTK "Poke" effect):

bunny-animation-crash

When I tried to reproduce it, I got crash elsewhere. I'll report back if I learn more or make a reproducible test case.

tkarabela avatar Feb 18 '21 00:02 tkarabela

Oh, I had not tried to render animations yet I must say, thanks for noticing this!

eliemichel avatar Feb 22 '21 09:02 eliemichel