Skip to content

Wasm memory leak fix

Latest
Compare
Choose a tag to compare
@tsmartt tsmartt released this 17 Aug 20:58
· 9 commits to main since this release
340b7a8
Remove panic (#6)

* remove panic and return image length 0 in header on error

* Fix index error, add pry

* Run resize in a thread so ruby will GC it

Ruby does not GC the wasm instance in creators unless we run this in a
thread and extract the value.

Also added a test for resizing a photo multiple times in order to test
crashing, memory use, etc.

* Disable GC while calling WASM

Puma crashes unless we disable GC while interacting with wasmer.

* Update python lib to not use exceptions

* Update thumbnail.py

Co-authored-by: eV <ev@7pr.xyz>
Co-authored-by: eV <8796196+evq@users.noreply.github.com>