Hey out there,
I just installed gqrx.
I am running into a lot of errors though.
Running on a RPI3b with a RTL2832U dongle.
Anyone able to guide me to get rid of the long list of issues encountered?
pi@Survival02:~/gqrx-2.6-rpi3-2 $ ./run_gqrx.sh
Starting gqrx...
libEGL warning: DRI2: failed to authenticate
** (gqrx:1246): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Controlport disabled
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr – Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr – Init not done for -1, skipping unlock
No user supplied config file. Using "default.conf"
gr-osmosdr b6e4041f (0.1.5git) gnuradio 3.7.10.1
built-in source types: file fcd rtl rtl_tcp hackrf rfspace airspy soapy redpitaya
FM demod gain: 1.52789
IQ DCR alpha: 1.04166e-05
PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4 (version 1246720)
Number of audio devices: 20
0: bcm2835 ALSA: - (hw:0,0) I:0 O:2
1: bcm2835 ALSA: IEC958/HDMI (hw:0,1) I:0 O:2
2: sysdefault I:0 O:128
3: front I:0 O:128
4: rear I:0 O:128
5: center_lfe I:0 O:128
6: side I:0 O:128
7: surround21 I:0 O:128
8: surround40 I:0 O:128
9: surround41 I:0 O:128
10: surround50 I:0 O:128
11: surround51 I:0 O:128
12: surround71 I:0 O:128
13: iec958 I:0 O:128
14: spdif I:0 O:128
15: hdmi I:0 O:128
16: modem I:0 O:128
17: phoneline I:0 O:128
18: dmix I:0 O:2
19: default I:32 O:32
Using default audio device
Using audio backend: N/A
BookmarksFile is /home/pi/.config/gqrx/bookmarks.csv
getDeviceList : Available input devices:
0 : "Generic RTL2832U SN: 77771111153705700"
1 : "RFSPACE SDR-IQ Receiver"
2 : "RFSPACE SDR-IP Receiver"
3 : "RFSPACE NetSDR Receiver"
4 : "RFSPACE Cloud-IQ Receiver"
5 : "RTL-SDR Spectrum Server"
6 : "Red Pitaya Transceiver Server"
7 : "Complex Sampled (IQ) File"
Loading configuration from: "default.conf"
Configuration file: "/home/pi/.config/gqrx/default.conf"
Crash guard triggered!
gr-osmosdr b6e4041f (0.1.5git) gnuradio 3.7.10.1
built-in source types: file fcd rtl rtl_tcp hackrf rfspace airspy soapy redpitaya
Using device #0 Generic RTL2832U SN: 77771111153705700
Detached kernel driver
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
[R82XX] PLL not locked!
IQ DCR samp_rate: 1.024e+06
IQ DCR alpha: 9.76562e-07
Changing NB_RX quad rate: 96000 -> 1.024e+06
New antenna selected: "RX"
********************
Gain name: "LNA"
min: 0
max: 49.6
step: 0.5
********************
No change in output device:
old:
new:
[R82XX] PLL not locked!
IQ DCR samp_rate: 1.8e+06
IQ DCR alpha: 5.55555e-07
Changing NB_RX quad rate: 1.024e+06 -> 1.8e+06
Requested sample rate: 1800000
Actual sample rate : "1800000.000000"
New FFT rate: 25 Hz
Requested bandwidth: 799999 Hz
Actual bandwidth : 0 Hz
setFreqCorr : 0 ppm
New LNB LO: 0 Hz
New mode index: 5
FM demod gain: 0.509296
Filter preset for mode 5 LO: -80000 HI: 80000
Genrating taps for new filter LO:-80000 HI:80000 TW:32000 Taps: 19
setFftRate to "25 fps"
New FFT rate: 25 Hz
New FFT rate: 25 Hz
setFftSize to "8192"
New FFT rate: 25 Hz
New FFT rate: 25 Hz
New FFT rate: 25 Hz
No audio FFT data.
No audio FFT data.
No audio FFT data.
No audio FFT data.
No audio FFT data.
No audio FFT data.
No audio FFT data.
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
No audio FFT data.
portaudio_sink::work(): Error writing to audio device: Output underflowed
No audio FFT data.
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
portaudio_sink::work(): Error writing to audio device: Output underflowed
No audio FFT data.
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
portaudio_sink::work(): Error writing to audio device: Output underflowed
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOExpression 'res' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3502
Expression 'PaAlsaStreamComponent_EndProcessing( &self->playback, numFrames, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3601
Expression 'PaAlsaStream_EndProcessing( stream, framesGot, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4484
portaudio_sink::work(): Error writing to audio device: Unanticipated host error
portaudio_sink::work(): Error writing to audio device: Invalid stream pointer
*** Error in `portaudio_sink::work(): Error writing to audio device: Invalid stream pointer
portaudio_sink::work(): Error writing to audio device: Invalid stream pointer
gqrx': malloc(): memory corruption (fast): 0x017f4310 ***
./run_gqrx.sh: line 18: 1246 Aborted gqrx $1 $2
pi@Survival02:~/gqrx-2.6-rpi3-2 $ rtl_test -t
Found 1 device(s):
0: Generic, RTL2832U, SN: 77771111153705700
Using device 0: Generic RTL2832U
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.
pi@Survival02:~/gqrx-2.6-rpi3-2 $
Thanks,
Paul
Starting gqrx...
libEGL warning: DRI2: failed to authenticate
** (gqrx:1744): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
gr-osmosdr b6e4041f (0.1.5git) gnuradio 3.7.10.1
built-in source types: file fcd rtl rtl_tcp hackrf rfspace airspy soapy redpitaya
Using device #0 Generic RTL2832U SN: 77771111153705700
Detached kernel driver
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
[R82XX] PLL not locked!
IQ DCR samp_rate: 1.024e+06
IQ DCR alpha: 9.76562e-07
Changing NB_RX quad rate: 96000 -> 1.024e+06
New antenna selected: "RX"
********************
Gain name: "LNA"
min: 0
max: 49.6
step: 0.5
********************
New audio output device:
old:
new: bcm2835 ALSA: - (hw:0,0)
PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4 (version 1246720)
Number of audio devices: 20
0: bcm2835 ALSA: - (hw:0,0) I:0 O:2
1: bcm2835 ALSA: IEC958/HDMI (hw:0,1) I:0 O:2
2: sysdefault I:0 O:128
3: front I:0 O:128
4: rear I:0 O:128
5: center_lfe I:0 O:128
6: side I:0 O:128
7: surround21 I:0 O:128
8: surround40 I:0 O:128
9: surround41 I:0 O:128
10: surround50 I:0 O:128
11: surround51 I:0 O:128
12: surround71 I:0 O:128
13: iec958 I:0 O:128
14: spdif I:0 O:128
15: hdmi I:0 O:128
16: modem I:0 O:128
17: phoneline I:0 O:128
18: dmix I:0 O:2
19: default I:32 O:32
Audio device 'bcm2835 ALSA: - (hw:0,0)' has index 0
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
portaudio_sink::work(): Error writing to audio device: Output underflowed
Hey out there,
Paul,
if you really wish to know:
1) reduce the sampling rate on the dongle. An RTL dongle
can offer a sample rate as low as 240kS/s, which will put less of
a load on your system than sampling at 1 800kS/s. On my test Intel
system, with thermald clock controller, going from 300kS/s to
2.88MS/s increased the load on the CPUs from around 40% each, to
around 80% each, 1.8MS/s gave a load of around 55% each
2) to see where processing time is going, use htop
3) the trace shows a lot of audio stuff which may relate
to extra audio dongles plugged in
4) much the easiest way of sorting out what is happening
here, is to set up an equivalent system on a desktop, nettop or
laptop machine, so that there is a fully working reference
installation
5) the underrun messages indicate that the pulseaudio
mechanism is not being fed audio samples quickly enough by GQRX,
and that in turn indicates a lack of processing cycles (underrun
GQRX will bring up a lot of results from a search engine. For
instance http://superkuh.com/rtlsdr.html
says much the same. One mustn't be afraid to look! Search engines
don't bite!)
6) you haven't stated whether or not you ran volk_profile—it will take a while to run—to optimise the DSP routines
7) Not currently owning a Raspberry Pi 3, it's hard to offer further structured advice. However, it would be a great courtesy to Alex, and myself, to run rtl_test without any options. The result is a useful diagnostic
8) at the end of the day, the only person who can debug this installation is yourself. Besides this list, there are a lot of resources waiting to be exercised by your native guile and cunning, aided by your favourite search engine
Good luck, 73,
Robin, G8DQX