usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

UHD 3.13.0.3-rc1 crash when stopping X300 Tx streaming, Windows 10.

ML
Mathieu Lizée
Tue, Oct 16, 2018 2:16 PM

Hi,

We can stream without any issues with our USRP X300. However, in our
application, when we delete the uhd::usrp::multi_usrp object, an exception
is thrown causing our app to crash unexpectedly.
After investigation, it seems that the exception is thrown in
block_ctrl_base.cpp, line 275:  throw uhd::io_error(str(boost::format("[%s]
sr_write() failed: %s") % get_block_id().get() % ex.what()));

We also have been able to reproduce this issue with the "tx_waveforms"
example provided by UHD by modifying it slightly (see attached source file).
As you can see, we have only added an additional thread calling
"get_time_now()" each 10 milliseconds. Without this call, the example works
normally.

Please also note that this problem does not occur with Ubuntu 16.04 (only
on Windows 10).

Do you have any idea of what could be wrong, or a suggestion to try on our
side?

Thank you!

Technical Information:

  • USRP X300
  • Windows 10
  • UHD 3.13.0.3-rc1

--
Mathieu Lizee
Software Development Intern

Skydel Solutions
WeWork 5th Floor (Skydel)
1275 Av des Canadiens-de-Montreal
Montreal, QC
H3B 0G4

Hi, We can stream without any issues with our USRP X300. However, in our application, when we delete the uhd::usrp::multi_usrp object, an exception is thrown causing our app to crash unexpectedly. After investigation, it seems that the exception is thrown in block_ctrl_base.cpp, line 275: throw uhd::io_error(str(boost::format("[%s] sr_write() failed: %s") % get_block_id().get() % ex.what())); We also have been able to reproduce this issue with the "tx_waveforms" example provided by UHD by modifying it slightly (see attached source file). As you can see, we have only added an additional thread calling "get_time_now()" each 10 milliseconds. Without this call, the example works normally. Please also note that this problem does not occur with Ubuntu 16.04 (only on Windows 10). Do you have any idea of what could be wrong, or a suggestion to try on our side? Thank you! Technical Information: - USRP X300 - Windows 10 - UHD 3.13.0.3-rc1 -- *Mathieu Lizee* *Software Development Intern* *Skydel Solutions* WeWork 5th Floor (Skydel) 1275 Av des Canadiens-de-Montreal Montreal, QC H3B 0G4