linhpsdr
linhpsdr copied to clipboard
Segmentation fault when changing modes on Ubuntu 18.04.2 Mint
Hello, I recently compiled and installed this - it found the RTL-SDR stick just fine on the local USB port, and it looks OK graphically, but it crashes when I change from USB mode to NFM mode, or to any other Rx mode. Same results when using a different SDR-RTL stick, and also when I try using a lower sampling rate. I initially had no audio, but that was resolved after I recompiled, using libsoundio1 instead of libsoundio, which it couldn't find to install it... see screen shots of library name in the prerequisite notes, and the Segmentation fault right after I switched to NFM mode, at which point the radio display graphics window vanished.

- Confirmed in my environment under Ubuntu 18.04.3 (bionic).
- Linhpsdr crashes when switching from NFM to any other modes.
- The problem is only with the NFM mode in my environment, switching from any other mode than NFM to any other mode including NFM works.
- Tested with plutosdr and soapysdr
This seems to be related to receiver.c lines 822-824 in function set_mode. I confirm this with a gdb backtrace debug. I comment these lines and the crash disappears. I note that pihpsdr does not have this dsp sample rate change for FMN.
What is the reason behind the DSPsamplerate changes depending on FMN or !FMN?