RuntimeError: dictionary keys changed during iteration
Open
Nobody has claimed this yet.
bug 🐞
- 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\gui\qt\__init__.py", line 245, in wrapper
File "electrum\gui\qt\__init__.py", line 269, in start_new_window
File "electrum\gui\qt\__init__.py", line 325, in _start_wizard_to_select_or_create_wallet
File "electrum\wallet.py", line 3183, in __new__
File "electrum\wallet.py", line 2633, in __init__
File "electrum\wallet.py", line 308, in __init__
File "electrum\contacts.py", line 45, in __init__
RuntimeError: dictionary keys changed during iteration
Reporter
This issue was reported by 8 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 4.1.1 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | ru_RU | ℹ |
| 4.1.2 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.18362-SP0 | imported,standard | ru_UA | ℹ |
| 4.1.2 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | en_US | ℹ |
| 4.1.4 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | ru_RU | ℹ |
| 4.1.4 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | ru_RU | ℹ |
| 4.1.5 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | en_GB | ℹ | |
| 4.1.5 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | en_US | ℹ | |
| 4.1.5 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | en_US | ℹ |
Additional Information
error opening wallet with imported keys
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 electrum/contacts.py line 45 and trace the wallet initialization path through electrum/wallet.py lines 308, 2633, and 3183, using the reported Qt startup path as context. Reproduce opening a wallet with imported keys and verify that the RuntimeError no longer 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
- Needs clarification
- Newbie friendliness
- 35/100