OverflowError: can't convert negative int to unsigned

Open
#9,653 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start with app/electrum/gui/qml/qetxfinalizer.py at update_inputs_from_tx, then follow transaction.py:284 and util.py:1228 in the failing short_id/from_components path. Reproduce the crash using the reported Android imported-wallet context if possible and inspect the relevant transaction values. Done means the crash no longer occurs and regression coverage verifies the affected input case.

Written by the indexing model from the issue text.

Description

Crash Report

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

Traceback

Traceback (most recent call last):
  File "app/electrum/gui/qml/qetxfinalizer.py", line 43, in wallet
  File "app/electrum/gui/qml/qetxfinalizer.py", line 111, in read_config
  File "app/electrum/gui/qml/qetxfinalizer.py", line 378, in update
  File "app/electrum/gui/qml/qetxfinalizer.py", line 229, in update_from_tx
  File "app/electrum/gui/qml/qetxfinalizer.py", line 245, in update_inputs_from_tx
  File "app/electrum/transaction.py", line 284, in short_id
  File "app/electrum/util.py", line 1228, in from_components
OverflowError: can't convert negative int to unsigned

OverflowError: can't convert negative int to unsigned

Reporter

This issue was reported by 1 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.5.7 3.10.14 (main, Oct 20 2024, 15:31:52) [Clang 12.0.8 (https://android.googlesource.com/toolchain/llvm-project c935d99d7 Android 14 on samsung t2q (UP1A.231005.007.G996USQSEGYA5) imported en_US

Additional Information

The reporting user(s) did not provide additional information.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spesmilo/electrum

All issues in spesmilo/electrum

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.