mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
A Core initialization failure exits the app with status 0 #1100
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#1100
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?
When Core initialization fails, the GUI displays the error and completes shutdown, but the application exits with status 0, reporting success to the calling process.
This is a remaining lifecycle case related to closed #959 and the broader tracking issue #917.
To reproduce:
Use an already-onboarded, disposable regtest profile with these settings in
bitcoin.conf:Put the following in the profile's
regtest/settings.json:Launch
bitcoin-core-appdirectly from a terminal using this profile. Core initialization fails, and the GUI reports that Tor connections are restricted while the Tor proxy is explicitly forbidden by-onion=0.Acknowledge the error with OK and inspect the application's exit status. It is 0.
The log contains the initialization error followed by
Shutdown done, withoutDone loading. Runningbitcoindwith the same invalid configuration exits 1. Healthy GUI and daemon controls both initialize successfully and exit 0.Core's
appInitMain()recordsEXIT_FAILUREwhen initialization fails. QML's shutdown-completion callback nevertheless callsQCoreApplication::exit(0), andQmlGuiMain()returns that event-loop result. The incorrect status comes from the QML application lifecycle code.After cleanup, the application should preserve Core's failure status so callers can distinguish failed initialization from a successful run. The error dialog and cleanup work in this reproduction.
Reproduced on merged QML
eed1f426fcb6/ Core44901d8f64cb, macOS / Qt 6.9, using the full offscreen app and isolated regtest profiles with networking disabled. The GUI error was acknowledged through the application's test bridge. This report is limited to the demonstrated initialization failure.