Page 3 of 7

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 12:44 pm
by Rebel
I don't know if it helps, but this is the output from the command: SoapySDRUtil --probe="driver=sdrplay

Code: Select all

fred@xxxxxx:~$ SoapySDRUtil --probe="driver=sdrplay"
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device driver=sdrplay

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=SDRPlay
  hardware=SDRPlay
  mir_sdr_version=1.950000

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO
  Other Settings:
     * Low IF (when available) - Use low IF when available: 0.5MHz SR with 200 and 300khz BW, 1MHz SR with 600kHz BW, 2048kHz SR with 1536kHz BW
       [key=use_low_if, default=true, type=bool]
     * IF Mode - IF frequency in kHz
       [key=if_mode, default=Zero-IF, type=string, options=(Zero-IF, 450kHz, 1620kHz, 2048kHz)]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: YES
  Stream formats: CS16, CF32
  Native format: CS16 [full-scale=2048]
  Antennas: RX
  Corrections: DC removal, DC offset
  Full gain range: [0, 204] dB
    TUNER gain range: [0, 102] dB
    LNAT gain range: [0, 102] dB
  Full freq range: [0.1, 2000] MHz
    RF freq range: [0.1, 2000] MHz
  Sample rates: [0.222222, 12] MHz
  Filter bandwidths: [0.2, 8] MHz


*** Error in `SoapySDRUtil': munmap_chunk(): invalid pointer: 0x000000000119c568 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7fae94b8f725]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7fae94b9bc18]
/lib/x86_64-linux-gnu/libc.so.6(+0x39fe8)[0x7fae94b51fe8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a035)[0x7fae94b52035]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0x7fae94b38837]
SoapySDRUtil(_start+0x29)[0x4032f9]
======= Memory map: ========
00400000-00410000 r-xp 00000000 08:07 5112790                            /usr/local/bin/SoapySDRUtil
0060f000-00610000 r--p 0000f000 08:07 5112790                            /usr/local/bin/SoapySDRUtil
00610000-00611000 rw-p 00010000 08:07 5112790                            /usr/local/bin/SoapySDRUtil
0118a000-011f7000 rw-p 00000000 00:00 0                                  [heap]
7fae8c000000-7fae8c021000 rw-p 00000000 00:00 0 
7fae8c021000-7fae90000000 ---p 00000000 00:00 0 
7fae90766000-7fae90767000 ---p 00000000 00:00 0 
7fae90767000-7fae90f67000 rw-p 00000000 00:00 0 
7fae90f67000-7fae90f68000 ---p 00000000 00:00 0 
7fae90f68000-7fae91768000 rw-p 00000000 00:00 0 
7fae91768000-7fae91781000 r-xp 00000000 08:07 5111908                    /usr/local/lib/libmirsdrapi-rsp-x86_64-1.95.so
7fae91781000-7fae91980000 ---p 00019000 08:07 5111908                    /usr/local/lib/libmirsdrapi-rsp-x86_64-1.95.so
7fae91980000-7fae91981000 r--p 00018000 08:07 5111908                    /usr/local/lib/libmirsdrapi-rsp-x86_64-1.95.so
7fae91981000-7fae91986000 rw-p 00019000 08:07 5111908                    /usr/local/lib/libmirsdrapi-rsp-x86_64-1.95.so
7fae91986000-7fae934f1000 rw-p 00000000 00:00 0 
7fae934f8000-7fae9350a000 r-xp 00000000 08:07 8519806                    /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
7fae9350a000-7fae93709000 ---p 00012000 08:07 8519806                    /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
7fae93709000-7fae9370a000 r--p 00011000 08:07 8519806                    /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
7fae9370a000-7fae9370b000 rw-p 00012000 08:07 8519806                    /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
7fae93710000-7fae93717000 r-xp 00000000 08:07 4981345                    /lib/x86_64-linux-gnu/librt-2.23.so
7fae93717000-7fae93916000 ---p 00007000 08:07 4981345                    /lib/x86_64-linux-gnu/librt-2.23.so
7fae93916000-7fae93917000 r--p 00006000 08:07 4981345                    /lib/x86_64-linux-gnu/librt-2.23.so
7fae93917000-7fae93918000 rw-p 00007000 08:07 4981345                    /lib/x86_64-linux-gnu/librt-2.23.so
7fae93918000-7fae9392f000 r-xp 00000000 08:07 4981149                    /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7fae9392f000-7fae93b2e000 ---p 00017000 08:07 4981149                    /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7fae93b2e000-7fae93b2f000 r--p 00016000 08:07 4981149                    /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7fae93b2f000-7fae93b30000 rw-p 00017000 08:07 4981149                    /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0
7fae93b30000-7fae93b3e000 r-xp 00000000 08:07 5245419                    /usr/lib/x86_64-linux-gnu/librtlsdr.so.0.5.3
7fae93b3e000-7fae93d3d000 ---p 0000e000 08:07 5245419                    /usr/lib/x86_64-linux-gnu/librtlsdr.so.0.5.3
7fae93d3d000-7fae93d3e000 r--p 0000d000 08:07 5245419                    /usr/lib/x86_64-linux-gnu/librtlsdr.so.0.5.3
7fae93d3e000-7fae93d3f000 rw-p 0000e000 08:07 5245419                    /usr/lib/x86_64-linux-gnu/librtlsdr.so.0.5.3
7fae93d40000-7fae93d5a000 r-xp 00000000 08:07 8519807                    /usr/local/lib/SoapySDR/modules/librtlsdrSupport.so
7fae93d5a000-7fae93f59000 ---p 0001a000 08:07 8519807                    /usr/local/lib/SoapySDR/modules/librtlsdrSupport.so
7fae93f59000-7fae93f5a000 r--p 00019000 08:07 8519807                    /usr/local/lib/SoapySDR/modules/librtlsdrSupport.so
7fae93f5a000-7fae93f5b000 rw-p 0001a000 08:07 8519807                    /usr/local/lib/SoapySDR/modules/librtlsdrSupport.so
7fae93f60000-7fae93f90000 r-xp 00000000 08:07 5116944                    /usr/local/lib/libSoapySDR.so.0.4.0
7fae93f90000-7fae94190000 ---p 00030000 08:07 5116944                    /usr/local/lib/libSoapySDR.so.0.4.0
7fae94190000-7fae94191000 r--p 00030000 08:07 5116944                    /usr/local/lib/libSoapySDR.so.0.4.0
7fae94191000-7fae94192000 rw-p 00031000 08:07 5116944                    /usr/local/lib/libSoapySDR.so.0.4.0
7fae94198000-7fae941d7000 r-xp 00000000 08:07 8523025                    /usr/local/lib/SoapySDR/modules/libremoteSupport.so
7fae941d7000-7fae943d7000 ---p 0003f000 08:07 8523025                    /usr/local/lib/SoapySDR/modules/libremoteSupport.so
7fae943d7000-7fae943d8000 r--p 0003f000 08:07 8523025                    /usr/local/lib/SoapySDR/modules/libremoteSupport.so
7fae943d8000-7fae943d9000 rw-p 00040000 08:07 8523025                    /usr/local/lib/SoapySDR/modules/libremoteSupport.so
7fae943e0000-7fae943f8000 r-xp 00000000 08:07 4981349                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fae943f8000-7fae945f7000 ---p 00018000 08:07 4981349                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fae945f7000-7fae945f8000 r--p 00017000 08:07 4981349                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fae945f8000-7fae945f9000 rw-p 00018000 08:07 4981349                    /lib/x86_64-linux-gnu/libpthread-2.23.so
7fae945f9000-7fae945fd000 rw-p 00000000 00:00 0 
7fae94600000-7fae94708000 r-xp 00000000 08:07 4981339                    /lib/x86_64-linux-gnu/libm-2.23.so
7fae94708000-7fae94907000 ---p 00108000 08:07 4981339                    /lib/x86_64-linux-gnu/libm-2.23.so
7fae94907000-7fae94908000 r--p 00107000 08:07 4981339                    /lib/x86_64-linux-gnu/libm-2.23.so
7fae94908000-7fae94909000 rw-p 00108000 08:07 4981339                    /lib/x86_64-linux-gnu/libm-2.23.so
7fae94910000-7fae94913000 r-xp 00000000 08:07 4981351                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fae94913000-7fae94b12000 ---p 00003000 08:07 4981351                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fae94b12000-7fae94b13000 r--p 00002000 08:07 4981351                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fae94b13000-7fae94b14000 rw-p 00003000 08:07 4981351                    /lib/x86_64-linux-gnu/libdl-2.23.so
7fae94b18000-7fae94cd8000 r-xp 00000000 08:07 4981350                    /lib/x86_64-linux-gnu/libc-2.23.so
7fae94cd8000-7fae94ed7000 ---p 001c0000 08:07 4981350                    /lib/x86_64-linux-gnu/libc-2.23.so
7fae94ed7000-7fae94edb000 r--p 001bf000 08:07 4981350                    /lib/x86_64-linux-gnu/libc-2.23.so
7fae94edb000-7fae94edd000 rw-p 001c3000 08:07 4981350                    /lib/x86_64-linux-gnu/libc-2.23.so
7fae94edd000-7fae94ee1000 rw-p 00000000 00:00 0 
7fae94ee8000-7fae94efe000 r-xp 00000000 08:07 4981310                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fae94efe000-7fae950fd000 ---p 00016000 08:07 4981310                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fae950fd000-7fae950fe000 rw-p 00015000 08:07 4981310                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7fae95100000-7fae95272000 r-xp 00000000 08:07 5254753                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fae95272000-7fae95472000 ---p 00172000 08:07 5254753                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fae95472000-7fae9547c000 r--p 00172000 08:07 5254753                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fae9547c000-7fae9547e000 rw-p 0017c000 08:07 5254753                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fae9547e000-7fae95482000 rw-p 00000000 00:00 0 
7fae95488000-7fae954bf000 r-xp 00000000 08:07 5112870                    /usr/local/lib/libSoapySDR.so.0.5.0
7fae954bf000-7fae956bf000 ---p 00037000 08:07 5112870                    /usr/local/lib/libSoapySDR.so.0.5.0
7fae956bf000-7fae956c0000 r--p 00037000 08:07 5112870                    /usr/local/lib/libSoapySDR.so.0.5.0
7fae956c0000-7fae956c1000 rw-p 00038000 08:07 5112870                    /usr/local/lib/libSoapySDR.so.0.5.0
7fae956c8000-7fae956ee000 r-xp 00000000 08:07 4981346                    /lib/x86_64-linux-gnu/ld-2.23.so
7fae958b5000-7fae958b8000 rw-p 00000000 00:00 0 
7fae958c8000-7fae958e6000 r-xp 00000000 08:07 4981323                    /lib/x86_64-linux-gnu/libudev.so.1.6.4
7fae958e6000-7fae958e7000 r--p 0001d000 08:07 4981323                    /lib/x86_64-linux-gnu/libudev.so.1.6.4
7fae958e7000-7fae958e8000 rw-p 0001e000 08:07 4981323                    /lib/x86_64-linux-gnu/libudev.so.1.6.4
7fae958e8000-7fae958ed000 rw-p 00000000 00:00 0 
7fae958ed000-7fae958ee000 r--p 00025000 08:07 4981346                    /lib/x86_64-linux-gnu/ld-2.23.so
7fae958ee000-7fae958ef000 rw-p 00026000 08:07 4981346                    /lib/x86_64-linux-gnu/ld-2.23.so
7fae958ef000-7fae958f2000 rw-p 00000000 00:00 0 
7ffe1218f000-7ffe121b0000 rw-p 00000000 00:00 0                          [stack]
7ffe121f0000-7ffe121f2000 r--p 00000000 00:00 0                          [vvar]
7ffe121f2000-7ffe121f4000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Abgebrochen (Speicherabzug geschrieben)
fred@xxxxxx:~$ 
73 de Fred, DL6BAW

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 1:00 pm
by sdrplay
The strange thing is that the errors come after the RSP has been discovered and it's properties reported so I'm struggling to see that it's directly related to that - although I take the point that it doesn't do it with the RTL device.

I have just looked and SoapySDRPlay is now using deprecated functions in the new SoapySDR - bit of a long shot if that's involved?

Have you tried building 0.4 versions of SoapySDRPlay and SoapySDR to check?

Best regards,

SDRplay Support

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 4:46 pm
by IW2DHW
I have done some more test and now is clearly a SoapySDR problem.

Removed all SoapySDR* libraries and CubicSDR
New and fresh git clone for SoapySDR, SoapySDRPlay and SoapyRTLSDR
Compile and install without problem.

SoapySDRUtil --find

show correctly RTLSDR and SDRPlay devices

SoapySDRUtil --info

show factory for null, rtlsdr and sdrplay

SoapySDRUtil --probe and also --probe=sdrplay

show only RTLSDR device (--probe show 2 times same device)

Code: Select all

spin@franco:~/Scaricati/CubicSDR/SoapyRTLSDR/build$ SoapySDRUtil --probe
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device 
Found Fitipower FC0012 tuner
Found Fitipower FC0012 tuner

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=RTLSDR
  hardware=RTLSDR
  origin=https://github.com/pothosware/SoapyRTLSDR
  rtl=0

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO
  Other Settings:
     * Direct Sampling - RTL-SDR Direct Sampling Mode
       [key=direct_samp, default=0, type=string, options=(0, 1, 2)]
     * Offset Tune - RTL-SDR Offset Tuning Mode
       [key=offset_tune, default=false, type=bool]
     * I/Q Swap - RTL-SDR I/Q Swap Mode
       [key=iq_swap, default=false, type=bool]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: YES
  Stream formats: CS8, CS16, CF32
  Native format: CS8 [full-scale=128]
  Stream args:
     * Buffer Size - Number of bytes per buffer, multiples of 512 only.
       [key=bufflen, units=bytes, default=16384, type=int]
     * Buffer Count - Number of buffers per read.
       [key=buffers, units=buffers, default=15, type=int]
  Antennas: RX
  Full gain range: [0, 29.1] dB
    TUNER gain range: [-9.9, 19.2] dB
  Full freq range: [21.999, 1100] MHz
    RF freq range: [22, 1100] MHz
    CORR freq range: [-0.001, 0.001] MHz
  Sample rates: [0.25, 3.2] MHz
  
and running Python test program from SoapySDR wiki, as per my previous message, crash Ubuntu 16.04 at stream level.

So, not a Cubic problem but a SoapySDRPlay problem with new and old API (1.9 1.94 and 1.95)
Same source, compiled on Ubuntu 14.04 64 bit work without any problem with API 1.9.

How can I downgrade to 0.4 version of SoapySDR*?

Regards
Franco Spinelli
IW2DHW

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 6:59 pm
by DK7OB
But it if is an SoapySDR problem, why does it work for me, but only on USB 3.0 ports??

My setup is basically the same as Franco's, everything build from source with all sources from their respective git repos.

Ubuntu 16.04 is a fresh install, not an upgrade.

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 8:09 pm
by IW2DHW
I suppose a compatibility problem between libusb, Soapy and some other library.

Gqrx and gr-osmosdr run OK on 16.04 with new API and using SDRPlay device, not SoapySDR device.
So API library is correct, if used from gr-osmosdr. I don't know differences in library usage between gr-osmosdr and Soapy*

We need help from support, with some version of API or SoapySDRPlay modified for testing.

Regards
Franco Spinelli
IW2DHW

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 8:12 pm
by sdrplay
It does sound like a libusb problem.

Try building/installing the latest libusb...

https://sourceforge.net/projects/libusb ... sb-1.0.20/

If that doesn't work I'll modify SoapySDRPlay to add debug info.

Best regards,

SDRplay Support

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 8:16 pm
by sdrplay
As I mentioned before, SoapySDRPlay is now using deprecated functions because of 0.5 SoapySDR.

You should be able to build 0.4 from the SoapySDR github source revision history.

Maybe try that before libusb

Best regards,

SDRplay Support

Re: ubuntu 16.04: nothing works!

Posted: Thu Jul 14, 2016 10:04 pm
by IIR
sdrplay wrote:As I mentioned before, SoapySDRPlay is now using deprecated functions because of 0.5 SoapySDR.

You should be able to build 0.4 from the SoapySDR github source revision history.

Maybe try that before libusb

Best regards,

SDRplay Support
Aye, I built it from the latest github pull from today. Unfortunately the issue still exists - I drilled down with some tests -on both USB3 and USB2 ports and these are the results - using GQRX (latest GitHub) and others:

|| Rate | Decimation | Result ||
| 100000 | None | OK |
| 100000 | 4 | OK |
| 10000000 | None | Kernel panic (actually setting this mode causes it |
| 12000000 | 16 | Kernel panic after roughly one second of activating capture |

I also tried max settings on my RTL dongle (no decimation) and it held up fine.

It looks like there's *something* in the driver that causes a kernel panic as soon as these are set from whichever app / tool.

Hope this helps!

Re: ubuntu 16.04: nothing works!

Posted: Fri Jul 15, 2016 8:10 am
by sdrplay
Couple of things to note about that. We don't do decimation in the same way now. I really need to find some time to update the SoapySDRPlay module.

Max sample rate should be 10MHz, don't use any higher than that.

I don't know how a sample rate of 100kHz can be derived using a decimation factor of 4 - min sample rate is 2MHz

Also a quick look at the code I see that decimation is only applied in Low IF mode - have you tried Zero IF mode without decimation? I've never really understood why Low IF mode seems to be the default in that module.

Best regards,

SDRplay Support

Re: ubuntu 16.04: nothing works!

Posted: Fri Jul 15, 2016 7:17 pm
by IW2DHW
Some inquiry on libusb in Ubuntu 14.04 and in Ubuntu 16.04

On Ubuntu 14.04 both API (1.8.4) and SoapySDRPlay library require libusb-1.0-0 and
on this system libusb is at version 1.0.17-1

On Ubuntu 16.04 both API (1.95.1) and SoapySDRPlay library require libusb-1.0-0 and
on this system libusb is at version 1.0.20-1

So the only difference is in libusb version. Can be a change in libusb from 1.0.17 to 1.0.20?
But libusb is used by API and by SoapySDRPlay (why?) and API is used by gr-osmosdr

Gqrx is working with gr-osmosdr so API and API usage of libusb is correct but SopaySDRPlay usage of libusb is incorrect?

Is this a possibility?
Crash are all at stream level, when SoapySDR activate stream

Regards
Franco Spinelli
IW2DHW