Skip to content

Failed to initialize HID API: InitializationError #14491

@b4dg0d

Description

@b4dg0d

Component

Forge, Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.5.1-stable Commit SHA: b0a9dd9 Build Timestamp: 2025-12-22T11:39:01.425730780Z (1766403541) Build Profile: maxperf

What version of Foundryup are you on?

foundryup: 1.1.0

What command(s) is the bug in?

cast wallet list --all

Operating System

Linux

Describe the bug

Run this command: cast wallet list --all

It returns the following output:


hyperliquid_testing (Local)
The application panicked (crashed).
Message:  Failed to initialize HID API: InitializationError
Location: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/coins-ledger-0.12.0/src/transports/native/hid.rs:30

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 8 frames hidden ⋮                               
   9: core::ops::function::FnOnce::call_once::h62a492dcc0ad0798
      at <unknown source file>:<unknown line>
  10: once_cell::imp::OnceCell<T>::initialize::{{closure}}::h4922465f9d01a459
      at <unknown source file>:<unknown line>
  11: once_cell::imp::initialize_or_wait::he5757f2217d2efc4
      at <unknown source file>:<unknown line>
  12: once_cell::imp::OnceCell<T>::initialize::hf05b382003a02cd6
      at <unknown source file>:<unknown line>
  13: <coins_ledger::transports::Ledger as coins_ledger::transports::LedgerAsync>::init::{{closure}}::hd00647cf38506c2b
      at <unknown source file>:<unknown line>
  14: foundry_wallets::utils::create_ledger_signer::{{closure}}::hf7325ed9b7101c81
      at <unknown source file>:<unknown line>
  15: cast::cmd::wallet::list::ListArgs::run::{{closure}}::h91ea6d670de1d577
      at <unknown source file>:<unknown line>
  16: cast::cmd::wallet::WalletSubcommands::run::{{closure}}::h38f5500862baafb7
      at <unknown source file>:<unknown line>
  17: cast::args::run_command::{{closure}}::hbee71fe8d806a796
      at <unknown source file>:<unknown line>
  18: cast::args::run::h7b5f763750b8df58
      at <unknown source file>:<unknown line>
  19: cast::main::h2fb97270b32b1ff6
      at <unknown source file>:<unknown line>
  20: std::sys::backtrace::__rust_begin_short_backtrace::h9508d3e755cb2592
      at <unknown source file>:<unknown line>
  21: main<unknown>
      at <unknown source file>:<unknown line>
  22: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>
  23: _start<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
zsh: IOT instruction  cast wallet list --all

I only have one wallet freshly created using command cast wallet import hyperliquid_testing --interactive.

If you need more data, ask me, I will try to respond within 48 hours.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: bugT-needs-triageType: this issue needs to be labelled

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions