mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
A Core message that waits for an answer is not brought into view when the window is hidden or minimized, and the node waits behind it #1138
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#1138
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 has a message that waits for an answer, the app opens it inside the main window and does not show the window. With the window hidden to the tray or minimized, the message is out of sight and the node waits behind it until the user happens to open the window.
To reproduce at run time:
hide()andshowMinimized().blocks/blk00000.datread-only and mined one block over RPC.Core reports "A fatal internal error occurred, see debug.log for details: Failed to write block." By Qt's state the message is open within 0.3 s and the window stays hidden or minimized. While it waited,
getblockcountgot no answer in 8 s and the log had no "Shutdown in progress".bitcoindalone exited with status 1 in 0.14 s.Showing the window again revealed the message and its button worked (3 launches). A quit in that state exited 0 with "Shutdown done" (9 launches).
The message is a
Popupin the window's overlay, and opening it does not show the window:github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/components/NodeRuntimeDialog.qml (L34-L40)Only the app's own fatal-exception handler shows and raises it:
github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/pages/MainWindow.qml (L302-L309)Bitcoin-Qt, by its source, runs the message as a window of its own, and once the node is running it first brings its main window forward:
showNormalIfMinimized()un-minimizes or shows it, then activates and raises it (bitcoingui.cpp#L1321-L1331). During start-up that call returns early, but the message is still its own window. I did not run Bitcoin-Qt.Suggested: show and raise the window when a message that blocks Core opens, as that handler does. #1126 is the same gap for the shutdown page.
Reproduced on
qt6at2bd5a61e8304, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen and in a native window (4 of the 12 launches); the same ateed1f426fcb6in 4 offscreen launches. Limits: