MemoryError:
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\gui\qt\transaction_dialog.py", line 246, in do_broadcast
File "electrum\gui\qt\main_window.py", line 1624, in save_pending_invoice
File "electrum\wallet.py", line 790, in save_invoice
File "electrum\wallet.py", line 315, in save_db
File "electrum\wallet_db.py", line 1344, in write
File "electrum\util.py", line 412, in <lambda>
File "electrum\util.py", line 408, in do_profile
File "electrum\wallet_db.py", line 1354, in _write
File "electrum\storage.py", line 82, in write
File "electrum\storage.py", line 182, in encrypt_before_writing
File "electrum\ecc.py", line 326, in encrypt_message
File "electrum\crypto.py", line 118, in aes_encrypt_with_iv
File "cryptography\hazmat\primitives\ciphers\base.py", line 138, in update
File "cryptography\hazmat\backends\openssl\ciphers.py", line 124, in update
MemoryError:
Reporter
This issue was reported by 42 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 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 | fr_FR | ℹ |
| 4.1.0 | 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 | fr_FR | ℹ |
| 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 | imported | 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 | imported | en_US | ℹ |
| 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 | 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-8.1-6.3.9600-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 | imported | vi_VN | ℹ |
| 4.1.5 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-8.1-6.3.9600-SP0 | standard | ru_RU | ℹ |
| 4.2.0 | 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:01:48) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19043-SP0 | standard | de_CH | ℹ |
| 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.22000-SP0 | standard,imported | en_US | ℹ |
| 4.2.1 | 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19044-SP0 | imported | en_ID | ℹ |
| 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.22000-SP0 | imported | en_US | ℹ |
| 4.3.2 | 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.17763-SP0 | standard | 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 | standard | en_US | ℹ |
| 4.3.3 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_US | ℹ |
| 4.3.2 | 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard,imported | en_US | ℹ |
| 4.3.4 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19044-SP0 | standard | en_US | ℹ |
| 4.3.4 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | 2fa | ru_RU | ℹ |
| 4.4.3 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard | ru_RU | ℹ |
| 4.4.3 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19044-SP0 | standard | en_GB | ℹ |
| 4.4.3 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard | ru_RU | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard | ru_RU | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19044-SP0 | 2fa | ru_RU | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19044-SP0 | 2fa | ru_RU | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19044-SP0 | 2fa | ru_RU | ℹ |
| 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.19045-SP0 | imported | pt_BR | ℹ |
| 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.19045-SP0 | imported | pt_BR | ℹ |
| 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.19045-SP0 | standard | ru_RU | ℹ |
| 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.19045-SP0 | imported | en_US | ℹ |
| 4.4.3 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.17134-SP0 | imported,standard | ru_RU | ℹ |
| 4.5.2 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | ru_RU | ℹ | |
| 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.19045-SP0 | standard | ru_RU | ℹ |
| 4.5.4 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard | es_VE | ℹ |
| 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.19045-SP0 | standard | ru_RU | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22631-SP0 | standard,imported | en_US | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19043-SP0 | standard | ru_RU | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard,imported | en_US | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22631-SP0 | standard | en_US | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22631-SP0 | standard | en_US | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22000-SP0 | standard | ru_RU | ℹ |
| 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.19045-SP0 | imported | 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 | en_US | ℹ |
Additional Information
ok
It crushes when I push send button
Traceback
Traceback (most recent call last):
File "electrum\gui\qt\send_tab.py", line 578, in do_pay_or_get_invoice
File "electrum\gui\qt\send_tab.py", line 601, in do_pay_invoice
File "electrum\gui\qt\send_tab.py", line 275, in pay_onchain_dialog
File "electrum\gui\qt\send_tab.py", line 531, in save_pending_invoice
File "electrum\wallet.py", line 1105, in save_invoice
File "electrum\wallet.py", line 397, in save_db
File "electrum\wallet_db.py", line 1625, in write
File "electrum\util.py", line 469, in do_profile
File "electrum\wallet_db.py", line 1635, in _write
File "electrum\storage.py", line 83, in write
File "electrum\storage.py", line 186, in encrypt_before_writing
File "electrum\ecc.py", line 354, in encrypt_message
File "electrum\crypto.py", line 144, in aes_encrypt_with_iv
File "cryptography\hazmat\primitives\ciphers\base.py", line 176, in update
File "cryptography\hazmat\backends\openssl\ciphers.py", line 147, in update
MemoryErrorAdditional information
Electrum version: 4.4.5
Python version: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)]
Operating system: Windows-10-10.0.19044-SP0
Wallet type: 2fa
Locale: ru_RU
I requested new BTC addy and it gave it to me, then i requested another and it gave me error that there is not enough space or something like that
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/gui/qt/transaction_dialog.py and the save path through wallet.py, wallet_db.py, storage.py, and crypto.py. Trace the encryption call where the MemoryError occurs and compare the reported send and address-generation paths. Done means sending or saving affected wallets no longer crashes with MemoryError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cryptography, python
- Domain
- database, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100