buttplug icon indicating copy to clipboard operation
buttplug copied to clipboard

Sentry getting repeated reports of "the len is 1 but the index is 1"

Open qdot opened this issue 1 year ago • 1 comments

We're getting absolutely spammed on sentry with the error message "the len is 1 but the index is 1"

From a user on discord, the top of the crash stack is:

"thread 'intiface-thread-5' panicked at 'index out of bounds: the len is 1 but the index is 1': C/Users/qdot/.cargo/registry/src/index.crates.io-6f17d22bba15001f/buttplug-8.0.0/src/server/device/server_device.rs:467"

This relates to https://github.com/intiface/intiface-central/issues/139

qdot avatar Sep 01 '24 00:09 qdot

Line in question. This has to do with converting message attributes to features, a system that was rewritten in the upcoming Buttplug 8.0.1 where we never deal with message attributes within the server code anymore, so hopefully it's fixed there. We'll see, I suppose.

https://github.com/buttplugio/buttplug/blob/master/buttplug/src/server/device/server_device.rs#L467

qdot avatar Sep 01 '24 00:09 qdot

This is probably #668 but that has more details and a fix, so dup'ing this one.

qdot avatar Nov 16 '24 22:11 qdot