O
OpenDeck6d ago
Nero

Error trying to move to a profile

[2025-11-30][20:02:28][tao::platform_impl::platform::event_loop::runner][WARN] NewEvents emitted without explicit RedrawEventsCleared
[2025-11-30][20:02:28][tao::platform_impl::platform::event_loop::runner][WARN] RedrawEventsCleared emitted without explicit MainEventsCleared
[2025-11-30][20:02:30][panic][ERROR] thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 1 but the index is 1': src\events\outbound\states.rs:40
[2025-11-30][20:02:28][tao::platform_impl::platform::event_loop::runner][WARN] NewEvents emitted without explicit RedrawEventsCleared
[2025-11-30][20:02:28][tao::platform_impl::platform::event_loop::runner][WARN] RedrawEventsCleared emitted without explicit MainEventsCleared
[2025-11-30][20:02:30][panic][ERROR] thread 'tokio-runtime-worker' panicked at 'index out of bounds: the len is 1 but the index is 1': src\events\outbound\states.rs:40
The software doesn't change to the selected profile.
7 Replies
Nero
NeroOP5d ago
btw i cloned the repo but didn't saw any fix i fixed it by doing
let instance = instance.clone();
if state as usize >= instance.states.len() {
return Err(anyhow::anyhow!("State index out of bounds: {} >= {}", state, instance.states.len()));
}
let instance = instance.clone();
if state as usize >= instance.states.len() {
return Err(anyhow::anyhow!("State index out of bounds: {} >= {}", state, instance.states.len()));
}
in line 39 of states.rs
nekename
nekename5d ago
yeah, you won't see any fix until the problematic action is removed from the profile the fix stops problematic actions being added
Nero
NeroOP5d ago
i mean, the problem was that it was working and post-restart that profile wasn't, so maybe it would be good to throw an error instead of panicking?
nekename
nekename4d ago
there won't be a panic, it's been fixed unless you set that property manually in the config to make it panic
Nero
NeroOP3d ago
yeah, no, 2.7.1 still has the same bug maybe it fixed putting new elements that causes the bug, but the panic itself hasn't been addressed
nekename
nekename3d ago
yes, as I said:
yeah, you won't see any fix until the problematic action is removed from the profile the fix stops problematic actions being added

Did you find this page helpful?