mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:18:39 +00:00
App can hang after SIGINT during wallet initialization #731
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#731
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Sending SIGINT/Ctrl+C while the QML app is still initializing can leave the application running instead of shutting down. This is easiest to reproduce when startup is loading an encrypted wallet.
Observed behavior
Suspected cause
The QML startup path queues shutdown through the same init executor thread that is running
appInitMain(). If Core returnsfalsefrom initialization because shutdown was requested, the QML side currently treats it like a generic initialization error instead of entering the shutdown path. Wallet controller initialization can also run from the failed init result.Proposed fix direction
node.shutdownRequested()as a shutdown request.node->startShutdown()from all QML shutdown entry points before queuedappShutdown().Validation target
Add focused NodeModel coverage for interrupted initialization and one-shot shutdown, plus a smoke test with a disposable regtest datadir and encrypted wallet where SIGINT during
Loading wallet…exits cleanly.