Skip to content

Examples piano and input panic at runtime #42

Open
@dsgallups

Description

@dsgallups

Running examples/piano:

     Running `target/debug/examples/piano`
2024-12-05 21:40:37.755 piano[73303:2168281] +[IMKClient subclass]: chose IMKClient_Modern
2024-12-05 21:40:37.755 piano[73303:2168281] +[IMKInputSession subclass]: chose IMKInputSession_Modern
thread '<unnamed>' panicked at src/input.rs:246:55:
index out of bounds: the len is 1 but the index is 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort      cargo run --example piano

Connecting to digital keyboard (port 0) running examples/input:

     Running `target/debug/examples/input`
2024-12-05 21:38:42.904 input[72286:2158221] +[IMKClient subclass]: chose IMKClient_Modern
2024-12-05 21:38:42.904 input[72286:2158221] +[IMKInputSession subclass]: chose IMKInputSession_Modern
thread '<unnamed>' panicked at src/input.rs:246:55:
index out of bounds: the len is 1 but the index is 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: abort      cargo run --example input

System Info

Darwin Mac 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031 arm64

Default host: aarch64-apple-darwin
rustup home:  /Users/danielgallups/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin
1.79-aarch64-apple-darwin

installed targets for active toolchain
--------------------------------------

aarch64-apple-darwin
wasm32-unknown-unknown

active toolchain
----------------

stable-aarch64-apple-darwin (default)
rustc 1.83.0 (90b35a623 2024-11-26)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions