pouët.net

Go to bottom

Memory leak in BASS

category: code [glöplog]
 
BASS has worked fine for a while, but recently it began allocating more and more memory.

Here's an example of memory use of the basstest example project running with no audio playing or loaded. The program was compiled in Release mode.
BB Image

After a few minutes this leak makes the program very slow and completely unusable. Has anyone else faced this same problem?

I can eliminate the leak by not initializing BASS, or disabling all audio devices so the init functions fails.

I'm using BASS 2.4.10 and Visual Studio 2012 (11.0.61030.00 Update 4)

The code I use to initialize the library:
Code: if (!BASS_Init(-1, 44100, BASS_DEVICE_LATENCY, 0, NULL)) LOG_ERROR("Couldn't initialize BASS");


Relevant DxDiag sections.
added on the 2014-04-18 11:50:07 by cce cce
I guess this appears only with particular versions of BASS?
added on the 2014-04-18 12:46:25 by Adok Adok
Quote:
but recently


what did you change?
added on the 2014-04-18 13:24:25 by psenough psenough
The problem occured also with BASS 2.3. Well I, uh, rebooted the computer and now it's fine. So problem solved I guess?

The memory load increases when the song starts playing, but that's pretty much expected behaviour, isn't it?
added on the 2014-04-18 16:09:50 by cce cce
Quote:
The memory load increases when the song starts playing, but that's pretty much expected behaviour, isn't it?

If you play the song twice, does it continue to increase ? if yes then there is definitly a problem...
added on the 2014-04-20 14:35:17 by Tigrou Tigrou
Quote:
The problem occured also with BASS 2.3. Well I, uh, rebooted the computer and now it's fine. So problem solved I guess?

Sounds like something was wonky with your audio drivers :/
added on the 2014-04-20 19:24:11 by sol_hsa sol_hsa

login

Go to top