rplidar_sdk: *** buffer overflow detected ***: ./ultra_simple terminated

Hello~ I use order ./ultra_simple --channel -s ttyUSB0 256000 to test the RPLIDAR S1 on jetson nano, but en error occurred that

Ultra simple LIDAR data grabber for SLAMTEC LIDAR.
Version: SL_LIDAR_SDK_VERSION
*** buffer overflow detected ***: ./ultra_simple terminated
Aborted (core dumped)

l have had use the order ‘sudo chmod a+rw /dev/ttyUSB0’ to set the UART permission There is any solution about this problem?

About this issue

Most upvoted comments

@LDec-AlmostHuman I started from fresh install of xubuntu and installed git, make, g++, etc. and after the compile, it worked when running as sudo. I chmod /dev/ttyUSB0 to 666 (any form of XX6 works) and it worked without sudo privileges. Now I have everything working on both my Pi and Nano =).