You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
qt: "Fee bump in progress" sticks after an exception starting a fee bump #351
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.x21fee6ee8e.
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.
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.x9c831bec24.
bumpFeeAction is connected through GUIUtil::ExceptionSafeConnect (src/qt/transactionview.cpp:174). TransactionView::bumpFee ends with model->bumpFee(hash), with nothing after it.
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.
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).
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.
Activity
kiwidream commentedon Nov 5, 2026
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.x9c831bec24.bumpFeeActionis connected throughGUIUtil::ExceptionSafeConnect(src/qt/transactionview.cpp:174).TransactionView::bumpFeeends withmodel->bumpFee(hash), with nothing after it.WalletModel::bumpFee,m_wallet->clone()(src/qt/walletmodel.cpp:748) runs before the flag is set (:754), so a throw there leaves nothing set.:754, the only statement isstartBumpFeePreparation(...)(:755). On the GUI thread it builds aCCoinControl, clears a progress dialog that is already gone, creates aQProgressDialog/QProgressBar, and callsconnect,QTimer::singleShot,std::make_shared,QThread::createandstart()(:759-817). It makes no wallet call, emits no signal and has noCHECK_NONFATAL/Assume.createBumpTransactionruns on the worker inside its owntry/catch(:798-809).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 forNonFatalCheckError. Everything else goes tohandleRunawayException, which exits (src/qt/bitcoin.cpp:443-450).So nothing reachable leaves "Fee bump in progress" stuck in a running app. Adding a defensive
catchwould need a test-only seam inwalletmodel.hto test, which isn't worth it for the frozen v1.0.1 branch. Reopen if a wallet call orCHECK_NONFATALis ever added between setting the flag and starting the thread.