esimov / pigo

Fast face detection, pupil/eyes localization and facial landmark points detection library in pure Go.
MIT License
4.37k stars 309 forks source link

Pigo Wasm demo crashes after certain time #49

Closed esimov closed 3 years ago

esimov commented 3 years ago

Bug with Webassembly (WASM) version:

$ go version
go version go1.16.6 darwin/amd64

Running the Wasm demo after certain time the browser crashes because of Out of memory error. Checking the memory consumption this increases rapidly.

Screenshots

image

Additional context

esimov commented 3 years ago

The solution was to reset the slice holding the image data obtained from the webcam to its default values on each render frame.