Skip to content

Bitkit crash on reset wallet after migration [(tokio-runtime-worker) hit a Rust panic! from an unwrap() failure] #369

@piotr-iohk

Description

@piotr-iohk

Steps to reproduce:

  • I had wallet in RN app with some balance and regular channel, some trasnactions were tagged.
  • migrated the wallet successfuly (although tags not fully migrated Tags not fully migrated #370)
  • Went to reset the wallet (Settings > Backup or Restore > Reset wallet)

Actual
Wallet crashed.

crash-report.txt

bitkit_logs_2026-01-19_07-53-08.zip

What happened (root cause)

The app terminated with SIGABRT because Thread 26 (tokio-runtime-worker) hit a Rust panic! from an unwrap() failure, and your build is effectively panic=abort (or otherwise aborting on panic), so the whole app dies.

Key frames:
	•	core::result::unwrap_failed
	•	ldk_node::logger::Writer as LogWriter::log
	•	triggered while syncing:
	•	lightning_transaction_sync::electrum::ElectrumSyncClient::get_confirmed_tx
	•	...get_confirmed_transactions
	•	...sync

Even better: the error string is visible in the crashed thread registers (x12..x15). Decoded, it’s:

e: "No such file or directory" }

So: your logger tried to write/open something on disk, got ENOENT, and then unwrap() panicked.

Expected
Wallet should reset

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions