InvalidOperation: [<class 'decimal.DivisionUndefined'>]
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
File "site-packages\electrum-3.1.1-py3.5.egg\electrum_gui\qt\main_window.py", line 623, in timer_actions
File "site-packages\electrum-3.1.1-py3.5.egg\electrum_gui\qt\main_window.py", line 743, in update_wallet
File "site-packages\electrum-3.1.1-py3.5.egg\electrum_gui\qt\main_window.py", line 746, in update_tabs
File "site-packages\electrum-3.1.1-py3.5.egg\electrum_gui\qt\util.py", line 499, in update
File "site-packages\electrum-3.1.1-py3.5.egg\electrum\util.py", line 288, in <lambda>
File "site-packages\electrum-3.1.1-py3.5.egg\electrum\util.py", line 284, in do_profile
File "site-packages\electrum-3.1.1-py3.5.egg\electrum_gui\qt\history_list.py", line 215, in on_update
File "site-packages\electrum-3.1.1-py3.5.egg\electrum\util.py", line 288, in <lambda>
File "site-packages\electrum-3.1.1-py3.5.egg\electrum\util.py", line 284, in do_profile
File "site-packages\electrum-3.1.1-py3.5.egg\electrum\wallet.py", line 1056, in get_full_history
File "site-packages\electrum-3.1.1-py3.5.egg\electrum\wallet.py", line 1768, in average_price
InvalidOperation: [<class 'decimal.DivisionUndefined'>]
Reporter
This issue was reported by 11 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 3.1.1 | Windows-7-6.1.7601-SP1 | standard | ru_RU | ℹ | |
| 3.1.3 | Linux-4.4.0-131-generic-x86_64-with-Ubuntu-16.04-xenial | standard | en_US | ℹ | |
| 3.1.3 | Linux-4.4.0-131-generic-x86_64-with-Ubuntu-16.04-xenial | standard | en_US | ℹ | |
| 3.1.3 | Linux-4.4.0-131-generic-x86_64-with-Ubuntu-16.04-xenial | standard | en_US | ℹ | |
| 3.1.3 | Linux-4.4.0-131-generic-x86_64-with-Ubuntu-16.04-xenial | standard | en_US | ℹ | |
| 3.1.3 | Linux-4.4.0-135-generic-x86_64-with-Ubuntu-16.04-xenial | standard | en_US | ℹ | |
| 3.1.3 | Linux-4.4.0-135-generic-x86_64-with-Ubuntu-16.04-xenial | standard | en_US | ℹ | |
| 3.1.3 | Linux-4.4.0-138-generic-x86_64-with-Ubuntu-16.04-xenial | 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 | uk_UA | ℹ |
| 3.3.8 | 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC] | Linux-4.12.14-lp151.28.16-default-x86_64-with-glibc2.3.4 | 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-10-10.0.17763-SP0 | imported | ru_RU | ℹ |
Additional Information
The reporting user(s) did not provide additional information.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in electrum/wallet.py at get_full_history and average_price, then follow the call from electrum_gui/qt/history_list.py:on_update. Use the traceback and reported standard or imported wallet cases to investigate the DivisionUndefined failure. Done means wallet history updates without this crash and the relevant scenario is covered by an appropriate test if one exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100