hrbrmstr/pewpew

JS Heap Balloons Rapidly When Tab Is Hidden

Closed this issue · 1 comments

alyxw commented

If you load the map and then tab away, the JS heap will balloon rapidly as it attempts to queue draws.

Upon loading, the page was using approximately 8MB, but after 5 minutes it was over 130MB. After a short time this will cause the tab to OOM and crash.

I discovered this issue while trying to track down a memory leak in my websockets port meant for live data (discovered in en0io/pewpew-ws@991d42b).

alyxw commented

Submitted PR to resolve memory leak.
#36