spesmilo / spesmilo/electrum

UnknownDeviceError: ('0x5515', 'Error in command', '')

Open
#9,724 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

hw-ledger
Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

Traceback (most recent call last):
  File "electrum\gui\qt\wizard\wizard.py", line 211, in on_next_button_clicked
  File "electrum\gui\qt\wizard\wallet.py", line 1262, in apply
  File "electrum\plugin.py", line 406, in wrapper
  File "electrum\plugin.py", line 399, in run_in_hwd_thread
  File "concurrent\futures\_base.py", line 458, in result
  File "concurrent\futures\_base.py", line 403, in __get_result
  File "concurrent\futures\thread.py", line 58, in run
  File "electrum\plugins\hw_wallet\plugin.py", line 260, in get_password_for_storage_encryption
    xpub = self.get_xpub(derivation, "standard")
  File "electrum\plugin.py", line 406, in wrapper
  File "electrum\plugin.py", line 396, in run_in_hwd_thread
  File "electrum\plugins\ledger\ledger.py", line 135, in catch_exception
    return func(self, *args, **kwargs)
  File "electrum\plugins\ledger\ledger.py", line 954, in get_xpub
    xpub = self.client.get_extended_pubkey(bip32_path)
  File "ledger_bitcoin\client.py", line 88, in get_extended_pubkey
ledger_bitcoin.exception.errors.UnknownDeviceError: ('0x5515', 'Error in command', '')

UnknownDeviceError: ('0x5515', 'Error in command', '')

Reporter

This issue was reported by 3 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.5.8 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.26100-SP0 en_SE
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 Engli
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19044-SP0 Spani

Additional Information

The reporting user(s) did not provide additional information.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the traceback entry points in electrum/gui/qt/wizard/wallet.py, electrum/plugins/hw_wallet/plugin.py, and electrum/plugins/ledger/ledger.py, then inspect ledger_bitcoin/client.py around get_extended_pubkey. Reproduce or trace the 0x5515 UnknownDeviceError during wallet setup; done means identifying the cause and preventing the wizard from crashing, with a regression check if an appropriate test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.