PSBT signing password prompt gets stuck after unloading its wallet #1027

Closed
opened 2026-10-15 04:32:40 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-10-15 04:32:40 +00:00 (Migrated from github.com)

Found another dialog that survives unloading its wallet. This is the password prompt after importing a PSBT and clicking Send, not the one used to prepare a normal transaction.

Tested on qt6 at d567e3eb2497, native macOS, with disposable regtest wallets.

  1. Load wallets A and B. A should be encrypted, locked and funded.
  2. Use walletcreatefundedpsbt in A to make an unsigned transaction, and decode the returned psbt into a binary .psbt file.
  3. In A, choose Send → More options → Import PSBT from file, import it, then click Send transaction.
  4. Leave the password prompt open and run unloadwallet "A" false through the GUI’s RPC server.
  5. Once the review closes and B becomes selected, enter a password in the surviving prompt and click Unlock and send.

The prompt gets stuck on Unlocking… with Cancel disabled. The log shows:

SendTransactionReview.qml:383: TypeError: Cannot call method 'sendTransactionWithPassphrase' of null

Escape dismisses it, but loading A again, reimporting the PSBT and clicking Send brings back the same disabled Unlocking… prompt. Entering the password doesn’t enable it. Nothing was broadcast.

The handler sets busy before calling the wallet, and the exception skips the reset. We should close and invalidate this prompt with its review, reject stale submissions, and reset the busy state so it doesn’t carry into the next attempt.

Related to #992 and #975. This is the signing-prompt counterpart to the Save dialog in #1026.

Found another dialog that survives unloading its wallet. This is the password prompt after importing a PSBT and clicking Send, not the one used to prepare a normal transaction. Tested on `qt6` at `d567e3eb2497`, native macOS, with disposable regtest wallets. 1. Load wallets A and B. A should be encrypted, locked and funded. 2. Use `walletcreatefundedpsbt` in A to make an unsigned transaction, and decode the returned `psbt` into a binary `.psbt` file. 3. In A, choose Send → More options → Import PSBT from file, import it, then click Send transaction. 4. Leave the password prompt open and run `unloadwallet "A" false` through the GUI’s RPC server. 5. Once the review closes and B becomes selected, enter a password in the surviving prompt and click Unlock and send. The prompt gets stuck on Unlocking… with Cancel disabled. The log shows: ```text SendTransactionReview.qml:383: TypeError: Cannot call method 'sendTransactionWithPassphrase' of null ``` Escape dismisses it, but loading A again, reimporting the PSBT and clicking Send brings back the same disabled Unlocking… prompt. Entering the password doesn’t enable it. Nothing was broadcast. The handler sets `busy` before calling the wallet, and the exception skips the reset. We should close and invalidate this prompt with its review, reject stale submissions, and reset the busy state so it doesn’t carry into the next attempt. Related to #992 and #975. This is the signing-prompt counterpart to the Save dialog in #1026.
Sign in to join this conversation.
No description provided.