gqrx-sdr / gqrx

Software defined radio receiver powered by GNU Radio and Qt.
http://gqrx.dk
GNU General Public License v3.0
3.04k stars 540 forks source link

Space in Device string -> crash #624

Closed gasparka closed 6 years ago

gasparka commented 6 years ago

Works:

driver=lime,soapy=0

Fails:

driver=lime, soapy=0

Error:

gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy soapy redpitaya 
[INFO] Make connection: 'LimeSDR Mini [USB 3.0] 1D3A0A9DFE4545'
[INFO] Reference clock 40.00 MHz
[INFO] Device name: LimeSDR-Mini
[INFO] Reference: 4e+07 MHz
[INFO] LMS7002M calibration values caching Disable
[WARNING] LNAL has no connection to RF ports
[INFO] RX LPF configured
terminate called after throwing an instance of 'std::runtime_error'
  what():  In hierarchical block source_impl, output 1 is not connected internally
[1]    10466 abort (core dumped)  gqrx
csete commented 6 years ago

The device string is passed to the backend unaltered, which then interprets it. Therefore, it has to be accurate.

In a perfect world, gqrx could catch exceptions raised by the backend and handle them properly. In reality, it is much easier to rewrite everything from scratch, which we are now doing in another project.