OSError: [Errno 22] Invalid argument
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 "electrum\util.py", line 882, in run_with_except_hook
File "electrum\network.py", line 1085, in run
File "electrum\network.py", line 1067, in wait_on_sockets
File "electrum\network.py", line 719, in process_responses
File "electrum\network.py", line 624, in process_response
File "electrum\network.py", line 1112, in on_notify_header
File "electrum\blockchain.py", line 96, in check_header
File "electrum\blockchain.py", line 149, in check_header
File "electrum\blockchain.py", line 316, in get_hash
File "electrum\blockchain.py", line 298, in read_header
OSError: [Errno 22] Invalid argument
Reporter
This issue was reported by 7 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 3.2.3 | 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] | Windows-10-10.0.17134 | standard | ru_UA | ℹ |
| 3.2.3 | 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] | Darwin-16.7.0-x86_64-i386-64bit | 2fa | ? | ℹ |
| 4.0.9 | 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | fr_FR | ℹ |
| 4.0.9 | 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | fr_FR | ℹ |
| 4.4.6 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22621-SP0 | standard | en_GB | ℹ |
| 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 | standard | de_DE | ℹ |
| 4.6.2 | 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] | Windows-11-10.0.26100-SP0 | imported | Engli | ℹ |
Additional Information
The reporting user(s) did not provide additional information.
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 by tracing the reported path through electrum/network.py, especially process_response and on_notify_header, into electrum/blockchain.py at check_header, get_hash, and read_header. Reproduce the OSError across the reported Windows environments and determine the relevant file-reading condition; done means the crash no longer occurs and the affected behavior is covered by an appropriate regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- blockchain, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100