question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sounddevice eats up all my memory

See original GitHub issue

Examplecode:

import numpy as np
import time
import sounddevice as sd
 
 
def FindFreq_Resp(f_num, Amp):
    print "Calculating frequency response..."
    Freq=np.logspace(1.3, 4.3, num=f_num)
    for f in Freq:
            xx=np.linspace(0.0, 1, 48000)
            y=Amp*np.sin(f*2.0*np.pi*xx)
            myrecording = sd.playrec(y, 48000, channels=1, blocking=True)        
 
Fs=48000
FindFreq_Resp(100,0.1)
print "Some memory has been eaten"
FindFreq_Resp(100,0.1)
print "Even more memory has been eaten"
FindFreq_Resp(100,0.1)
print "Not much memory left :("

If I run the function FindFreq_Resp enough time, the program will run out of swap memory and freeze indefinitely. Why does this happen?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
catchanuscommented, Jun 18, 2020

It works perfectly.

0reactions
mgeiercommented, Jun 17, 2020

Thanks @catchanus for the hint, I’ve implemented it in #250.

Can you (and @Plecto123 and @venkat-kittu) please check if that works for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Audio Device Graph Isolation eats up memory
Audio Device Graph Isolation (audiodg.exe) eats up memory. ... Right now the audio graph isolation is using 2455.9 MB all by it's self....
Read more >
How to fix Windows Audio Device Graph Isolation high CPU ...
Many applications and processes can eat up your CPU usage, Windows Audio Device Graph Isolation is one of them. You can find out...
Read more >
What is 'Windows Audio Device Graph Isolation' and How to ...
And more importantly, how to fix it so it doesn't gobble all the memory and CPU it currently is. Let's dive right into...
Read more >
Audio Device Graph Isolation Is Eating Memory Windows 10
The Audio Device Graph Isolation process seems to chew up memory intermittently. ... On the Enhancements tab, click the Disable all enhancements checkbox....
Read more >
Windows Audio Device Graph Isolation is eating RAM - Reddit
Even just after booting up my PC, task manager is saying 1349.9 MB for this alone. Is this normal? My memory usage its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found