[USRP-users] uhd::usrp::multi_usrp::make does not return with max buffer size not set

Marcus Müller marcus.mueller at ettus.com
Tue Mar 22 11:24:58 EDT 2016

Hi Tyler,

hm, interesting; I've never seen this happen myself (but I'm no Mac
user, and this is OS-specific).
Now, I *presume* this happens in our Boost::asio code, but it's a bit
hard to tell.
So, first question straight off: I notice you have *very* recent boost,
but a rather old UHD; is that intentional?
What values did you set in systcl.conf?
So, I have a strong suspicion in which Boost function that output
happens[1], but it's hard to track where the program flow hangs afterwards.
What's especially interesting: We've got a number of exception handlers
in the USRP2/N2x0 classes, and maybe one of these wrongfully catches the
exception Boost throws.

So: can you run your program in lldb:

1. start your program:
-- Current send frame size: 1472 bytes
ERROR: set_option: No buffer space available
{here it hangs}

2. in lldb, attach to your program (replace "12345" by the PID of your
hanging program)

> attach 12345
> bt

Could you share the full output?

Best regards,


On 03/22/2016 03:57 PM, Weaver, Tyler via USRP-users wrote:
> Here is the std::out printout:
> Mac OS; Clang version 6.1.0 (clang-602.0.49); Boost_106000;
> UHD_003.008.005-0-unknown
> -- Opening a USRP2/N-Series device...
> -- Current recv frame size: 1472 bytes
> -- Current send frame size: 1472 bytes
> ERROR: set_option: No buffer space available
> At this point it just hangs as make does not return or throw an
> exception.  I can remove this error by setting values in
> /etc/sysctl.conf however I would like to detect when this error occurs
> so I can display a useful message in my GUI so the user knows what
> went wrong.
> Thank you,
> tyler
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20160322/dd2f0d5b/attachment-0002.html>

More information about the USRP-users mailing list