UHD Error: Stoul Argument out of Range

Updated Jun 8, 2026

Reported In

Hardware

  • Ettus USRP X410

Software

  • C/C++ Development Tools

Other

Windows 10

Windows 11

UHD 4.8 for Windows

Issue Details

When using UHD 4.8 for Windows (Downloaded using Windows Installers), running any UHD example utility with arguments (e.g. uhd_usrp_probe --args=addr=192.168.20.2) results in error:

Error: stoul argument out of range

Solution

The root cause for this error is often a wrong user input. So, the UHD driver currently reports this generic message. The fix mentioned below provides a better error message that explains what exactly was invalid.

This is fixed in UHD V_4.9, and you will get a better error handling on wrong user input, but you need to compile the code at your own. Installers are available with the UHD V_4.9 release. You can find the solution under the link below:

uhd: Remove usage of std::stoul() on user input · EttusResearch/uhd@a5b52c6

Recommendations

  • Always run only one UHD application at a time
  • Double check your input parameters for potential bad values (maybe you have a script, what changes inputs dynamically and in some corner cases those inputs are wrong)