AlexandreRouma / SDRPlusPlus

Cross-Platform SDR Software
GNU General Public License v3.0
4.11k stars 571 forks source link

Version 1.1.0 segmentation fault when selecting HackRF #1401

Closed CocolinoFan closed 5 months ago

CocolinoFan commented 5 months ago

SDRPlusPlus Version: 1.1.0 OS: DragonOS FocalX R35 x86_64 Host: ASUS TUF Gaming F15 FX506HF_FX506HF 1.0 Kernel: 6.5.0-27-generic Shell: bash 5.1.16 DE: LXQt 0.17.1 WM: Openbox CPU: 11th Gen Intel i5-11400H (12) @ 4.500GHz GPU: Intel TigerLake-H GT1 [UHD Graphics] GPU: NVIDIA 01:00.0 NVIDIA Corporation Device 25ad Memory: 2300MiB / 15722MiB

Bug Description After selecting the HackRF One as the input devices the program crashes. If opened again, SDR++ will crash after a few seconds as the HackRF One is already selected.

Steps To Reproduce

  1. Make a live USB of DragonOS
  2. Connect HackRF to computer
  3. Boot into DragonOS on a ASUS TUF Gaming F15 laptop (optional?)
  4. Open SDR++ in a terminal (to see output) and select HackRF

Terminal output

live@live:~$ sdrpp
[14/05/2024 10:21:48.000] [INFO] SDR++ v1.1.0
[14/05/2024 10:21:48.000] [INFO] Loading config
[14/05/2024 10:21:48.000] [INFO] Using OpenGL 3.0
[14/05/2024 10:21:48.000] [INFO] Loading icons
[14/05/2024 10:21:48.000] [INFO] Loading band plans
[14/05/2024 10:21:48.000] [INFO] Loading band plans color table
[14/05/2024 10:21:48.000] [ERROR] Menu element is missing name key
[14/05/2024 10:21:48.000] [INFO] Loading modules
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/airspy_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/airspyhf_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/audio_sink.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/audio_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/bladerf_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/discord_integration.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/file_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/frequency_manager.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/hackrf_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/hermes_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/inmarsatc_demodulator.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/iq_exporter.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/limesdr_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/m17_decoder.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/meteor_demodulator.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/network_sink.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/network_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/new_portaudio_sink.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/pager_decoder.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/perseus_source.so
[14/05/2024 10:21:48.000] [ERROR] Couldn't load /usr/lib/sdrpp/plugins/perseus_source.so: libperseus-sdr.so.0: cannot open shared object file: No such file or directory
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/plutosdr_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/radio.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/recorder.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rfspace_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rigctl_client.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rigctl_server.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rtl_sdr_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/rtl_tcp_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/scanner.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/sdrplay_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/sdrpp_server_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/soapy_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/spectran_http_source.so
[14/05/2024 10:21:48.000] [INFO] Loading /usr/lib/sdrpp/plugins/spyserver_source.so
[14/05/2024 10:21:48.000] [INFO] Initializing Airspy Source (airspy_source)
[14/05/2024 10:21:48.000] [INFO] Initializing AirspyHF+ Source (airspyhf_source)
[14/05/2024 10:21:48.000] [INFO] Initializing Audio Sink (audio_sink)
[14/05/2024 10:21:48.000] [INFO] Initializing Audio Source (audio_source)
[14/05/2024 10:21:48.000] [INFO] New DSP samplerate: 44100.000000 (source samplerate is 44100.000000)
[14/05/2024 10:21:48.000] [INFO] Initializing BladeRF Source (bladerf_source)
[14/05/2024 10:21:48.000] [ERROR] Could not list devices -7
[14/05/2024 10:21:48.000] [INFO] Initializing File Source (file_source)
[14/05/2024 10:21:48.000] [INFO] Initializing Frequency Manager (frequency_manager)
[14/05/2024 10:21:48.000] [INFO] Initializing HackRF Source (hackrf_source)
[14/05/2024 10:21:48.000] [INFO] Initializing Hermes Source (hermes_source)
[14/05/2024 10:21:48.000] [INFO] Initializing LimeSDR Source (limesdr_source)
[14/05/2024 10:21:48.000] [INFO] Initializing Network Sink (network_sink)
[14/05/2024 10:21:48.000] [INFO] Initializing PerseusSDR Source (perseus_source)
[14/05/2024 10:21:48.000] [ERROR] Module 'perseus_source' doesn't exist
[14/05/2024 10:21:48.000] [INFO] Initializing PlutoSDR Source (plutosdr_source)
[14/05/2024 10:21:49.000] [INFO] Initializing RFspace Source (rfspace_source)
[14/05/2024 10:21:49.000] [INFO] Initializing RTL-SDR Source (rtl_sdr_source)
[14/05/2024 10:21:49.000] [INFO] Initializing RTL-TCP Source (rtl_tcp_source)
[14/05/2024 10:21:49.000] [INFO] Initializing Radio (radio)
[Resamp] predec: 8192, interp: 2000, decim: 441, inacc: 0.000000%, taps: 152000
[Resamp] predec: 4, interp: 96, decim: 125, inacc: 0.000000%, taps: 9500
[Resamp] predec: 32, interp: 5000, decim: 7813, inacc: 0.000000%, taps: 593750
[Resamp] predec: 8192, interp: 2500, decim: 441, inacc: 0.000000%, taps: 190000
[Resamp] predec: 4, interp: 96, decim: 125, inacc: 0.000000%, taps: 9500
[Resamp] predec: 4, interp: 96, decim: 125, inacc: 0.000000%, taps: 9500
[14/05/2024 10:21:49.000] [WARN] Demod switch took 46059 us
[14/05/2024 10:21:49.000] [INFO] RtAudio stream open
[14/05/2024 10:21:49.000] [INFO] Initializing Recorder (recorder)
[14/05/2024 10:21:49.000] [INFO] Initializing Rigctl Server (rigctl_server)
[14/05/2024 10:21:49.000] [INFO] Initializing SDR++ Server Source (sdrpp_server_source)
[14/05/2024 10:21:49.000] [INFO] Initializing SDRplay Source (sdrplay_source)
[14/05/2024 10:21:49.000] [INFO] Initializing SoapySDR Source (soapy_source)
[WARNING] SoapyVOLKConverters: no VOLK config file found. Run volk_profile
for best performance.
[INFO] [UHD] linux; GNU C++ version 11.3.0; Boost_107400; UHD_4.1.0.5-0-unknown
[INFO] Opening HackRF One #0 675c62dc307d21cf...
[14/05/2024 10:21:50.000] [INFO] Setting sample rate to 1000000.000000
[14/05/2024 10:21:50.000] [INFO] New DSP samplerate: 1000000.000000 (source samplerate is 1000000.000000)
[14/05/2024 10:21:50.000] [INFO] Initializing SpyServer Source (spyserver_source)
[14/05/2024 10:21:50.000] [INFO] Loading color maps
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/classic.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/classic_green.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/electric.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/gqrx.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/greyscale.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/inferno.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/magma.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/plasma.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/smoke.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/temper_colors.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/turbo.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/viridis.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/vivid.json
[14/05/2024 10:21:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/websdr.json
[14/05/2024 10:21:50.000] [INFO] New DSP samplerate: 2000000.000000 (source samplerate is 2000000.000000)
[14/05/2024 10:21:50.000] [INFO] HackRFSourceModule 'HackRF Source': Menu Select!
[14/05/2024 10:21:50.000] [INFO] New DSP samplerate: 2000000.000000 (source samplerate is 2000000.000000)
[Resamp] predec: 4, interp: 96, decim: 125, inacc: 0.000000%, taps: 9500
[14/05/2024 10:21:50.000] [INFO] RtAudio stream open
[14/05/2024 10:21:50.000] [INFO] HackRFSourceModule 'HackRF Source': Tune: 100000000.000000!
[14/05/2024 10:21:50.000] [INFO] Running post-init for Airspy Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for AirspyHF+ Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for Audio Sink
[14/05/2024 10:21:50.000] [INFO] Running post-init for Audio Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for BladeRF Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for File Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for Frequency Manager
[14/05/2024 10:21:50.000] [INFO] Running post-init for HackRF Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for Hermes Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for LimeSDR Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for Network Sink
[14/05/2024 10:21:50.000] [INFO] Running post-init for PlutoSDR Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for RFspace Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for RTL-SDR Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for RTL-TCP Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for Radio
[14/05/2024 10:21:50.000] [INFO] Running post-init for Recorder
[14/05/2024 10:21:50.000] [INFO] Running post-init for Rigctl Server
[14/05/2024 10:21:50.000] [INFO] Running post-init for SDR++ Server Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for SDRplay Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for SoapySDR Source
[14/05/2024 10:21:50.000] [INFO] Running post-init for SpyServer Source
[14/05/2024 10:21:50.000] [INFO] Ready.
Segmentation fault (core dumped)

sdrpp -c

Unknown argument
a --addr Server mode address

etc. etc.

Additional info I'm not sure if it happens in 1.2.0 as well. But I know segmentation faults are not good, so I though better to report it.

AlexandreRouma commented 5 months ago

https://github.com/AlexandreRouma/SDRPlusPlus#sdr-crashes-when-starting-a-hackrf