spesmilo / spesmilo/electrum

StorageOnDiskUnexpectedlyChanged: expected size 11824817, found 11890273

Open
#8,930 0 comments 0 reactions 0 assignees View on GitHub

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

Traceback (most recent call last):
  File "electrum\gui\qt\main_window.py", line 2508, in closeEvent
  File "electrum\gui\qt\main_window.py", line 2539, in clean_up
  File "electrum\gui\qt\__init__.py", line 485, in close_window
  File "electrum\daemon.py", line 552, in stop_wallet
  File "concurrent\futures\_base.py", line 458, in result
  File "concurrent\futures\_base.py", line 403, in __get_result
  File "electrum\daemon.py", line 561, in _stop_wallet
  File "electrum\wallet.py", line 543, in stop
  File "electrum\wallet.py", line 478, in save_db
  File "electrum\json_db.py", line 48, in wrapper
  File "electrum\json_db.py", line 398, in write
  File "electrum\json_db.py", line 48, in wrapper
  File "electrum\json_db.py", line 409, in _append_pending_changes
  File "electrum\storage.py", line 115, in append
electrum.storage.StorageOnDiskUnexpectedlyChanged: expected size 11824817, found 11890273

StorageOnDiskUnexpectedlyChanged: expected size 11824817, found 11890273

Reporter

This issue was reported by 79 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.5.3 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22621-SP0 imported en_US
4.5.3 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 en_US
4.5.3 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard en_US
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 standard en_CA
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_MX
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_MX
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 de_DE
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 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-8.1-6.3.9600-SP0 standard en_US
4.5.3 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 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.22631-SP0 standard en_GB
4.5.4 3.11.8 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0] Linux-5.15.0-102-generic-x86_64-with-glibc2.38 standard en_US
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.22631-SP0 2fa en_US
4.5.4 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.4.1-x86_64-i386-64bit standard ?
4.5.4 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.4.1-x86_64-i386-64bit standard ?
4.5.4 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.4.1-x86_64-i386-64bit imported ?
4.5.3 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.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 tr_TR
4.5.4 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.5-x86_64-i386-64bit standard ?
4.5.4 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.4.1-x86_64-i386-64bit standard ?
4.5.4 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.4.1-x86_64-i386-64bit standard ?
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 imported,standard es_MX
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 imported,standard es_MX
4.5.5 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-10.15.7-x86_64-i386-64bit standard ?
4.5.5 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] Linux-5.15.0-113-generic-x86_64-with-glibc2.35 standard de_DE
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 es_MX
4.5.3 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.8.10 (default, Jul 29 2024, 17:02:10) [GCC 9.4.0] Linux-5.15.0-117-generic-x86_64-with-glibc2.29 imported,standard fr_FR
4.5.5 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.1.0-23-amd64-x86_64-with-glibc2.36 imported en_US
4.5.5 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.1.0-23-amd64-x86_64-with-glibc2.36 imported en_US
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.22631-SP0 imported en_CA
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 en_US
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.19044-SP0 imported en_CA
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.19044-SP0 standard en_US
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.18363-SP0 imported en_US
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 standard pl_PL
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.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.22631-SP0 standard en_US
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.22631-SP0 standard,imported uk_UA
4.5.8 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.7.1-x86_64-i386-64bit standard ?
4.5.5 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-12.7.6-x86_64-i386-64bit 2fa,imported ?
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.26100-SP0 standard sv_SE
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.26100-SP0 standard sv_SE
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 imported en_CH
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 imported en_CH
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 standard,imported en_US
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 imported en_CH
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 imported en_CH
4.5.8 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.12.13-amd64-x86_64-with-glibc2.40 standard en_US
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 imported en_CH
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 imported,standard es_ES
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 standard fr_FR
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 imported en_CH
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_ID
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 standard,imported en_US
4.5.8 3.10.10 (main, Mar 5 2023, 22:26:53) [GCC 12.2.1 20230201] Linux-6.2.13-arch1-1-x86_64-with-glibc2.40 standard en_US
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.22631-SP0 imported en_US
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.22631-SP0 imported en_US
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.22631-SP0 imported,standard pt_BR
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.27823-SP0 imported en_US
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.27823-SP0 imported en_US
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.27823-SP0 imported en_US
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_US
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.18362-SP0 2fa,standard,2of3 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.22631-SP0 standard ru_RU
4.5.8 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.12.10-76061203-generic-x86_64-with-glibc2.35 standard pt_BR
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_US
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
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 standard en_US
4.5.5 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 standard en_US
4.5.8 3.13.5 (main, Jun 12 2025, 00:00:00) [GCC 14.3.1 20250523 (Red Hat 14.3.1-1)] Linux-6.15.6-1.qubes.fc37.x86_64-x86_64-with-glibc2.40 standard C
4.5.8 3.13.5 (main, Jun 12 2025, 00:00:00) [GCC 14.3.1 20250523 (Red Hat 14.3.1-1)] Linux-6.15.6-1.qubes.fc37.x86_64-x86_64-with-glibc2.40 standard C
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 cs_CZ
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 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 en_US
4.5.8 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-12.7.6-x86_64-i386-64bit standard ?
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_AU
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.26200-SP0 standard en_US
4.5.8 3.12.3 (main, Jan 8 2026, 11:30:50) [GCC 13.3.0] Linux-6.8.0-90-generic-x86_64-with-glibc2.39 standard es_ES

Additional Information

The bug is, where did all of my bitcoin go?


I simply went to close/exit Eelectrum, the same way I always do by clicking the "X" icon/symbol in the top right of the screen.


aceback
Traceback (most recent call last):
File "electrum\gui\qt\main_window.py", line 2508, in closeEvent
File "electrum\gui\qt\main_window.py", line 2539, in clean_up
File "electrum\gui\qt_init_.py", line 485, in close_window
File "electrum\daemon.py", line 552, in stop_wallet
File "concurrent\futures_base.py", line 451, in result
File "concurrent\futures_base.py", line 403, in __get_result
File "electrum\daemon.py", line 561, in _stop_wallet
File "electrum\wallet.py", line 544, in stop
File "electrum\wallet.py", line 479, in save_db
File "electrum\json_db.py", line 48, in wrapper
File "electrum\json_db.py", line 398, in write
File "electrum\json_db.py", line 48, in wrapper
File "electrum\json_db.py", line 409, in _append_pending_changes
File "electrum\storage.py", line 115, in append
electrum.storage.StorageOnDiskUnexpectedlyChanged: expected size 172925439, found 172925440

Additional information
Electrum version: 4.5.4
Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)]
Operating system: Windows-10-10.0.19045-SP0
Wallet type: imported,standard
Locale: es_MX


Attempting to broadcast Coldcard signed .txn


after updating from 4.0.9 to 4.5.8 and switching to dark mode, the first time exiting the app caused the exception


pls help meget mu funds back, i have access to the 2fa wallet but i lost both seed and authenticator. if there is a way to recover my funs contact me at: francescogelmi24@gmail.com


no puedo abrir mi wallet con dirección 1Dk2EvmoYanKYEsmzLRrApsrfskhRe3S7L



psbtÿ q Í(iøŒc£‰ƒ…?G
ŠqÁ_Ê$3ž<‰W6æ-ÏÍ{ ýÿÿÿ[§l
 ¬3w„Ä«§?'îh@Y4[}Ój Á=  P2ÖcKkig'þ¥ ²·®g %•¾š
—
ˆG  ¬3w„Ä«§?'îh@Y4[}Ój ý“ Ú_øF´,õáCRÖ:«ÁTªnã7 uaÙi_1<ð ÿÿÿÿ³ºê䦰L H#ÏÊ6$
Ÿ·•ªûþ
¸òÞÒ ÿÿÿÿ—
ˆG  ¬3w„Ä«§?'îh@Y4[}ÓjÖ ©´(×1ǧ:–D üGÔ<yÁE‡A#ýŒ  lzyn¸³ (mO·/5uƒ¬ÆH0E! Îê±îSþ4ö.C [¤H!(ù½ÕêG”ïäw燼 e<ÞÕb=BÍøU”ƒß.juƒMÂ-ì|/ ›n¶|ÝçëÝ!¶Ø€2Q-ãûT5ù¸Â˜OÕãŒ÷
²LÇÄÀ0YÿG0D
ÅLÒe
q|FÊ÷1Ð
^%””þ)Ì¡äÖ€ g Nî|
’ÁÛwE¯·Å³Šr\«'«†
Ê
š×¾!¶Ø€2Q-ãûT5ù¸Â˜OÕãŒ÷
²LÇÄÀ0Yÿ


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

Start with electrum/storage.py at append, then trace the callers in electrum/json_db.py, electrum/wallet.py, and electrum/daemon.py shown in the traceback. Reproduce or inspect the save-and-close path to determine why the on-disk size differs, and define done as preventing this reported crash with coverage for the failing path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
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.