bluetui
bluetui copied to clipboard
index out of bounds
thread 'main' panicked at /build/qmlvz394sva1rawai3r4xfjww5d0jpni-source/src/handler.rs:684:74:
index out of bounds: the len is 9 but the index is 10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This error occurred when I did the following:
- Scan for devices. Let the list populate with several devices.
- Stop scanning.
- Wait for some devices to ~~fall off~~ depopulate from the list of scanned devices. (Not sure if this is expected behaviour.)
- Attempt to connect to one of the devices that still remain (mine happened to be toward the end of the list)
What do you mean Wait for some devices to fall off
Can you explain the whole process more in details ?
@pythops edited the text. Happy to provide more detail as directed. It's my hunch that either devices are not intended to depopulate when scanning is stopped and/or this event is not being caught with indexing logic.
I could reproduce it. Thanks for reporting it. I will look at it :eyes:
To fix this one will require some refactoring and restructuring of the app, which I will do for sure. I will release a new version now cause some users are waiting for some changes and then I will focus on this interesting bug.