cvuchener / hidpp

Collection of HID++ tools
GNU General Public License v3.0
90 stars 23 forks source link

hidpp-list-features crashes with g700s #2

Closed 11111010000 closed 7 years ago

11111010000 commented 7 years ago

hidpp-list-features crashes in line 120 dev.getProtocolVersion (major, minor); with message

terminate called after throwing an instance of 'HIDRaw::TimeoutError'
  what():  std::exception

Breakpoint 2, __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.

(two bottom lines are from gdb)

cvuchener commented 7 years ago

Can you give the output with -vreport option, please?

11111010000 commented 7 years ago

it just adds [Debug Report] Send HID report: 10 ff 00 11 00 00 00

11111010000 commented 7 years ago

missclick

cvuchener commented 7 years ago

Try using the device index 0: -d0 option.

What is the output of hidpp-list-devices?

11111010000 commented 7 years ago

hidpp-list-devices gives: /dev/hidraw3 (device 0): Logitech G700s Rechargeable Gaming Mouse (046d:c07c) HID++ 1.0 and keeps running without producing further output (i.e. I have to terminate it via Ctrl+c)

Adding -d0 solves problem.

cvuchener commented 7 years ago

Your mouse is not responding with a "unknown device" error when using an invalid device index, and you get the less explicit "TimeoutError" instead.

I don't think I will fix that: it is more a bug from the mouse than my program, but I should fix list-devices blocking on wireless devices indexes.

cvuchener commented 7 years ago

https://github.com/cvuchener/hidpp/commit/97fde1e6982ea68c10314c10dce7b4e091e71b85 should fix hidpp-list-devices blocking.

11111010000 commented 7 years ago

Yup. No blocking