discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] crash: get_usrp_info(): RuntimeError: vector::_M_


From: Josh Blum
Subject: Re: [Discuss-gnuradio] crash: get_usrp_info(): RuntimeError: vector::_M_range_check (uhd)
Date: Thu, 21 Feb 2013 13:17:35 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2


On 02/20/2013 09:50 PM, ikjtel wrote:
> This is on a USRP1 with two channels , when calling get_usrp_info(0) all is 
> fine, but get_usrp_info(1) is greeted with a crash:
> 
> Traceback (most recent call last):
>   File "eh.py", line 158, in <module>
>     main ()
>   File "eh.py", line 151, in main
>     tb = build_block (options.args, options.tx_enable, options.rx_enable)
>   File "eh.py", line 116, in __init__
>     d = self.u_rx.get_usrp_info(i)                  <=============== note i=1 
> here
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py", 
> line 1824, in get_usrp_info
>     return _uhd_swig.uhd_usrp_source_sptr_get_usrp_info(self, chan)
> RuntimeError: vector::_M_range_check
> 

My first guess is that it doesnt know the channel mapping (how the
frontends map to RX DSPs). So there is nothing to query for channel 1
which isnt setup.

Try setting the subdevice spec string for for the two channel usage.

-josh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]