g0orx / linhpsdr

Linux HPSDR
GNU General Public License v3.0
74 stars 44 forks source link

Segmentation fault when changing modes on Ubuntu 18.04.2 Mint #40

Open briankc1 opened 5 years ago

briankc1 commented 5 years ago

LinHPSDR_FM 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. pre_libsoundio

satfan52 commented 4 years ago
m5evt commented 4 years ago

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?