Closed bthj closed 5 days ago
Hey, thanks for the report
From what I see after small testing the OfflineContext
is never garbage collected, so this is a memory leak issue within the lib... The only workaround I can think of for now is to spawn / fork a new process on each iteration, very not ideal and a lot more inefficient but this should work until the issue is fixed
Still on holidays until beginning of September on my side, but I try to have a closer look as soon as possible
Thanks @b-ma !
I’ll try forking for now :)
Hi!
When performing consecutive renders with the OfflineAudioContext, memory usage only accumulates, for example with repeated calls like below (ran with the
--expose-gc
flag).It might seem like an approach to reuse the OfflineAudioContext instance (e.g. by instantiating it outside the loop), but that results in an error after the first iteration. Uncommenting the suspend / resume calls also results in an error after a few iterations.
Do you see any options to clean up the used resources in this example? - or would some modifications to the library be required?
Running this on Apple M1 Pro