Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating uhd::stream_args_t: "string too long" #807

Open
tantanli opened this issue Nov 4, 2024 · 1 comment
Open

Error when creating uhd::stream_args_t: "string too long" #807

tantanli opened this issue Nov 4, 2024 · 1 comment

Comments

@tantanli
Copy link

tantanli commented Nov 4, 2024

Description:
I encountered a runtime error while trying to create an instance of uhd::stream_args_t with the following parameters:

uhd::stream_args_t stream_args("fc32", "sc16");

Error Message:

string too long

UHD Version: uhd_4.7.0.0-release_Win64_VS2017.exe
Compiler: Visual Studio 2017
I have tried different combinations of CPU and OTW formats but still encounter the same error.
Using the default constructor does not produce the error.
Thank you for your help!

@tantanli
Copy link
Author

tantanli commented Nov 5, 2024

I ran into some issues with examples that seemed to be fixed before, saying it should work with UHD version 3.14.1.0 or later. But mine is 4.6.0.0, and I’m not sure if that’s the problem.See #198

Setting device timestamp to 0...

Begin streaming 10000 samples, 1.500000 seconds in the future...
[ERROR] [STREAMER] recv packet demuxer unexpected sid 0x1ffff
[ERROR] [STREAMER] recv packet demuxer unexpected sid 0x10004
[ERROR] [STREAMER] recv packet demuxer unexpected sid 0xfffafff9
[ERROR] [STREAMER] recv packet demuxer unexpected sid 0xc0008
[ERROR] [STREAMER] recv packet demuxer unexpected sid 0xfffcfff5
Receive timeout before all samples received...

And here is the version

C:\Program Files\UHD\lib\uhd\examples>uhd_config_info --print-all
UHD 4.6.0.0-release
Build date: Tue, 14 Nov 2023 18:12:08
C compiler: MSVC 2015
C++ compiler: MSVC 2015
C flags: /D WIN32_LEAN_AND_MEAN /D VC_EXTRALEAN /D _SCL_SECURE_NO_WARNINGS /D _SCL_SECURE_NO_DEPRECATE /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_NONSTDC_NO_DEPRECATE /D _WINSOCK_DEPRECATED_NO_WARNINGS /D _WIN32_WINNT=0x0501 /D NOMINMAX /D BOOST_ERROR_CODE_HEADER_ONLY /D BOOST_ASIO_DISABLE_STD_STRING_VIEW /D BOOST_ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW /D HAVE_CONFIG_H /D UHD_LOG_MIN_LEVEL=1 /D UHD_LOG_CONSOLE_LEVEL=2 /D UHD_LOG_FILE_LEVEL=2/DWIN32 /D_WINDOWS /W3
C++ flags: /D WIN32_LEAN_AND_MEAN /D VC_EXTRALEAN /D _SCL_SECURE_NO_WARNINGS /D _SCL_SECURE_NO_DEPRECATE /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_NONSTDC_NO_DEPRECATE /D _WINSOCK_DEPRECATED_NO_WARNINGS /D _WIN32_WINNT=0x0501 /D NOMINMAX /D BOOST_ERROR_CODE_HEADER_ONLY /D BOOST_ASIO_DISABLE_STD_STRING_VIEW /D BOOST_ASIO_DISABLE_STD_EXPERIMENTAL_STRING_VIEW /D HAVE_CONFIG_H /D UHD_LOG_MIN_LEVEL=1 /D UHD_LOG_CONSOLE_LEVEL=2 /D UHD_LOG_FILE_LEVEL=2/DWIN32 /D_WINDOWS /W3 /GR /EHsc
Enabled components: LibUHD, LibUHD - C API, Examples, Utils, Tests, USB, B100, B200, USRP1, USRP2, X300, MPMD, N300, N320, E320, E300, X400, OctoClock
Install prefix: C:/Program Files/UHD
Boost version: 1.78
Libusb version: 1.0.26
Library path: C:\Program Files\UHD\bin
Package path: C:\Program Files\UHD
Images directory: C:\Program Files\UHD\share\uhd\images
ABI version string: 4.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant