Skip to content
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

Closed
TARS-bot opened this issue Mar 27, 2019 · 5 comments · Fixed by #7041
Closed

InvalidOperation: [<class 'decimal.InvalidOperation'>] #5223

TARS-bot opened this issue Mar 27, 2019 · 5 comments · Fixed by #7041
Assignees
Labels
bug 🐞 topic-invoice-payreq invoices and payment requests
Milestone

Comments

@TARS-bot
Copy link

TARS-bot commented Mar 27, 2019

Crash Report

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

Traceback

  File "electrum\gui\qt\main_window.py", line 714, in timer_actions
  File "electrum\gui\qt\main_window.py", line 831, in update_wallet
  File "electrum\gui\qt\main_window.py", line 839, in update_tabs
  File "electrum\gui\qt\request_list.py", line 115, in update
  File "electrum\wallet.py", line 1129, in get_sorted_requests
  File "electrum\wallet.py", line 1129, in <listcomp>
  File "electrum\wallet.py", line 1001, in get_payment_request
  File "electrum\util.py", line 551, in format_satoshis

InvalidOperation: [<class 'decimal.InvalidOperation'>]

Reporter

This issue was reported by 138 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.3.4 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763-SP0 standard zh_CN
3.3.4 3.6.8 (default, Feb 13 2019, 21:28:20) [GCC 4.8.4] Linux-5.0.0-13-generic-x86_64-with-debian-buster-sid 2fa en_US
3.3.8 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] Linux-4.18.0-25-generic-x86_64-with-Ubuntu-18.04-bionic 2fa pt_BR
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard ru_RU
3.3.8 3.6.8 (default, Jun 28 2018, 19:01:02) [GCC 4.8.4] Linux-4.15.0-60-generic-x86_64-with-debian-stretch-sid imported de_DE
3.3.8 3.6.8 (default, Jun 28 2018, 19:01:02) [GCC 4.8.4] Linux-4.15.0-60-generic-x86_64-with-debian-stretch-sid imported de_DE
3.3.8 3.6.8 (default, Jun 28 2018, 19:01:02) [GCC 4.8.4] Linux-4.15.0-60-generic-x86_64-with-debian-stretch-sid imported de_DE
3.3.7 3.7.1 (default, Jul 3 2019, 16:41:59) [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 Android 7.0 on motorola namath (NRD90M.075) imported en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard fa_IR
3.3.8 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0] Linux-4.15.0-66-generic-x86_64-with-Ubuntu-18.04-bionic standard en_US
3.3.8 3.6.8 (default, Jun 28 2018, 19:01:02) [GCC 4.8.4] Linux-4.19.0-6-amd64-x86_64-with-debian-10.1 standard en_US
3.3.8 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Darwin-17.7.0-x86_64-i386-64bit standard ?
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763-SP0 2fa fa_IR
3.3.6 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard ru_RU
3.3.6 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard ru_RU
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard cs_CZ
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard cs_CZ
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard cs_CZ
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard de_DE
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 2fa sv_SE
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763-SP0 standard en_GB
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_CA
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_CA
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_CA
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_CA
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 2fa es_ES
3.3.8 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] Linux-5.4.0-29-generic-x86_64-with-glibc2.29 standard es_VE
3.3.8 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] Linux-5.4.0-29-generic-x86_64-with-glibc2.29 standard es_VE
3.3.8 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] Linux-5.4.0-29-generic-x86_64-with-glibc2.29 standard es_VE
3.3.8 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0] Linux-5.4.0-29-generic-x86_64-with-glibc2.29 standard es_VE
3.3.7 3.7.1 (default, Jul 3 2019, 16:41:59) [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55 Android 9 on motorola surfna (PCBS29.73-109-3) imported en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard en_GB
4.0.1 3.7.7 (default, Jun 23 2020, 16:29:54) [Clang 11.0.0 (clang-1100.0.33.17)] Darwin-19.5.0-x86_64-i386-64bit standard ?
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard ru_UA
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard ru_UA
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 2fa sv_SE
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 2fa sv_SE
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-2012ServerR2-6.3.9600 imported en_US
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-2012ServerR2-6.3.9600 imported en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 2fa pl_PL
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard uk_UA
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard sv_SE
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard sv_SE
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard sv_SE
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard sv_SE
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_GB
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard ru_RU
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard fa_IR
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard fa_IR
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard fa_IR
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard fa_IR
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard sv_SE
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard sv_SE
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard pt_BR
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard sv_SE
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard es_PE
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 2fa en_GB
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard es_AR
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard de_DE
4.0.4 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_US
4.0.4 3.7.9 (default, Sep 11 2020, 17:18:37) [Clang 11.0.0 (clang-1100.0.33.17)] Darwin-17.7.0-x86_64-i386-64bit standard ?
4.0.4 3.7.9 (default, Sep 11 2020, 17:18:37) [Clang 11.0.0 (clang-1100.0.33.17)] Darwin-17.7.0-x86_64-i386-64bit standard ?
4.0.4 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard fr_CA
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard ar_AE
4.0.4 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
4.0.4 3.7.9 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] Linux-4.15.0-123-generic-x86_64-with-debian-stretch-sid 1of2 de_DE
4.0.1 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_GB
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.8.0-2-amd64-x86_64-with-debian-10.6 standard en_US
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.8.0-2-amd64-x86_64-with-debian-10.6 standard en_US
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.8.0-2-amd64-x86_64-with-debian-10.6 standard en_US
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.8.0-2-amd64-x86_64-with-debian-10.6 standard en_US
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.8.0-2-amd64-x86_64-with-debian-10.6 standard en_US
4.0.5 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard,imported sk_SK
4.0.5 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard,imported sk_SK
4.0.5 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard,imported sk_SK
4.0.7 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 2fa de_DE
4.0.7 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard ru_BY
4.0.7 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard ru_BY
4.0.7 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard ru_BY
4.0.7 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard ru_BY
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_FI
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 2fa en_US
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_GB
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard fr_FR
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard fr_FR
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.9.0-0.bpo.2-amd64-x86_64-with-debian-10.7 2fa fr_FR
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.9.0-0.bpo.2-amd64-x86_64-with-debian-10.7 2fa fr_FR
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 standard fa_IR
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard de_DE
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard de_DE
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_DE
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_DE
4.0.9-151-gbab22c8c5 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] Linux-5.8.0-43-generic-x86_64-with-glibc2.29 standard en_GB
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_US
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 2fa cs_CZ
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_MY
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard ru_RU
4.0.9 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.10.0-3-amd64-x86_64-with-debian-10.8 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard el_GR
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard ru_RU
4.0.9 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.10.0-3-amd64-x86_64-with-debian-10.8 standard en_US
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard de_DE
4.0.9 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.10.0-0.bpo.3-amd64-x86_64-with-debian-10.8 standard 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 standard en_PH
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 de_DE
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard ru_RU
4.0.9 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.10.0-0.bpo.3-amd64-x86_64-with-debian-10.8 standard en_US
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard en_GB
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 pt_BR
4.0.9 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] Linux-5.10.0-8-amd64-x86_64-with-debian-10.10 standard en_US
4.0.9 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] Linux-5.10.0-8-amd64-x86_64-with-debian-10.10 standard en_US
4.0.9 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] Linux-5.10.0-8-amd64-x86_64-with-debian-10.10 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 es_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_CA
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_CA
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 pt_BR
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.15063-SP0 2of2,standard en_US
3.3.8 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Darwin-20.6.0-x86_64-i386-64bit standard ?
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.22000-SP0 standard ar_KW
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard es_MX
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard 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.19044-SP0 standard 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.18362-SP0 standard 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.19043-SP0 standard pl_PL
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 sv_SE
4.0.9 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Linux-6.1.0-13-amd64-x86_64-with-glibc2.31 standard en_US
4.0.9 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Linux-6.1.0-16-amd64-x86_64-with-glibc2.31 standard en_IN
4.0.9 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Linux-6.1.0-17-amd64-x86_64-with-glibc2.31 standard en_IN
4.0.9 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Linux-6.1.0-13-amd64-x86_64-with-glibc2.31 standard en_US
4.0.9 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Linux-6.1.0-17-amd64-x86_64-with-glibc2.31 standard en_US

Additional Information

no


now working rite


all my fucking bitcoins is gone!!!!!


I had around 2700 - 2900 in bitcoins and then in saw another person take that!!


i want my money back!!!!!


89e45ced349a0e4b87a51a1a6634abd4


i cant send any of my money, it seems locked. wtf is the problem here?


lkçlklçk


maximum mBTC?


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 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
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]


the amount was found unreasonable


ok


@SomberNight SomberNight self-assigned this Feb 18, 2021
@SomberNight SomberNight added topic-invoice-payreq invoices and payment requests bug 🐞 labels Feb 18, 2021
@SomberNight SomberNight added this to the 4.1.0 milestone Feb 18, 2021
@SomberNight
Copy link
Member

I can reproduce on current master.

In Qt GUI, in Receive tab, try saving an onchain payment request for an absurdly large BTC amount (e,g, 10**30).
(similar issue in Send tab, when saving an invoice)

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
E | gui.qt.ElectrumGui | 
Traceback (most recent call last):
  File "/home/user/wspace/electrum/electrum/gui/qt/__init__.py", line 284, in start_new_window
    window = self._create_window_for_wallet(wallet)
  File "/home/user/wspace/electrum/electrum/gui/qt/__init__.py", line 233, in _create_window_for_wallet
    w = ElectrumWindow(self, wallet)
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 214, in __init__
    self.receive_tab = self.create_receive_tab()
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 1136, in create_receive_tab
    self.request_list = RequestList(self)
  File "/home/user/wspace/electrum/electrum/gui/qt/request_list.py", line 78, in __init__
    self.update()
  File "/home/user/wspace/electrum/electrum/gui/qt/request_list.py", line 164, in update
    amount_str = self.parent.format_amount(amount) if amount else ""
  File "/home/user/wspace/electrum/electrum/gui/qt/main_window.py", line 877, in format_amount
    return self.config.format_amount(x, is_diff=is_diff, whitespaces=whitespaces)
  File "/home/user/wspace/electrum/electrum/simple_config.py", line 646, in format_amount
    return format_satoshis(
  File "/home/user/wspace/electrum/electrum/util.py", line 658, in format_satoshis
    x = Decimal(x).quantize(Decimal('1E-8'))
decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]

SomberNight added a commit that referenced this issue Feb 18, 2021
Just for sanity... e.g. when importing electrum as a python library,
the calling code could have changed the precision.

related: #5223
@TARS-bot
Copy link
Author

Good morning @ecdsa,

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

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

@TARS-bot
Copy link
Author

TARS-bot commented Aug 1, 2021

Good evening @ecdsa,

I just received another crash report related to this issue. The crash occured on Electrum 4.1.5.
I'm not sure which versions of Electrum include the fix but this is the first report from anything
newer than 4.1.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\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

@TARS-bot
Copy link
Author

TARS-bot commented May 3, 2022

Good evening @ecdsa,

I just received another crash report related to this issue. The crash occured on Electrum 4.2.1.
I'm not sure which versions of Electrum include the fix but this is the first report from anything
newer than 4.1.5 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\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

@TARS-bot
Copy link
Author

Good afternoon @ecdsa,

I just received another crash report related to this issue. The crash occured on Electrum 4.3.2.
I'm not sure which versions of Electrum include the fix but this is the first report from anything
newer than 4.2.1 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\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

@SomberNight SomberNight reopened this Oct 19, 2022
SomberNight added a commit to SomberNight/electrum that referenced this issue Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 topic-invoice-payreq invoices and payment requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants