mbitsnbites/soundbox

Memory bloating (window crashed, workers)

hinell opened this issue · 1 comments

screenshot_3
Chrome Devtools screenshot.

Description

Recently I run into an issue of crashing window.
After further investigation I've found the hitting either [song] or [range] button spawns workers infinitely. The code which spawns workers can be found in the player.js

Probable solution

Just terminate unused workers by .terminate() or use only several of them to do the job.

Platform

  • Google Chrome Version 72.0.3626.109 (Official Build) (64-bit)

Thanks for the detailed report. I'll look into it soon (unless someone beats me to it with a PR 😉).