[Open Wallet] click freeze system, when in sync node #16

issue Saibato openend this issue on June 30, 2020
  1. Saibato commented at 12:20 pm on June 30, 2020: contributor

    Steps to reproduce: disconnect a full indexed node that has no “wallets” dir, in -datadir. and all node files in -datadir wait until you missed say 20 or more new blocks. A fast syncing high bandwide node might need a lag of more than 100 …. start the node with ui. wait until IBD had set in.. click [Open Wallet] ….

    If your whole system or VM ui enters an unresponsive state, Don;t panic, brew a tee !!!. System should leave dead lock after < 5 min. Close ui., hmm… :woman_shrugging:
    In essence that is an edge case, but new users who first time try to do the right thing and run there full nodes might run in this …

    refernced https://github.com/bitcoin/bitcoin/pull/19419

    EDIT: Note: even that fixed, the other freeze of window refresh, if re-scanning a wallet lag;s behind, is a different gui issue.to be solved in pipeline. … Upwards v0.18 ,19. 20 release to master you could get ui also in local temporary freeze, with -reindex or mine more than say 3117 blocks on a different node to an address of your test node and than connect to that mining node. Unless you have a spared miner or to much btc, the preferred method to test is with regtest.

     0a="/tmp/test_a"
     1b="/tmp/test_b"
     2ca="-regtest -datadir=$a"
     3cb="-regtest -datadir=$b"
     4mkdir $a
     5mkdir $b
     6bitcoind -daemon $ca -server -datadir=$a
     7sleep 1
     8adr=$(bitcoin-cli  $ca getnewaddress) 
     9echo $adr
    10bitcoin-cli $ca stop 
    11sleep 1
    12bitcoin-qt  $cb  -server -listen  -datadir=$b &
    13sleep 1
    14echo "wait for coins ... this could take some while to gen"
    15gen=$(bitcoin-cli $cb generatetoaddress 3117  $adr) 
    16# Now start the node, should instant frezze repaint update
    17bitcoin-qt  $ca -connect=127.0.0.1 -port=1234 -datadir=$a &
    18echo $gen
    19
    20////
    21frezze b ?
    22
    23  
    

    So far observed in debian and lubuntu VM’s

  2. hebasto commented at 4:25 pm on June 30, 2020: member

    Steps to reproduce: disconnect a node that has no “wallets” dir, in -datadir. wait until you missed say 20 new blocks. start the node with ui. click [Open Wallet] ….

    If your whole system ui hangs.

    Couldn’t reproduce it. Using Linux Mint 20, Qt 5.12.8, master (49464004701e5ac256fe1f3e969464012af7c598).

    UPDATE: having a separated blocks directory

  3. Saibato commented at 4:41 pm on June 30, 2020: contributor

    Steps to reproduce: disconnect a node that has no “wallets” dir, in -datadir. wait until you missed say 20 new blocks. start the node with ui. click [Open Wallet] …. If your whole system ui hangs.

    Couldn’t reproduce it. Using Linux Mint 20, Qt 5.12.8, master (4946400).

    ̶C̶o̶u̶l̶d̶ ̶o̶b̶v̶i̶o̶u̶s̶l̶y̶ ̶b̶e̶ ̶s̶y̶s̶t̶e̶m̶ ̶d̶e̶p̶e̶n̶d̶e̶n̶t̶,̶ ̶A̶n̶d̶ ̶m̶a̶y̶b̶e̶ ̶y̶o̶u̶ ̶h̶a̶v̶e̶ ̶t̶o̶ ̶s̶t̶a̶y̶ ̶o̶n̶l̶y̶ ̶a̶ ̶b̶i̶t̶ ̶s̶h̶o̶r̶t̶e̶r̶ ̶o̶n̶l̶i̶n̶e̶ ̶again to start sync and get height and then close the connection and restart with a proxy that yield to nowhere. Important is that the node has some blocks to work on on disk to reach height. ̶I̶ ̶g̶u̶e̶s̶s̶ ̶i̶t̶ ̶a̶l̶s̶o̶ ̶c̶a̶n̶ ̶d̶e̶p̶e̶n̶d̶ ̶o̶n̶ ̶t̶h̶e̶ ̶f̶i̶l̶e̶s̶ ̶d̶r̶i̶v̶e̶r̶ ̶a̶n̶d̶ ̶f̶o̶r̶m̶a̶t̶ ̶a̶s̶ ̶w̶e̶l̶l̶.̶

    BTW i use a full indexed node. When we look at #18095 your system where also not able to reproduce, BTW. i tested #18095 also, but had no effect on my system, ec/eci was not even triggered.

    I hesitate a bit to post my exact system config here, ping me for pm if you need it.

  4. laanwj referenced this in commit 924a4ff7eb on Oct 29, 2020
  5. Saibato commented at 10:03 am on December 8, 2020: contributor

    @hebasto tyi, a node of mine, compiled with no wallet, was free of this issue and synced fine in GUI with 21rc1 Wallets in core ( if hot ) are anyway not that smart to use with hot keys, but as long as we have that build in by default, maybe we should just warn newbe users of this ugly annoying behavior Because I see not much what we can do, if the wallet support is compiled in?

    I still can reproduce this issue with any version above 19 up to 21rc2. lower I had not tried.

  6. promag commented at 10:14 am on December 8, 2020: contributor
    @Saibato what about bitcoin-cli listwalletdir, does it take too long?
  7. Saibato commented at 2:52 pm on December 8, 2020: contributor

    @promag

    what about bitcoin-cli listwalletdir, does it take too long?

    I had first thought that was the only reason and did a PR that skipped the dir traversal. btw merged only into knots But there is a much harder freeze I did try to address here, if you want to sync a node with some dust test funds in it. My workaround was to have two compiles, I have lingering offline test nodes that I sync to current top from time to time or before i want to do tx,, so i sync with the no wallet compile and then start the default compile with my private patch that has also the non listwalldir traversal so it hangs not the GUI from that since i use no separate blocksdir. I probably could do all that with cmdline but i like the gui since it has the convenient debug cmdline interface, so it would be nice if we or u would find a fix for this.

  8. hebasto added the label Bug on Mar 5, 2021
  9. MarcoFalke referenced this in commit bce09da122 on Apr 28, 2021
  10. hebasto added the label UX on May 1, 2021
  11. MarcoFalke referenced this in commit eb9a1fe037 on May 7, 2021
  12. MarcoFalke referenced this in commit c857148636 on May 15, 2021
  13. fanquake referenced this in commit f9b522e50d on Feb 23, 2022
  14. fanquake referenced this in commit df08c23f01 on Apr 26, 2022
  15. fanquake referenced this in commit 30c1c6ed80 on Apr 26, 2022
  16. fanquake referenced this in commit a75b7796b7 on Aug 17, 2022
  17. fanquake referenced this in commit 968f03e65c on Dec 13, 2022
  18. fanquake referenced this in commit 7b45d171f5 on May 2, 2023
  19. fanquake referenced this in commit 8d5b93cf54 on Jun 21, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 07:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me