Skip to content

Conversation

@fsb4000
Copy link
Contributor

@fsb4000 fsb4000 commented Jun 24, 2016

How to reproduce bug:

  1. Run bitcoin-qt which doen't have transactions. (any mode, here testnet screenshot but same problem with mainnet)
    Image of first step
  2. Press right mouse button at center:
    Image of second step
  3. Program crashes:
    Image of third step

I found that error at the line:

hash.SetHex(selection.at(0).data(TransactionTableModel::TxHashRole).toString().toStdString());

and I added the check.

My system: Linux Mint 18, Qt 5.5

@laanwj
Copy link
Member

laanwj commented Jun 24, 2016

Good catch!
I take it that "АВарийный останов" is a "Segmentation Fault" in Russian (Google translates it as "Emergency Stop")?
utACK 59b861b

@maflcko
Copy link
Member

maflcko commented Jun 24, 2016

Concept ACK. Thanks for adding steps to reproduce!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you could move this down two lines and do:

if (selection.empty())
    return;

@jonasschnelli
Copy link
Contributor

Thanks. Seems necessary.
utACK d7828ab.

@laanwj laanwj merged commit d7828ab into bitcoin:master Jun 24, 2016
laanwj added a commit that referenced this pull request Jun 24, 2016
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Dec 20, 2017
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
UdjinM6 added a commit to dashpay/dash that referenced this pull request Dec 21, 2017
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 28, 2017
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
sidhujag added a commit to syscoin/syscoin that referenced this pull request Jan 2, 2018
But fix properly, bitcoin upstream did not fix properly
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jan 5, 2018
d7828ab check that transactionView->selectionModel()->selectedRows(0) exists (fsb4000)
NarubyRiverlione added a commit to NarubyRiverlione/spice that referenced this pull request Feb 4, 2018
* 'spice' of github.com:NarubyRiverlione/spice: (8382 commits)
  updated testnet genessis
  spice images
  more rename
  genesis blocks ports magic message letters start letter addresses
  cleanup : * remove gitian signatures * remove seeds
  rename: more originale files
  rename
  Prepare 0.12.2.3 release notes (dashpay#1846)
  Avoid reference leakage in CKeyHolderStorage::AddKey (dashpay#1840)
  Protect CKeyHolderStorage via mutex (dashpay#1834)
  Skip existing masternode conections on mixing (dashpay#1833)
  Merge pull request dashpay#1836 from lodgepole/feature/backport-11847
  Fix -liquidityprovider option (dashpay#1829)
  Vote on IS only if it was accepted to mempool (dashpay#1826)
  bump version to 0.12.2.3 (dashpay#1827)
  Merge bitcoin#8256: BUG: bitcoin-qt crash
  Swap iterations and fUseInstantSend parameters in ApproximateBestSubset (dashpay#1819)
  Fix crash on exit when -createwalletbackups=0 (dashpay#1810)
  Prepare v0.12.2.2 release notes (dashpay#1769)
  Force rcc to use resource format version 1. (dashpay#1784)
  ...

# Conflicts:
#	contrib/gitian-descriptors/gitian-osx-signer.yml
#	contrib/gitian-descriptors/gitian-win-signer.yml
#	src/chainparams.cpp
#	src/qt/res/icons/bitcoin.icns
#	src/qt/res/icons/bitcoin.ico
#	src/qt/res/icons/bitcoin.png
#	src/qt/res/icons/crownium/about.png
#	src/qt/res/icons/drkblue/about.png
#	src/qt/res/icons/drkblue/bitcoin.png
#	src/qt/res/icons/light/about.png
#	src/qt/res/icons/light/remove.png
#	src/qt/res/icons/remove.png
#	src/qt/res/icons/trad/about.png
#	src/qt/res/icons/trad/remove.png
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants