AssertionError:
Nobody has claimed this yet.
- 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
File "/home/user/.local/lib/python3.7/site-packages/trezorlib/client.py", line 117, in cancel
self._raw_write(messages.Cancel())
File "/home/user/.local/lib/python3.7/site-packages/trezorlib/client.py", line 126, in _raw_write
self.transport.write(msg)
File "/home/user/.local/lib/python3.7/site-packages/trezorlib/transport/protocol.py", line 117, in write
self.protocol.write(message)
File "/home/user/.local/lib/python3.7/site-packages/trezorlib/transport/protocol.py", line 151, in write
self.handle.write_chunk(chunk)
File "/home/user/.local/lib/python3.7/site-packages/trezorlib/transport/webusb.py", line 65, in write_chunk
assert self.handle is not None
AssertionError:
Reporter
This issue was reported by 10 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 3.3.4 | 3.7.3rc1 (default, Mar 13 2019, 11:01:15) [GCC 8.3.0] | Linux-4.19.0-4-amd64-x86_64-with-debian-buster-sid | standard | en_US | ℹ |
| 4.0.9 | 3.7.9 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] | Linux-5.8.0-43-generic-x86_64-with-debian-bullseye-sid | standard | en_GB | ℹ |
| 4.0.9 | 3.7.9 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] | Linux-5.8.0-43-generic-x86_64-with-debian-bullseye-sid | standard | en_GB | ℹ |
| 4.0.9 | 3.7.9 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] | Linux-5.8.0-43-generic-x86_64-with-debian-bullseye-sid | standard | en_GB | ℹ |
| 4.1.2 | 3.7.10 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] | Linux-5.4.0-74-generic-x86_64-with-debian-bullseye-sid | standard | en_GB | ℹ |
| 4.1.3 | 3.7.10 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] | Linux-5.4.0-74-generic-x86_64-with-debian-bullseye-sid | standard | en_GB | ℹ |
| 4.2.2 | 3.9.11 (v3.9.11:2de452f8bf, Mar 16 2022, 10:34:36) [Clang 6.0 (clang-600.0.57)] | macOS-10.16-x86_64-i386-64bit | ? | ℹ | |
| 4.1.5 | 3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08) [Clang 6.0 (clang-600.0.57)] | Darwin-23.6.0-x86_64-i386-64bit | ? | ℹ | |
| 4.4.6 | 3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:23:25) [Clang 6.0 (clang-600.0.57)] | macOS-10.16-x86_64-i386-64bit | standard | ? | ℹ |
| 4.6.0 | 3.12.10 (v3.12.10:0cc81280367, Apr 8 2025, 08:47:00) [Clang 13.0.0 (clang-1300.0.29.30)] | macOS-15.5-x86_64-i386-64bit | standard | ? | ℹ |
Additional Information
Pressed escape while at "Script type and Derivation path" screen for creating new wallet backed by Trezor Model T hardware wallet.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with trezorlib/client.py, transport/protocol.py, and transport/webusb.py at the traceback locations. Reproduce pressing Escape on the Trezor Model T wallet-creation screen and trace the cancel path through the transport. Done means this flow no longer raises the shown AssertionError when cancellation occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100