museumsvictoria / spatial_audio_server

An audio backend for the multi-layered soundscape of Beyond Perception: Seeing the Unseen, a permanent exhibition at Scienceworks in Melbourne, Australia.
81 stars 14 forks source link

Memory Leak when testing on macos #95

Closed mitchmindtree closed 6 years ago

mitchmindtree commented 6 years ago

After running the audio server for about two hours on a macbook pro, audio_server's memory usage has climbed slowly and steadily up to almost 4GB. This must be due to a memory leak of some sort - perhaps a "Sound" is not correctly being removed from a HashMap after finishing, or perhaps a map isn't being cleared on the soundscape thread. This should be an easy fix with some profiling, but just leaving an issue for future reference.

mitchmindtree commented 6 years ago

Can no longer reproduce this bug on Josh's mac - memory usage stayed at ~30mb after 3 hours.