Skip to content

qt: "Fee bump in progress" sticks after an exception starting a fee bump #351

Closed as not planned

Description

@kiwidream

If starting a fee bump throws, every later fee bump reports "Fee bump in progress" until the app restarts. Line numbers are at 1.x.x 21fee6ee8e.

What happens

WalletModel::bumpFee sets m_bump_fee_active = true (src/qt/walletmodel.cpp:754) before it starts the asynchronous preparation. The action is connected through GUIUtil::ExceptionSafeConnect (src/qt/transactionview.cpp:174), which lets the application continue after a NonFatalCheckError. If the preparation start throws after that point, resetBumpFeeState (which clears the flag at src/qt/walletmodel.cpp:1183) never runs. Every later attempt is then refused with "Fee bump in progress".

Expected

Release the in-flight fee-bump state when an exception escapes the start, as the send-dialog fix for #174 does for Send.

Low risk. Found by reading the code during the #174 v1.0.1 release work; not reproduced.

Activity

  1. kiwidream commented on Nov 5, 2026

    @kiwidream
    MemberAuthor

    Closing as not reachable. Tracing the code shows the stuck state can't occur while the app keeps running. Line numbers are at 1.x.x 9c831bec24.

    1. bumpFeeAction is connected through GUIUtil::ExceptionSafeConnect (src/qt/transactionview.cpp:174). TransactionView::bumpFee ends with model->bumpFee(hash), with nothing after it.
    2. In WalletModel::bumpFee, m_wallet->clone() (src/qt/walletmodel.cpp:748) runs before the flag is set (:754), so a throw there leaves nothing set.
    3. After :754, the only statement is startBumpFeePreparation(...) (:755). On the GUI thread it builds a CCoinControl, clears a progress dialog that is already gone, creates a QProgressDialog/QProgressBar, and calls connect, QTimer::singleShot, std::make_shared, QThread::create and start() (:759-817). It makes no wallet call, emits no signal and has no CHECK_NONFATAL/Assume. createBumpTransaction runs on the worker inside its own try/catch (:798-809).
    4. So only std::bad_alloc, or an exception from Qt widget or thread construction, can escape after the flag is set. ExceptionSafeConnect (src/qt/guiutil.h:384-399) continues the app only for NonFatalCheckError. Everything else goes to handleRunawayException, which exits (src/qt/bitcoin.cpp:443-450).

    So nothing reachable leaves "Fee bump in progress" stuck in a running app. Adding a defensive catch would need a test-only seam in walletmodel.h to test, which isn't worth it for the frozen v1.0.1 branch. Reopen if a wallet call or CHECK_NONFATAL is ever added between setting the flag and starting the thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions