VOLK: Error allocating memory (aligned_alloc/_aligned_malloc) Segmentation fault
aluchuk opened this issue · comments
Compiling from source using
cmake .. -DOPT_BUILD_SDRPLAY_SOURCE:BOOL=ON -DOPT_BUILD_NEW_PORTAUDIO_SINK:BOOL=ON -DOPT_BUILD_M17_DECODER:BOOL=ON -DCMAKE_C_FLAGS="-std=c11"
(tried without -std=c11, and also without any flags with the same outcome)
Hardware
-
CPU: ARMv7 Processor rev 4 (v7l)
-
RAM:
total used free shared buff/cache available
Mem: 922Mi 150Mi 333Mi 388Ki 502Mi 771Mi
Swap: 99Mi 25Mi 74Mi -
GPU: n/a
-
SDR: USB dongle - Realtek Semiconductor Corp. RTL2838 DVB-T
Software
-
Operating System: 6.1.0-rpi8-rpi-v7 #1 SMP Raspbian 1:6.1.73-1+rpt1 (2024-01-25) armv7l GNU/Linux
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian -
SDR++: commit 2813aa7
Bug Description
I get the GUI, but after loading modules it crashes with segmentation fault:
[18/04/2024 01:33:54.000] [INFO] SDR++ v1.1.0
[18/04/2024 01:33:54.000] [INFO] Loading config
[18/04/2024 01:33:54.000] [WARN] ConfigManager locked, waiting...
[18/04/2024 01:33:57.000] [INFO] Using OpenGL 3.0
[18/04/2024 01:33:58.000] [INFO] Loading icons
[18/04/2024 01:33:59.000] [INFO] Loading band plans
[18/04/2024 01:34:00.000] [INFO] Loading band plans color table
[18/04/2024 01:34:00.000] [ERROR] Menu element is missing name key
[18/04/2024 01:34:00.000] [INFO] Loading modules
[18/04/2024 01:34:00.000] [INFO] Loading /usr/lib/sdrpp/plugins/soapy_source.so
[18/04/2024 01:34:01.000] [INFO] Loading /usr/lib/sdrpp/plugins/audio_source.so
[18/04/2024 01:34:02.000] [INFO] Loading /usr/lib/sdrpp/plugins/sdrplay_source.so
[18/04/2024 01:34:03.000] [INFO] Loading /usr/lib/sdrpp/plugins/new_portaudio_sink.so
[18/04/2024 01:34:04.000] [INFO] Loading /usr/lib/sdrpp/plugins/m17_decoder.so
[18/04/2024 01:34:04.000] [INFO] Loading /usr/lib/sdrpp/plugins/discord_integration.so
[18/04/2024 01:34:05.000] [INFO] Loading /usr/lib/sdrpp/plugins/rigctl_client.so
[18/04/2024 01:34:06.000] [INFO] Loading /usr/lib/sdrpp/plugins/plutosdr_source.so
[18/04/2024 01:34:07.000] [WARN] ConfigManager locked, waiting...
[18/04/2024 01:34:07.000] [INFO] Loading /usr/lib/sdrpp/plugins/scanner.so
[18/04/2024 01:34:08.000] [INFO] Loading /usr/lib/sdrpp/plugins/airspyhf_source.so
[18/04/2024 01:34:08.000] [INFO] Loading /usr/lib/sdrpp/plugins/spyserver_source.so
[18/04/2024 01:34:09.000] [WARN] ConfigManager locked, waiting...
[18/04/2024 01:34:09.000] [INFO] Loading /usr/lib/sdrpp/plugins/spectran_http_source.so
[18/04/2024 01:34:10.000] [INFO] Loading /usr/lib/sdrpp/plugins/rigctl_server.so
[18/04/2024 01:34:11.000] [INFO] Loading /usr/lib/sdrpp/plugins/pager_decoder.so
[18/04/2024 01:34:12.000] [INFO] Loading /usr/lib/sdrpp/plugins/network_sink.so
[18/04/2024 01:34:12.000] [INFO] Loading /usr/lib/sdrpp/plugins/file_source.so
[18/04/2024 01:34:13.000] [INFO] Loading /usr/lib/sdrpp/plugins/hermes_source.so
[18/04/2024 01:34:14.000] [INFO] Loading /usr/lib/sdrpp/plugins/iq_exporter.so
[18/04/2024 01:34:15.000] [INFO] Loading /usr/lib/sdrpp/plugins/audio_sink.so
[18/04/2024 01:34:16.000] [INFO] Loading /usr/lib/sdrpp/plugins/frequency_manager.so
[18/04/2024 01:34:17.000] [WARN] ConfigManager locked, waiting...
[18/04/2024 01:34:17.000] [INFO] Loading /usr/lib/sdrpp/plugins/recorder.so
[18/04/2024 01:34:17.000] [INFO] Loading /usr/lib/sdrpp/plugins/rfspace_source.so
[18/04/2024 01:34:18.000] [INFO] Loading /usr/lib/sdrpp/plugins/airspy_source.so
[18/04/2024 01:34:19.000] [INFO] Loading /usr/lib/sdrpp/plugins/sdrpp_server_source.so
[18/04/2024 01:34:20.000] [INFO] Loading /usr/lib/sdrpp/plugins/network_source.so
[18/04/2024 01:34:21.000] [INFO] Loading /usr/lib/sdrpp/plugins/rtl_sdr_source.so
[18/04/2024 01:34:21.000] [INFO] Loading /usr/lib/sdrpp/plugins/radio.so
[18/04/2024 01:34:22.000] [INFO] Loading /usr/lib/sdrpp/plugins/meteor_demodulator.so
[18/04/2024 01:34:23.000] [INFO] Loading /usr/lib/sdrpp/plugins/hackrf_source.so
[18/04/2024 01:34:24.000] [INFO] Loading /usr/lib/sdrpp/plugins/rtl_tcp_source.so
[18/04/2024 01:34:25.000] [INFO] Initializing Airspy Source (airspy_source)
[18/04/2024 01:34:27.000] [INFO] Initializing AirspyHF+ Source (airspyhf_source)
[18/04/2024 01:34:28.000] [INFO] Initializing Audio Sink (audio_sink)
[18/04/2024 01:34:29.000] [INFO] Initializing Audio Source (audio_source)
[18/04/2024 01:34:31.000] [INFO] New DSP samplerate: 48000.000000 (source samplerate is 48000.000000)
[18/04/2024 01:34:31.000] [INFO] Initializing BladeRF Source (bladerf_source)
[18/04/2024 01:34:31.000] [ERROR] Module 'bladerf_source' doesn't exist
[18/04/2024 01:34:31.000] [INFO] Initializing File Source (file_source)
[18/04/2024 01:34:32.000] [INFO] Initializing Frequency Manager (frequency_manager)
[18/04/2024 01:34:32.000] [INFO] Initializing HackRF Source (hackrf_source)
[18/04/2024 01:34:33.000] [INFO] Initializing Hermes Source (hermes_source)
[18/04/2024 01:34:34.000] [INFO] Initializing LimeSDR Source (limesdr_source)
[18/04/2024 01:34:35.000] [ERROR] Module 'limesdr_source' doesn't exist
[18/04/2024 01:34:35.000] [INFO] Initializing Network Sink (network_sink)
[18/04/2024 01:34:36.000] [INFO] Initializing PerseusSDR Source (perseus_source)
[18/04/2024 01:34:36.000] [ERROR] Module 'perseus_source' doesn't exist
[18/04/2024 01:34:36.000] [INFO] Initializing PlutoSDR Source (plutosdr_source)
[18/04/2024 01:34:38.000] [INFO] Initializing RFspace Source (rfspace_source)
[18/04/2024 01:34:39.000] [INFO] Initializing RTL-SDR Source (rtl_sdr_source)
Detached kernel driver
Found Rafael Micro R820T tuner
Reattached kernel driver
[18/04/2024 01:34:40.000] [INFO] Initializing RTL-TCP Source (rtl_tcp_source)
[18/04/2024 01:34:40.000] [INFO] Initializing Radio (radio)
[Resamp] predec: 0, interp: 25, decim: 6, inacc: 0.000000%, taps: 1900
[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: 0, interp: 125, decim: 24, inacc: 0.000000%, taps: 9500
[Resamp] predec: 4, interp: 96, decim: 125, inacc: 0.000000%, taps: 9500
[Resamp] predec: 4, interp: 96, decim: 125, inacc: 0.000000%, taps: 9500
[18/04/2024 01:34:42.000] [WARN] Demod switch took 488553 us
[18/04/2024 01:34:43.000] [INFO] RtAudio stream open
[18/04/2024 01:34:43.000] [INFO] Initializing Recorder (recorder)
[18/04/2024 01:34:43.000] [INFO] Initializing Rigctl Server (rigctl_server)
[18/04/2024 01:34:44.000] [INFO] Initializing SDR++ Server Source (sdrpp_server_source)
[18/04/2024 01:34:44.000] [INFO] Initializing SDRplay Source (sdrplay_source)
[18/04/2024 01:34:45.000] [INFO] Initializing SpyServer Source (spyserver_source)
[18/04/2024 01:34:47.000] [INFO] Loading color maps
[18/04/2024 01:34:47.000] [INFO] Loading /usr/share/sdrpp/colormaps/greyscale.json
[18/04/2024 01:34:48.000] [INFO] Loading /usr/share/sdrpp/colormaps/turbo.json
[18/04/2024 01:34:49.000] [INFO] Loading /usr/share/sdrpp/colormaps/viridis.json
[18/04/2024 01:34:50.000] [INFO] Loading /usr/share/sdrpp/colormaps/gqrx.json
[18/04/2024 01:34:51.000] [INFO] Loading /usr/share/sdrpp/colormaps/vivid.json
[18/04/2024 01:34:52.000] [INFO] Loading /usr/share/sdrpp/colormaps/electric.json
[18/04/2024 01:34:52.000] [INFO] Loading /usr/share/sdrpp/colormaps/magma.json
[18/04/2024 01:34:53.000] [INFO] Loading /usr/share/sdrpp/colormaps/classic_green.json
[18/04/2024 01:34:54.000] [INFO] Loading /usr/share/sdrpp/colormaps/inferno.json
[18/04/2024 01:34:55.000] [INFO] Loading /usr/share/sdrpp/colormaps/classic.json
[18/04/2024 01:34:56.000] [INFO] Loading /usr/share/sdrpp/colormaps/plasma.json
[18/04/2024 01:34:57.000] [INFO] Loading /usr/share/sdrpp/colormaps/temper_colors.json
[18/04/2024 01:34:57.000] [INFO] Loading /usr/share/sdrpp/colormaps/websdr.json
[18/04/2024 01:34:58.000] [INFO] Loading /usr/share/sdrpp/colormaps/smoke.json
VOLK: Error allocating memory (aligned_alloc/_aligned_malloc)
Segmentation fault
Steps To Reproduce
- Compile
- Run.
Only If SDR++ fails to lauch or the SDR fails to start:
[18/04/2024 01:49:31.000] [INFO] SDR++ v1.1.0
Unknown argument
Screenshots
n/a
Additional info
Need to install some additinal packages which were not in the readme.
Captured activity log:
install.log
Since it looks a lot like #321 I may try some of the suggestions at a better hour.
You're just running on a horribly underpowered and out of date machine. From the looks of it a Raspberry Pi 2 or Raspberry pi Zero with way too little ram to run an application like this.