Should Bitcoin Core quit when something goes wrong? #22398

issue hebasto opened this issue on July 4, 2021
  1. hebasto commented at 8:40 AM on July 4, 2021: member

    (Moved from https://github.com/bitcoin-core/gui/issues/364)

    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.

    https://github.com/bitcoin-core/gui/issues/364#issuecomment-861465896:

    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.

  2. hebasto added the label Bug on Jul 4, 2021
  3. hebasto added the label Wallet on Jul 4, 2021
  4. SkierScottC commented at 10:21 PM on July 11, 2021: none

    I successfully installed Bitcoin Core from Bitcoin.org as well but closed it while it was synching. Once rebooted I was able to start Bitcoin Core but it never appeared. Pulling up the Task Manager I can see Core running but after about 30 seconds it simply disappears. I tried uninstalling and reinstalling then removing the file directory and reinstalling but the application still will not run. I'm assuming what is described here is the same issue I'm seeing so rather than creating a new issue I thought I'd try commenting.

    My windows specs... Edition Windows 10 Pro Version 21H1 OS build 19043.1083 Experience Windows Feature Experience Pack 120.2212.3530.0

  5. JeremyRubin commented at 1:30 AM on July 12, 2021: contributor

    IMO as soon as something unexpected happens it's best to shut down as immediately as possible so that any and all processes stop occurring. We wouldn't want some runaway thread to do something bad, terminating stops all processing and clears memory.

    An error message can be showed later on (e.g. next start).

  6. SkierScottC commented at 7:53 PM on July 13, 2021: none

    Makes sense to "log" the issue and display it upon restart. The problem I have is that I can't use the application. It simply will not stay running so maybe I need to create a separate issue?

  7. willcl-ark commented at 12:59 PM on May 4, 2023: member

    @GaylordTuring, are you able to reproduce this issue with a current version of Bitcoin Core e.g 24.0.1?

    If you are it would be helpful to reproduce it when running bitcoind with the -debug=1 option, so we can get closer to diagnosing what is causing the crash without a relevant error message, otherwise it will be difficult for anyone to help you.

    I also notice in your logs the lines:

    23:2021-06-13T12:23:48Z BerkeleyEnvironment::Open: LogDir=Z:\Crypto\Bitcoin\wallets\database ErrorFile=Z:\Crypto\Bitcoin\wallets\db.log
    52:2021-06-13T12:23:57Z BerkeleyEnvironment::Open: LogDir=Z:\Crypto\Bitcoin\wallets\database ErrorFile=Z:\Crypto\Bitcoin\wallets\db.log
    

    Have you examined the contents of these files?

  8. maflcko added the label Windows on Feb 8, 2024
  9. maflcko commented at 6:34 PM on February 8, 2024: member

    Is this still an issue with a recent version of Bitcoin Core? If yes, what are the steps to reproduce?

  10. maflcko closed this on Feb 8, 2024

  11. bitcoin locked this on Feb 7, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:14 UTC

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