emericg / SmartServoFramework

A multi-platform C++ framework used to drive Dynamixel and HerkuleX smart actuators, and its control GUI.
GNU Lesser General Public License v3.0
51 stars 14 forks source link

GUI - segfault during advanced scan #18

Closed joncppl closed 6 years ago

joncppl commented 6 years ago

System: Ubuntu 16.04 LTS GUI built with qmake5

using a usb2ax, connected to various configs of dynamixels (ax12, mx28, xl-320)

Typically it will find them right away if the dynamixels are configured with lower baudrates, but if I do an advanced scan (Quick or Full) to find ones with other baudrates, I get this error message and the GUI crashes

[I][D-API][DynamixelSimpleAPI] - Using Dynamixel communication protocol version 1
[W][SERIAL][convertBaudRateFlag] convertBaudRateFlag(666666) has been set to B38400 (custom speed will be used)
[I][SERIAL][SerialPortLinux] - Device name has been set to: 'ttyACM0'
[I][SERIAL][SerialPortLinux] - Device node has been set to: '/dev/ttyACM0'
[I][SERIAL][SerialPortLinux] - Device baud rate has been set to: '666666'
Segmentation fault (core dumped)
emericg commented 6 years ago

Hi, I pushed a fix on master that might be related to your bug, can you give it a try? Thanks!

joncppl commented 6 years ago

Doesn't appear to crash with the new code. Thanks!