electrum icon indicating copy to clipboard operation
electrum copied to clipboard

DatabaseError: database disk image is malformed

Open TARS-bot opened this issue 2 years ago • 2 comments

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

Traceback (most recent call last):
  File "electrum/util.py", line 1159, in run_with_except_hook
  File "threading.py", line 910, in run
  File "electrum/sql_db.py", line 67, in run_sql
sqlite3.DatabaseError: database disk image is malformed

DatabaseError: database disk image is malformed

Reporter

This issue was reported by 14 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.3.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 standard ?
4.3.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 standard ?
4.3.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 standard ?
4.3.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 standard ?
4.3.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 standard ?
4.3.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 standard ?
4.3.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 standard ?
4.4.5 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.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.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 ?
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.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.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.5.2 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.1-x86_64-i386-64bit standard ?

Additional Information

016


Trying to pay with lightning


TARS-bot avatar Nov 28 '22 16:11 TARS-bot

Interesting that all reports are from macOS. This looks to me to be a bug of sqlite (or cpython) on macOS. Electrum 4.5.0 now uses python 3.10 for the mac binaries -- I will close this and reopen if there are new reports from new versions.

SomberNight avatar Jan 17 '24 21:01 SomberNight

Good evening @SomberNight,

I just received another crash report related to this issue. The crash occured on Electrum 4.5.2. I'm not sure which versions of Electrum include the fix but this is the first report from anything newer than 4.4.6 since you closed the issue.

Could you please check if this issue really is resolved? Here is the traceback that I just collected:

Traceback (most recent call last):
  File "electrum/util.py", line 1068, in run_with_except_hook
  File "threading.py", line 953, in run
  File "electrum/sql_db.py", line 67, in run_sql
sqlite3.DatabaseError: database disk image is malformed

DatabaseError: database disk image is malformed

~ With robotic wishes

TARS-bot avatar Feb 14 '24 21:02 TARS-bot