Sounddevice eats up all my memory
See original GitHub issueExamplecode:
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:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works perfectly.
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?