-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidOperation: [<class 'decimal.InvalidOperation'>] #5223
Comments
I can reproduce on current master. In Qt GUI, in The main issue is that this actually corrupts the wallet file; it cannot be opened again. Not sure if this was the case in old code too, but I think at least since 4.0, the corruption happens. A user reported the corruption on reddit, though without reproduction steps but I am fairly certain this is the cause. example trace on master when opening wallet
|
Just for sanity... e.g. when importing electrum as a python library, the calling code could have changed the precision. related: #5223
Good morning @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.1.4. Could you please check if this issue really is resolved? Here is the traceback that I just collected: File "electrum\gui\qt\channels_list.py", line 365, in new_channel_with_warning
File "electrum\gui\qt\channels_list.py", line 483, in new_channel_dialog
File "electrum\gui\qt\main_window.py", line 1851, in open_channel
File "electrum\gui\qt\confirm_tx_dialog.py", line 178, in __init__
File "electrum\gui\qt\confirm_tx_dialog.py", line 231, in update
File "electrum\gui\qt\confirm_tx_dialog.py", line 226, in _update_amount_label
File "electrum\gui\qt\main_window.py", line 890, in format_amount_and_units
File "electrum\simple_config.py", line 668, in format_amount_and_units
File "electrum\simple_config.py", line 659, in format_amount
File "electrum\util.py", line 663, in format_satoshis
InvalidOperation: [<class 'decimal.InvalidOperation'>] ~ With robotic wishes |
Good evening @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.1.5. 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\channels_list.py", line 365, in new_channel_with_warning
File "electrum\gui\qt\channels_list.py", line 483, in new_channel_dialog
File "electrum\gui\qt\main_window.py", line 1849, in open_channel
File "electrum\gui\qt\confirm_tx_dialog.py", line 178, in __init__
File "electrum\gui\qt\confirm_tx_dialog.py", line 231, in update
File "electrum\gui\qt\confirm_tx_dialog.py", line 226, in _update_amount_label
File "electrum\gui\qt\main_window.py", line 891, in format_amount_and_units
File "electrum\simple_config.py", line 671, in format_amount_and_units
File "electrum\simple_config.py", line 662, in format_amount
File "electrum\util.py", line 671, in format_satoshis
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]
InvalidOperation: [<class 'decimal.InvalidOperation'>] ~ With robotic wishes |
Good evening @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.2.1. 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\channels_list.py", line 365, in new_channel_with_warning
File "electrum\gui\qt\channels_list.py", line 483, in new_channel_dialog
File "electrum\gui\qt\main_window.py", line 1871, in open_channel
File "electrum\gui\qt\confirm_tx_dialog.py", line 186, in __init__
File "electrum\gui\qt\confirm_tx_dialog.py", line 239, in update
File "electrum\gui\qt\confirm_tx_dialog.py", line 234, in _update_amount_label
File "electrum\gui\qt\main_window.py", line 902, in format_amount_and_units
File "electrum\simple_config.py", line 683, in format_amount_and_units
File "electrum\simple_config.py", line 672, in format_amount
File "electrum\util.py", line 692, in format_satoshis
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]
InvalidOperation: [<class 'decimal.InvalidOperation'>] ~ With robotic wishes |
Good afternoon @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.3.2. 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\channels_list.py", line 376, in new_channel_with_warning
File "electrum\gui\qt\channels_list.py", line 400, in new_channel_dialog
File "electrum\gui\qt\new_channel_dialog.py", line 154, in run
File "electrum\gui\qt\main_window.py", line 1263, in open_channel
File "electrum\gui\qt\confirm_tx_dialog.py", line 187, in __init__
File "electrum\gui\qt\confirm_tx_dialog.py", line 242, in update
File "electrum\gui\qt\confirm_tx_dialog.py", line 237, in _update_amount_label
File "electrum\gui\qt\main_window.py", line 884, in format_amount_and_units
File "electrum\simple_config.py", line 692, in format_amount_and_units
File "electrum\simple_config.py", line 681, in format_amount
File "electrum\util.py", line 719, in format_satoshis
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]
InvalidOperation: [<class 'decimal.InvalidOperation'>] ~ With robotic wishes |
Crash Report
This crash report was reported through the automatic crash reporting system 🤖
Traceback
Reporter
This issue was reported by 138 user(s):
Additional Information
The text was updated successfully, but these errors were encountered: