gui
gui copied to clipboard
Shutdown is blocked if called before gettxoutsetinfo is finished
Ported from https://github.com/bitcoin/bitcoin/issues/13217.
Steps to reproduce:
- Open QT console.
- Run gettxoutsetinfo.
- Exit the debug window (no blocking) -> exit the program (will block).
This is what is shown on Windows (10) for several minutes: https://i.imgur.com/AyexgkC.png
~On the current master (bd40cd81083a5bde15b90e66855255457c8fb58c) this bug is no longer reproducible. However, the blocking call QThread::wait() is still present in the RPCConsole::setClientModel function.~
~Tested on Linux Mint 20.2 (Qt 5.12.8) and on Windows 10 Pro 20H2 (MSVC build).~
Closing for now.
Got on Windows:

Reopening.