-
Notifications
You must be signed in to change notification settings - Fork 19
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
Can not read more than 4 sec on Linux #1
Comments
Hi @lumag , thanks for the feedback. the last "memory" notice seems like you do not have enough spare memory. I use Windows and if I have a simular notice, I either have too many things running in parallel, or the file is just too big for Python (and I forgot to use the 64bit version, which can handle more ram) or numpy. but with -nsec = 10 seconds the files are not near 2gb ram. so first, check if you have a tmp.dat file so I know recording works (I use windows and did not provide any libs for win or linux). speak you soon :) |
There is no -nsec 5 fails with the similar message:
-nsec 4 works, but seems to give no calibration:
|
I'm using a laptop, 15 GiB of mem, 4.4 GiB free at this moment. |
Executing the script after running without a parameter in my case crashing too, with same error. With parameter -nsec 4 it works fine: script output:
@lumag - your text output looks like you have not present DAB signal on RTL SDR receiver input - do you have DAB+ signal coverage in your area? (you can check it by same HW - DAB+ RTL SDR receiver https://github.com/AlbrechtL/welle.io ) |
I can confirm the But with the a low
Archlinux python 3.9.0 |
It may be worth trying to either copy the _samples = sdr.read_bytes(ns * 2)
samples = _samples[:]
del _samples or just not returning the array at all |
Thanks @nocarryr for looking into this! I have tried both your suggestions, but the error remains. I isolated the https://gist.github.com/quantenProjects/2f42c8455a88b72bd4ccc8b2c3b375ed
To me it does not seem like a problem with memory management inside CalibrateSDR (although we should either copy |
allows for recording longer 4 sec on Linux, see #1 Known Bug: KeyboardInterrupt (Ctrl+C) doesn't work
Debian Linux, python 3.9.1, rtl sdr dongle by rtl-sdr blog, V3
The text was updated successfully, but these errors were encountered: