spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.43k stars 3.09k forks source link

wizard.is_last_view: AssertionError for empty view #8815

Open TARS-bot opened 9 months ago

TARS-bot commented 9 months ago

Crash Report

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

Traceback

Traceback (most recent call last):
  File "electrum\gui\qt\__init__.py", line 439, in _start_wizard_to_select_or_create_wallet
  File "electrum\daemon.py", line 481, in func_wrapper
  File "electrum\daemon.py", line 491, in load_wallet
  File "electrum\util.py", line 481, in do_profile
  File "electrum\daemon.py", line 516, in _load_wallet
electrum.wallet_db.WalletUnfinished: <electrum.wallet_db.WalletDB object at 0x0550AE68>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "electrum\gui\qt\wizard\wizard.py", line 201, in on_next_button_clicked
  File "electrum\gui\qt\wizard\wizard.py", line 229, in is_last
  File "electrum\wizard.py", line 129, in is_last_view
AssertionError

AssertionError: 

Reporter

This issue was reported by 42 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.5.0 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 en_US ℹ
4.5.0 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.2.1-x86_64-i386-64bit ? ℹ
4.5.0 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.2.1-x86_64-i386-64bit ? ℹ
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.22631-SP0 en_ID ℹ
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_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 de_DE ℹ
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 en_GB ℹ
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 en_GB ℹ
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 en_GB ℹ
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.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 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.17763-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 ru_RU ℹ
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 en_ID ℹ
4.5.3 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.3.1-x86_64-i386-64bit ? ℹ
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 de_CH ℹ
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 fr_CA ℹ
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.3.1-x86_64-i386-64bit ? ℹ
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 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 imported 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 es_ES ℹ
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_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.22621-SP0 zh_CN ℹ
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 fr_BE ℹ
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 2fa it_IT ℹ
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 2fa it_IT ℹ
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 fr_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 fr_MA ℹ
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 en_ID ℹ
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-10.15.7-x86_64-i386-64bit ? ℹ
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-11.7.10-x86_64-i386-64bit ? ℹ
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.26052-SP0 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 standard 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 ? ℹ
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 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 en_GB ℹ
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 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 it_IT ℹ
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 it_IT ℹ
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 es_CO ℹ
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.19041-SP0 standard zh_CN ℹ

Additional Information

please i don't know


keine ist in ordung lässt sich nicht abschliesen ?


*


Buongiorno Sto cercando di recuperare le monete ma il sistema si è bloccato


ho la seed ma mi dice che c'è la password a 2 fattori ma io confermo che non è mai stata attivata, non mi permete di trasferire i soldi Ho fatto il ripristino come da indicazioni ma alla fine non riesco più entrare nel mio wallet con la moneta


HEY


this crash occurs when trying to open a wallet which was created with 2fa in offline mode. When then opening the wallet and entering the 2fa code, it crashes consistently. Very easy to reproduce:

  • Create 2fa wallet
  • don't go online (uncheck checkmark)
  • open the wallet again
  • enter the 2fa code --> crash

not sure


trying create 2fa wallet


accumulator commented 9 months ago

8809 related?

accumulator commented 8 months ago

reopen if not fixed in 4.5.3 by #8870

TARS-bot commented 8 months ago

Good evening @accumulator,

I just received another crash report related to this issue. The crash occured on Electrum 4.5.3. I'm not sure which versions of Electrum include the fix but this is the first report from anything newer than 4.5.2 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\gui\qt\__init__.py", line 441, in _start_wizard_to_select_or_create_wallet
  File "electrum\daemon.py", line 487, in func_wrapper
  File "electrum\daemon.py", line 497, in load_wallet
  File "electrum\util.py", line 482, in do_profile
  File "electrum\daemon.py", line 522, in _load_wallet
electrum.wallet_db.WalletUnfinished

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "electrum\gui\qt\wizard\wizard.py", line 209, in on_next_button_clicked
  File "electrum\gui\qt\wizard\wizard.py", line 237, in is_last
  File "electrum\wizard.py", line 129, in is_last_view
AssertionError

AssertionError: 

~ With robotic wishes

TARS-bot commented 7 months ago

Good evening @accumulator,

I just received another crash report related to this issue. The crash occured on Electrum 4.5.4. I'm not sure which versions of Electrum include the fix but this is the first report from anything newer than 4.5.3 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\gui\qt\__init__.py", line 441, in _start_wizard_to_select_or_create_wallet
  File "electrum\daemon.py", line 487, in func_wrapper
  File "electrum\daemon.py", line 497, in load_wallet
  File "electrum\util.py", line 482, in do_profile
  File "electrum\daemon.py", line 522, in _load_wallet
electrum.wallet_db.WalletUnfinished

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "electrum\gui\qt\wizard\wizard.py", line 210, in on_next_button_clicked
  File "electrum\gui\qt\wizard\wizard.py", line 238, in is_last
  File "electrum\wizard.py", line 129, in is_last_view
AssertionError: view not defined: {'wallet_name': 'elvis', 'wallet_exists': True, 'wallet_is_open': False, 'password': '<redacted>', 'wallet_needs_hw_unlock': False, 'xprv1': '<redacted>', 'xpub1': '<redacted>', 'xpub2': '<redacted>'}

AssertionError: view not defined: {'wallet_name': 'elvis', 'wallet_exists': True, 'wallet_is_open': False, 'password': '<redacted>', 'wallet_needs_hw_unlock': False, 'xprv1': '<redacted>', 'xpub1': '<redacted>', 'xpub2': '<redacted>'}

~ With robotic wishes

psoetens commented 5 months ago

@accumulator I have been able to reproduce this crash reliably: This crash occurs when trying to open a wallet which was created with 2fa in offline mode. When then opening the wallet and entering the 2fa code, it crashes consistently. Very easy to reproduce:

Create 2fa wallet, new seed words don't go online (uncheck checkmark) enter a password -> electrum quits itself. open electrum again select the created wallet enter password go through the 2fa setup enter the 2fa code Click on 'Finish' -> crash

This was on Mac (both v10.15 and 13.x same behavior), but I doubt it is Mac specific. Electrum 4.5.4

SomberNight commented 5 months ago

@psoetens Thanks for the steps. I could not reproduce this error, but I got a different one: https://github.com/spesmilo/electrum/issues/9037

I assume you are using the official 4.5.4 binary, and not running from source, right?

psoetens commented 5 months ago

Yes, it is the official binary. Also, I first drag the app to the Applications folder in Finder, I launch from there.

It's surely this thread, since the last crash report comment is from myself, I then elaborated here.

TARS-bot commented 4 weeks ago

Good afternoon @accumulator,

I just received another crash report related to this issue. The crash occured on Electrum 4.5.5. I'm not sure which versions of Electrum include the fix but this is the first report from anything newer than 4.5.4 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\gui\qt\wizard\wizard.py", line 211, in on_next_button_clicked
  File "electrum\gui\qt\wizard\wizard.py", line 239, in is_last
  File "electrum\wizard.py", line 129, in is_last_view
AssertionError: view not defined: {'wallet_name': 'C:\\Users\\Willy\\AppData\\Roaming\\Electrum\\wallets\\wallet_1', 'wallet_exists': True, 'wallet_is_open': False, 'password': '<redacted>', 'wallet_needs_hw_unlock': True, 'hardware_device': ('ledger', DeviceInfo(device=Device(path=b'\\\\?\\HID#VID_2C97&PID_4011&MI_00#8&a880b30&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}', interface_number=0, id_="b'\\\\\\\\?\\\\HID#VID_2C97&PID_4011&MI_00#8&a880b30&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}',0001,0,65440", product_key=(11415, 16401), usage_page=65440, transport_ui_string='hid'), label=' ', initialized=True, exception=None, plugin_name='ledger', soft_device_id='faa5ad3f', model_name='Ledger Nano X'))}

AssertionError: view not defined: {'wallet_name': 'C:\\Users\\Willy\\AppData\\Roaming\\Electrum\\wallets\\wallet_1', 'wallet_exists': True, 'wallet_is_open': False, 'password': '<redacted>', 'wallet_needs_hw_unlock': True, 'hardware_device': ('ledger', DeviceInfo(device=Device(path=b'\\\\?\\HID#VID_2C97&PID_4011&MI_00#8&a880b30&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}', interface_number=0, id_="b'\\\\\\\\?\\\\HID#VID_2C97&PID_4011&MI_00#8&a880b30&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}',0001,0,65440", product_key=(11415, 16401), usage_page=65440, transport_ui_string='hid'), label=' ', initialized=True, exception=None, plugin_name='ledger', soft_device_id='faa5ad3f', model_name='Ledger Nano X'))}

~ With robotic wishes