eliemichel / OpenMfxForBlender

A branch of Blender featuring an OpenMfx modifier
Other
177 stars 19 forks source link

Crash when rendering animation #53

Open tkarabela opened 3 years ago

tkarabela commented 3 years ago

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.

eliemichel commented 3 years ago

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