linhpsdr icon indicating copy to clipboard operation
linhpsdr copied to clipboard

Segmentation fault when changing modes on Ubuntu 18.04.2 Mint

Open briankc1 opened this issue 6 years ago • 2 comments
trafficstars

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

briankc1 avatar Jun 29 '19 22:06 briankc1

  • 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

satfan52 avatar Oct 03 '19 20:10 satfan52

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?

m5evt avatar Apr 26 '20 12:04 m5evt