audiovisualizer
audiovisualizer copied to clipboard
Memory leak
Steps to reproduce:
Hint: You have to enable native profiling and disable Just My Code in the memory profiling settings.
- Debug the sample app "VisualizationPlayer" with memory profiling
- Open a music file
- Force GC and make memory snapshot
- Repeatedly open the same or another music file. On every new opening of a music file the memory usage will increase. Do this 5-10 times.
- Force GC and make memory snapshot
- You will see that the memory usage has increased a lot.
Screenshot:
Link to diagsession (300MB): https://send.firefox.com/download/f52b09a111a056c9/#2wL5zmgjieB-jPciQQTAcg
I now found the exact source of the memory leak, after opening a music file, a new ring buffer will be allocated and the old one won't be released from memory:
Better diagsession (275MB): https://send.firefox.com/download/d5a2a65ca2046481/#ZZYWME7FDG5vUhWMZkZ5wg