Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioLoader memory leak on python steaming mode #40

Closed
g-roma opened this issue Jan 2, 2014 · 3 comments
Closed

AudioLoader memory leak on python steaming mode #40

g-roma opened this issue Jan 2, 2014 · 3 comments
Assignees
Labels

Comments

@g-roma
Copy link

g-roma commented Jan 2, 2014

Creating an instance of AudioLoader (streaming) on python allocates memory that is never collected.

Test:

from essentia.streaming import AudioLoader
f = "test/audio/recorded/musicbox.wav"
for i in range(1,1000): a= AudioLoader(filename=f)

@dbogdanov
Copy link
Member

The problem is more generic and will affect any streaming algorithm. Algorithms with

_source.setBufferType(BufferUsage::forLargeAudioStream)

set will fail faster. Probably, the Sources are not cleaned correctly in their implementation.

@dbogdanov
Copy link
Member

Two simplest examples to reproduce the bug:
1)

from essentia.streaming import *
for i in range(1,1000): a= AudioLoader()
from essentia.streaming import *
for j in range(1,10000):
    for i in range(1,10000):
        a= MFCC()

Affects any streaming algorithm.

@jlyda
Copy link

jlyda commented Jan 21, 2016

This issue is fixed in 2436db3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants