RenderKit / oidn

Intel® Open Image Denoise library
https://www.openimagedenoise.org/
Apache License 2.0
1.77k stars 164 forks source link

Crashes when using progress monitor callback #78

Closed fluidray closed 4 years ago

fluidray commented 4 years ago

When using the progress monitor callback to cancel the filtering operation, there is a crash.

It looks like the issue is caused by throwing an exception inside the constructor or the destructor of the Progress class.

The problem seems to be solved by wrapping the update() function as such:

try { update(); } catch(...) {}

in both the constructor and the destructor.

atafra commented 4 years ago

Thanks for reporting this issue! We've just released v1.2.2, which fixes the crash.