Should Bitcoin Core quit when something goes wrong? #364

issue GaylordTuring openend this issue on June 13, 2021
  1. GaylordTuring commented at 6:57 pm on June 13, 2021: none

    Bitcoin Core quits without any error message being shown. The application just disappears from the taskbar. I realize that things can go wrong (and I would very much figure out what goes wrong for me specifically), but should the application quit rather than gracefully show an error message and prompt the user to do something (for example check the error log or restart the software)? That is, is this type of behavior a bug or a feature? I definitely think that it shouldn’t work this way.

    Expected behavior

    Bitcoin Core should still be open, possibly with some error message showing that it has stopped running with some suggestions what the user can do.

    Actual behavior

    Program quits and disappears from the taskbar.

    To reproduce

    I guess this depends on your system, but for me, I simply import my old wallet into the wallet folder, start Bitcoin Core and then wait. When searching for this error online, I see that it has been an issue more or less from the start.

    System information

    I run version 0.21.1, 64-bit, of Bitcoin Core, downloaded as an installer from Bitcoin.org. I’m using Windows version 10.0.19042.

  2. GaylordTuring added the label Bug on Jun 13, 2021
  3. hebasto added the label Wallet on Jun 13, 2021
  4. hebasto commented at 7:10 pm on June 13, 2021: member
    Could you provide your debug.log file?
  5. GaylordTuring commented at 7:57 pm on June 13, 2021: none

    Sure, here’s one from my latest run.

    debug - Copy.log

  6. hebasto commented at 10:05 pm on June 13, 2021: member

    @GaylordTuring

    What is the Z: drive? External? USB?

  7. GaylordTuring commented at 11:24 pm on June 13, 2021: none
    @hebasto It’s one of my internal drives (this is a desktop PC). Bitcoin Core itself is installed on my main drive, C:, but I chose to have the chaindata stored on my Z: drive, which is a 2TB spinning hard drive. I’ve installed numerous games on that drive without any problems, so it seems to be doing fine.
  8. hebasto commented at 1:00 am on June 14, 2021: member

    @GaylordTuring

    Could you try to run the bitcoind.exe–the Bitcoin Core daemon without the GUI–and to see if it succeeds?

  9. GaylordTuring commented at 12:43 pm on June 15, 2021: none

    @hebasto First of all, I was able to continue the process of downloading the whole blockchain by deleting all the contents of my chaindata folder. I’ve done this before, so I’m not sure why it worked this time, but whatever.

    However (and this is a great illustration of my general concern), when trying to load my wallet, Bitcoin Core just shuts down. No warning messages, no popups, no nothing. It’s just gone. This, again, is a behavior I don’t think should manifest itself ever, no matter how many error the application throws under the hood.

    I did try to run bitcoind instead. At first, it worked, but after trying to load my wallet via the cli, it just shut down (again, non gracefully; it just disappeared), and the cli gave me an error message saying that the daemon needed to run. Ever since that happening, running bitcoind just results in it closing itself after a while. The last thing I manage to see in the window, which I don’t think should close itself, is “Rescan started from block something, something….”. No extra log messages are written to either debug.log or db.log.

  10. hebasto commented at 1:11 pm on June 15, 2021: member

    @GaylordTuring

    I did try to run bitcoind instead. At first, it worked, but after trying to load my wallet via the cli, it just shut down (again, non gracefully; it just disappeared), and the cli gave me an error message saying that the daemon needed to run. Ever since that happening, running bitcoind just results in it closing itself after a while. The last thing I manage to see in the window, which I don’t think should close itself, is “Rescan started from block something, something….”. No extra log messages are written to either debug.log or db.log.

    Thanks for testing! It seems this issue should be moved into the main repo to attract the attention of more developers who works on node (daemon) and wallet stuff.

    As the GUI is, essentially, another layer, it just processes errors that are received from the node (daemon) and wallet code.

  11. GaylordTuring commented at 6:57 pm on June 15, 2021: none
    @hebasto Do you mean that someone should move it or that I should create a new issue in the main repo?
  12. hebasto commented at 7:01 pm on June 15, 2021: member

    @GaylordTuring

    @hebasto Do you mean that someone should move it or that I should create a new issue in the main repo?

    You could open a new issue in the main repo, describing steps to reproduce it with bitcoind and your wallet. Then this issue could be closed.

  13. hebasto commented at 8:41 am on July 4, 2021: member
  14. hebasto closed this on Jul 4, 2021

  15. bitcoin-core locked this on Aug 16, 2022

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-11-21 13:20 UTC

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