Open devjiro76 opened 6 years ago
Also running into this, workers are piling up. .abort() only works for active workers, and reusing the gif instance causes an error when .render() gets called again.
Workaround: The workers can be accessed through GIF.freeWorkers. To clean up, call:
gif.freeWorkers.forEach(w => w.terminate());
Workaround: The workers can be accessed through GIF.freeWorkers. To clean up, call:
gif.freeWorkers.forEach(w => w.terminate());
thanks, save my life
You actually have to call
gif.abort();
at it clears a status variable too.
Even official demo page 'https://jnordberg.github.io/gif.js/' Workers are not terminated after generate GIF.
How can I terminate Workers?