qml: Stabilize onboarding settings and data directories #883

Open
johnny9 wants to merge 10 commits from onboarding-settings-combined into qt6 AGit
johnny9 commented 2026-09-01 00:33:06 +00:00 (Migrated from github.com)

This combines #812 by @jarolrod with #864 and the review fixes for #812. Jarol's original commit keeps its authorship.

Pre-init onboarding was reading config and settings through the live gArgs, then normal startup read them again. A redirected data directory could make the second read use a different profile. GUI reset also ran before Core knew the active data directory and network.

This change builds the onboarding preview with a scratch ArgsManager. It keeps the selected data directory separate from the profile resolved by Core, then applies settings after InitConfig() and chain-specific QSettings setup. Canceling onboarding does not change settings.

Fixes

  • #773: Avoid changing the live startup arguments while building the preview, so config is not read again from a redirected data directory.
  • #774: Delay GUI reset until the active profile is resolved. Reset only that profile and leave all profiles unchanged when onboarding is canceled.
  • #775: Treat an unreadable saved data directory as unusable and show the chooser. Return config read failures as startup errors instead of aborting.
  • #783: Use a Qt 6.2-compatible folder dialog, while keeping the Qt 6.5 and newer implementation.
  • #846: Validate explicit data directories before onboarding. Resolve valid relative paths from the current directory and report invalid paths through normal startup error handling.

Reset now uses the final Core settings precedence, treats -resetguisettings=0 as false, preserves strDataDir, and backs up both Core and GUI settings. If a later write fails, it restores the earlier state. For malformed settings.json files, the backup keeps the original bytes. Settings stores are opened only when needed, and an apply is rejected if its target profile changed while onboarding was open.

User-facing startup errors and translator context are included.

The Settings-page reset and bitcoin.conf actions tracked by #600 remain separate work.

The review follow-up also catches inaccessible config-selected profiles, treats obsolete legacy-key cleanup as best effort during ordinary startup, reads absolute configuration/includes for new-folder previews, and saves malformed settings bytes before Core can replace them. It creates custom settings parents before InitConfig and preserves explicit listen-off choices while enabling a proxy.

Tests

Latest review fixes at 976e00e4826c: accept existing writable data directories under read-only parents, validate blocks directories before locking, preserve explicit NAT-PMP opt-outs, keep GUI preferences during settings-file recovery, and resolve relative configuration files during new-folder previews. A fresh native build, all 182 focused settings tests (zero skips), and six startup-error scenarios pass. Original-source negative controls reproduce all five findings. Sanitizers were not rerun for this revision.

Earlier validation follows; its sanitizer and CI qualifications still apply.

Validation at e66868e449c6:

  • Native Qt 6.8.4 application, daemon, CLI and C++ tests build. Full C++ tests: 912 passes, 10 existing skips; final focused settings tests: 173 passes.
  • All 173 focused tests pass in a fresh LLVM 22.1.8 ASan/LSan/UBSan/integer/float-divide build with the CI stack/options and existing Core suppression files.
  • Unit and real-GUI regressions reject the original code. Pre-init onboarding, reset, nested settings paths, blocked startup and all shutdown cases pass normally and in qualified sanitizer runs, with exit status/stderr checks.
  • Changed C++ passes the pinned LLVM 22 checks and Bitcoin tidy plugin; Python changes pass Ruff 0.15.22 using the pinned configuration.

The GUI sanitizer runs need the independently reproduced Qt hash-wrap exception and keep libdbus resident to avoid its process-global allocation report. The offscreen SIGINT case also needs specific FreeType allocation exceptions: a Qt-only control reproduces exactly 2248 bytes/28 allocations after application-font registration, while an unrelated 137-byte application leak still fails. These exceptions are local validation files, not repository or executable-wide suppressions. This is qualified sanitizer coverage, not a clean default-environment CI pass.

The standalone GUI checkout lacks the requested top-level lint/tidy/sanitizer CI drivers. Core-only fallback runs are partial and do not establish a full GUI-QML CI pass. The IPC-enabled standalone GUI uses a local-node factory, so Core multiprocess IPC lifecycle remains uncovered and interface_gui.py is absent. Earlier CI run.

Fixes #773
Fixes #774
Fixes #775
Fixes #783
Fixes #846

This combines #812 by @jarolrod with #864 and the review fixes for #812. Jarol's original commit keeps its authorship. Pre-init onboarding was reading config and settings through the live `gArgs`, then normal startup read them again. A redirected data directory could make the second read use a different profile. GUI reset also ran before Core knew the active data directory and network. This change builds the onboarding preview with a scratch `ArgsManager`. It keeps the selected data directory separate from the profile resolved by Core, then applies settings after `InitConfig()` and chain-specific `QSettings` setup. Canceling onboarding does not change settings. ## Fixes - #773: Avoid changing the live startup arguments while building the preview, so config is not read again from a redirected data directory. - #774: Delay GUI reset until the active profile is resolved. Reset only that profile and leave all profiles unchanged when onboarding is canceled. - #775: Treat an unreadable saved data directory as unusable and show the chooser. Return config read failures as startup errors instead of aborting. - #783: Use a Qt 6.2-compatible folder dialog, while keeping the Qt 6.5 and newer implementation. - #846: Validate explicit data directories before onboarding. Resolve valid relative paths from the current directory and report invalid paths through normal startup error handling. Reset now uses the final Core settings precedence, treats `-resetguisettings=0` as false, preserves `strDataDir`, and backs up both Core and GUI settings. If a later write fails, it restores the earlier state. For malformed `settings.json` files, the backup keeps the original bytes. Settings stores are opened only when needed, and an apply is rejected if its target profile changed while onboarding was open. User-facing startup errors and translator context are included. The Settings-page reset and `bitcoin.conf` actions tracked by #600 remain separate work. The review follow-up also catches inaccessible config-selected profiles, treats obsolete legacy-key cleanup as best effort during ordinary startup, reads absolute configuration/includes for new-folder previews, and saves malformed settings bytes before Core can replace them. It creates custom settings parents before `InitConfig` and preserves explicit listen-off choices while enabling a proxy. ## Tests Latest review fixes at `976e00e4826c`: accept existing writable data directories under read-only parents, validate blocks directories before locking, preserve explicit NAT-PMP opt-outs, keep GUI preferences during settings-file recovery, and resolve relative configuration files during new-folder previews. A fresh native build, all 182 focused settings tests (zero skips), and six startup-error scenarios pass. Original-source negative controls reproduce all five findings. Sanitizers were not rerun for this revision. Earlier validation follows; its sanitizer and CI qualifications still apply. Validation at `e66868e449c6`: - Native Qt 6.8.4 application, daemon, CLI and C++ tests build. Full C++ tests: 912 passes, 10 existing skips; final focused settings tests: 173 passes. - All 173 focused tests pass in a fresh LLVM 22.1.8 ASan/LSan/UBSan/integer/float-divide build with the CI stack/options and existing Core suppression files. - Unit and real-GUI regressions reject the original code. Pre-init onboarding, reset, nested settings paths, blocked startup and all shutdown cases pass normally and in qualified sanitizer runs, with exit status/stderr checks. - Changed C++ passes the pinned LLVM 22 checks and Bitcoin tidy plugin; Python changes pass Ruff 0.15.22 using the pinned configuration. The GUI sanitizer runs need the independently reproduced Qt hash-wrap exception and keep libdbus resident to avoid its process-global allocation report. The offscreen SIGINT case also needs specific FreeType allocation exceptions: a Qt-only control reproduces exactly 2248 bytes/28 allocations after application-font registration, while an unrelated 137-byte application leak still fails. These exceptions are local validation files, not repository or executable-wide suppressions. This is qualified sanitizer coverage, not a clean default-environment CI pass. The standalone GUI checkout lacks the requested top-level lint/tidy/sanitizer CI drivers. Core-only fallback runs are partial and do not establish a full GUI-QML CI pass. The IPC-enabled standalone GUI uses a local-node factory, so Core multiprocess IPC lifecycle remains uncovered and `interface_gui.py` is absent. [Earlier CI run](https://github.com/bitcoin-core/gui-qml/actions/runs/41487312825). Fixes #773 Fixes #774 Fixes #775 Fixes #783 Fixes #846
hebasto commented 2026-09-01 15:02:30 +00:00 (Migrated from github.com)

Please rebase.

Please rebase.
johnny9 commented 2026-10-11 13:23:02 +00:00 (Migrated from github.com)

rebased

rebased
First-time contributor

🟠 Minor · Onboarding drops an explicit NAT-PMP opt-out when listening is disabled

On a fresh profile, disabling NAT-PMP together with listening or enabling a proxy loses the explicit NAT-PMP preference, allowing default-enabled port mapping to return after the disabling condition is removed.

Location: qml/onboarding_settings.cpp:731 (head).

🟠 Minor · An unwritable config-selected data directory no longer opens the chooser

A readable, onboarded profile selected by bitcoin.conf can skip the chooser despite an unwritable data directory, causing startup to fail instead of offering a replacement location.

Location: qml/onboarding_settings.cpp:1011 (head).

🟠 Minor · The settings-recovery dialog ignores application Quit events

While the recovery dialog is open, QmlQuitHandler consumes application Quit events without dismissing the dialog, leaving startup waiting for a manual Reset or Abort.

Location: qml/bitcoin.cpp:375 (head).

🔵 Suggestion · Settings-file recovery also resets unrelated GUI preferences

Choosing Reset for an unreadable settings.json also clears active GUI preferences and legacy settings, although the prompt matches bitcoin-qt's narrower settings-file recovery.

Location: qml/onboarding_settings.cpp:1192 (head).

🔵 Suggestion · New-folder preview skips an explicit relative configuration file

An explicit relative -conf is skipped during new-folder preview but loaded after confirmation, potentially causing an inaccurate preview or a misleading profile-change rejection.

Location: qml/onboarding_settings.cpp:263 (head).

Review coverage was incomplete.


Reviewed: e66868e449c6 · Full review report · Previous reports

permalink

<!-- ralph:bitcoin-core/gui-qml --> <!-- ralph-engine:current:965af1044d9e41839565702e4d9bd0a751eda81f6e8b6402747fa296ef84ebea:f7677f01bbeeeda2e9dfb365f1407384e31618edbeddff6daa5ff425bb8651e2 --> <!-- ralph-base:6cdad5344018f35e8c33c77a23f6ba996d507549 --> <!-- ralph-head:e66868e449c62c6d4f9f23db6d835c9813143bd3 --> <!-- ralph-case:f2626c34461112d337b6afef087be5121cff5a043be487668e7095777937a7af --> **🟠 Minor · Onboarding drops an explicit NAT-PMP opt-out when listening is disabled** On a fresh profile, disabling NAT-PMP together with listening or enabling a proxy loses the explicit NAT-PMP preference, allowing default-enabled port mapping to return after the disabling condition is removed. Location: [`qml/onboarding_settings.cpp:731`](<https://git.fish.foo/bitcoin-core/gui-qml/src/commit/e66868e449c62c6d4f9f23db6d835c9813143bd3/qml/onboarding_settings.cpp#L731>) (head). **🟠 Minor · An unwritable config-selected data directory no longer opens the chooser** A readable, onboarded profile selected by bitcoin.conf can skip the chooser despite an unwritable data directory, causing startup to fail instead of offering a replacement location. Location: [`qml/onboarding_settings.cpp:1011`](<https://git.fish.foo/bitcoin-core/gui-qml/src/commit/e66868e449c62c6d4f9f23db6d835c9813143bd3/qml/onboarding_settings.cpp#L1011>) (head). **🟠 Minor · The settings-recovery dialog ignores application Quit events** While the recovery dialog is open, QmlQuitHandler consumes application Quit events without dismissing the dialog, leaving startup waiting for a manual Reset or Abort. Location: [`qml/bitcoin.cpp:375`](<https://git.fish.foo/bitcoin-core/gui-qml/src/commit/e66868e449c62c6d4f9f23db6d835c9813143bd3/qml/bitcoin.cpp#L375>) (head). **🔵 Suggestion · Settings-file recovery also resets unrelated GUI preferences** Choosing Reset for an unreadable settings.json also clears active GUI preferences and legacy settings, although the prompt matches bitcoin-qt's narrower settings-file recovery. Location: [`qml/onboarding_settings.cpp:1192`](<https://git.fish.foo/bitcoin-core/gui-qml/src/commit/e66868e449c62c6d4f9f23db6d835c9813143bd3/qml/onboarding_settings.cpp#L1192>) (head). **🔵 Suggestion · New-folder preview skips an explicit relative configuration file** An explicit relative -conf is skipped during new-folder preview but loaded after confirmation, potentially causing an inaccurate preview or a misleading profile-change rejection. Location: [`qml/onboarding_settings.cpp:263`](<https://git.fish.foo/bitcoin-core/gui-qml/src/commit/e66868e449c62c6d4f9f23db6d835c9813143bd3/qml/onboarding_settings.cpp#L263>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`e66868e449c6`](<https://git.fish.foo/bitcoin-core/gui-qml/commit/e66868e449c62c6d4f9f23db6d835c9813143bd3>) · [Full review report](<https://review.fish.foo/traces/gui/883-e66868e449c62c6d4f9f23db6d835c9813143bd3-1999-2.html>) · [Previous reports](<https://review.fish.foo/traces/883/>) [permalink](<https://review.fish.foo/traces/gui/883-e66868e449c62c6d4f9f23db6d835c9813143bd3-1999-2.html>)
rreview commented 2026-11-01 22:25:22 +00:00 (Migrated from github.com)

1 additional verified finding in the Review report.

🔴 Major · Startup-error test driver leaves onboarding alerts undetected and undismissed

Source inspection shows that the held-directory and two blocksdir cases have no alert-dismissal path, so they reach the 30-second subprocess timeout and fail the new CI test.

Location: test/test_startup_errors.cpp:31 (head).

🟠 Minor · -noconf blocks onboarding with a new data folder

With -noconf, choosing a folder that does not yet exist, including a missing saved folder, produces a configuration preview error and prevents onboarding from finishing.

Location: qml/onboarding_settings.cpp:285 (head).

🟠 Minor · Legacy cleanup rollback can reverse default-valued onboarding choices

With mixed writable and read-only legacy stores, cleanup rollback can restore an obsolete value and reverse a default-valued onboarding choice on restart; occurrence in production is unconfirmed.

Location: qml/legacy_settings_migration.cpp:253 (head).

🟠 Minor · -resetguisettings resolves and locks the blocks directory before clearing it

For manually or externally added blocksdir values, -resetguisettings can fail on the discarded path or keep it cached for the session; no current GUI/Core caller writes this setting.

Location: qml/bitcoin.cpp:739 (head).

🟠 Minor · New-folder preview ignores existing data in explicit external directories

A missing custom folder is classified as fresh despite populated explicit -blocksdir or -walletdir paths, changing storage requirements and automatic prune recommendations; production frequency is unknown.

Location: qml/onboarding_settings.cpp:1191 (head).

🟠 Minor · choosedatadir=1 in bitcoin.conf no longer opens onboarding

For an onboarded usable profile without a command-line -datadir, choosedatadir=1 in bitcoin.conf is ignored because the chooser request is captured before configuration parsing.

Location: qml/onboarding_settings.cpp:1062 (head).

Review coverage was incomplete.


Reviewed: 38ddfedfe692 · Review report

<!-- ralph-major:bitcoin-core/gui-qml --> [1 additional verified finding in the Review report](<https://review.fish.foo/report/gui/883-38ddfedfe692972d292034baaf74d91fece8eb5a-3186-8.html>). **🔴 Major · Startup-error test driver leaves onboarding alerts undetected and undismissed** Source inspection shows that the held-directory and two blocksdir cases have no alert-dismissal path, so they reach the 30-second subprocess timeout and fail the new CI test. Location: [test/test_startup_errors.cpp:31](<https://github.com/bitcoin-core/gui-qml/blob/38ddfedfe692972d292034baaf74d91fece8eb5a/test/test_startup_errors.cpp#L31>) (head). **🟠 Minor · `-noconf` blocks onboarding with a new data folder** With `-noconf`, choosing a folder that does not yet exist, including a missing saved folder, produces a configuration preview error and prevents onboarding from finishing. Location: [qml/onboarding_settings.cpp:285](<https://github.com/bitcoin-core/gui-qml/blob/38ddfedfe692972d292034baaf74d91fece8eb5a/qml/onboarding_settings.cpp#L285>) (head). **🟠 Minor · Legacy cleanup rollback can reverse default-valued onboarding choices** With mixed writable and read-only legacy stores, cleanup rollback can restore an obsolete value and reverse a default-valued onboarding choice on restart; occurrence in production is unconfirmed. Location: [qml/legacy_settings_migration.cpp:253](<https://github.com/bitcoin-core/gui-qml/blob/38ddfedfe692972d292034baaf74d91fece8eb5a/qml/legacy_settings_migration.cpp#L253>) (head). **🟠 Minor · `-resetguisettings` resolves and locks the blocks directory before clearing it** For manually or externally added `blocksdir` values, `-resetguisettings` can fail on the discarded path or keep it cached for the session; no current GUI/Core caller writes this setting. Location: [qml/bitcoin.cpp:739](<https://github.com/bitcoin-core/gui-qml/blob/38ddfedfe692972d292034baaf74d91fece8eb5a/qml/bitcoin.cpp#L739>) (head). **🟠 Minor · New-folder preview ignores existing data in explicit external directories** A missing custom folder is classified as fresh despite populated explicit `-blocksdir` or `-walletdir` paths, changing storage requirements and automatic prune recommendations; production frequency is unknown. Location: [qml/onboarding_settings.cpp:1191](<https://github.com/bitcoin-core/gui-qml/blob/38ddfedfe692972d292034baaf74d91fece8eb5a/qml/onboarding_settings.cpp#L1191>) (head). **🟠 Minor · `choosedatadir=1` in `bitcoin.conf` no longer opens onboarding** For an onboarded usable profile without a command-line `-datadir`, `choosedatadir=1` in `bitcoin.conf` is ignored because the chooser request is captured before configuration parsing. Location: [qml/onboarding_settings.cpp:1062](<https://github.com/bitcoin-core/gui-qml/blob/38ddfedfe692972d292034baaf74d91fece8eb5a/qml/onboarding_settings.cpp#L1062>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`38ddfedfe692`](<https://github.com/bitcoin-core/gui-qml/commit/38ddfedfe692972d292034baaf74d91fece8eb5a>) · [Review report](<https://review.fish.foo/report/gui/883-38ddfedfe692972d292034baaf74d91fece8eb5a-3186-8.html>)
johnny9 commented 2026-11-02 17:04:09 +00:00 (Migrated from github.com)

Fixed all six findings in e66868e449. Startup opens the chooser for an inaccessible config-selected directory and tolerates obsolete-settings cleanup failures during ordinary startup. New-folder previews read absolute config files and includes. Reset saves malformed settings bytes before Core replaces the file, and onboarding creates custom settings parents before startup writes them. Explicit listen-off choices survive enabling and later removing a proxy.

Added unit and GUI regressions; the original code rejects all six unit controls and the nested-settings GUI control. Native C++ tests pass (912 passes, 10 existing skips), all 173 focused settings tests pass, and onboarding/reset/startup/shutdown GUI checks pass. A fresh LLVM 22 sanitizer build passes all 173 focused tests with strict Core options.

GUI sanitizer lifecycle also passes with documented Qt dependency qualifications: the independently reproduced hash-wrap exception, resident libdbus, and specific FreeType allocation exceptions for the offscreen SIGINT case. Qt-only controls reproduce those allocations; an unrelated 137-byte application leak still fails. No repository or executable-wide suppression was added.

Matching LLVM 22/Bitcoin-plugin checks and Ruff pass. The standalone GUI CI drivers are absent and Core-only fallback runs remain incomplete, and actual Core multiprocess IPC lifecycle is not covered by this standalone local-node GUI. New CI run.

Correction to the earlier CI note: configured rootless Docker is available outside the restricted sandbox. Core-only fallback driver attempts do not cover parent GUI-QML changes.

Additional CI follow-up in ae2b20394c: the inherited custom-fee test required exact equality with the final signed transaction size. Pinned Core reproduced a 141-sat fee with a 140-vB transaction after a shorter ECDSA signature, so this was a test defect. The test now uses Core's bounded fee assertion and retains the wallet-minimum override and relay-minimum rejection checks. Shared-path validation passes eleven fee-boundary controls and both instrumented GUI fee scenarios. Only the Python test changed in this follow-up; earlier sanitizer/driver/IPC qualifications remain unchanged. New hosted checks are queued or running on this revision; no result is claimed yet. A freshly rebuilt native application for this PR also passes both GUI fee scenarios.

Fixed all six findings in e66868e449c6. Startup opens the chooser for an inaccessible config-selected directory and tolerates obsolete-settings cleanup failures during ordinary startup. New-folder previews read absolute config files and includes. Reset saves malformed settings bytes before Core replaces the file, and onboarding creates custom settings parents before startup writes them. Explicit listen-off choices survive enabling and later removing a proxy. Added unit and GUI regressions; the original code rejects all six unit controls and the nested-settings GUI control. Native C++ tests pass (912 passes, 10 existing skips), all 173 focused settings tests pass, and onboarding/reset/startup/shutdown GUI checks pass. A fresh LLVM 22 sanitizer build passes all 173 focused tests with strict Core options. GUI sanitizer lifecycle also passes with documented Qt dependency qualifications: the independently reproduced hash-wrap exception, resident libdbus, and specific FreeType allocation exceptions for the offscreen SIGINT case. Qt-only controls reproduce those allocations; an unrelated 137-byte application leak still fails. No repository or executable-wide suppression was added. Matching LLVM 22/Bitcoin-plugin checks and Ruff pass. The standalone GUI CI drivers are absent and Core-only fallback runs remain incomplete, and actual Core multiprocess IPC lifecycle is not covered by this standalone local-node GUI. [New CI run](https://github.com/bitcoin-core/gui-qml/actions/runs/41487312825). Correction to the earlier CI note: configured rootless Docker is available outside the restricted sandbox. Core-only fallback driver attempts do not cover parent GUI-QML changes. Additional CI follow-up in ae2b20394c7b: the inherited custom-fee test required exact equality with the final signed transaction size. Pinned Core reproduced a 141-sat fee with a 140-vB transaction after a shorter ECDSA signature, so this was a test defect. The test now uses Core's bounded fee assertion and retains the wallet-minimum override and relay-minimum rejection checks. Shared-path validation passes eleven fee-boundary controls and both instrumented GUI fee scenarios. Only the Python test changed in this follow-up; earlier sanitizer/driver/IPC qualifications remain unchanged. New hosted checks are queued or running on this revision; no result is claimed yet. A freshly rebuilt native application for this PR also passes both GUI fee scenarios.
jarolrod commented 2026-11-06 19:20:37 +00:00 (Migrated from github.com)

One early startup exception remains outside this PR’s error handling: conflicting command-line network selections.

With an existing disposable data directory, launching bitcoin-core-app with -regtest -testnet aborts before opening a window. On merged qt6 at 6e54a48ab571, stderr reports an uncaught std::runtime_error explaining that at most one network can be selected. The equivalent bitcoind invocation reports the configuration error and exits with status 1.

At this PR’s current head, 8e5b4d1f090a, the early setupChainQSettings call still evaluates gArgs.GetChainTypeString() before the guarded configuration preview and InitConfig.

Please catch this early exception and show the normal startup error, with a regression covering conflicting command-line network flags.

Reproduced on the merged build, macOS / Qt 6.9.0. The current PR was checked in source; its binary was not runtime-tested.

One early startup exception remains outside this PR’s error handling: conflicting command-line network selections. With an existing disposable data directory, launching `bitcoin-core-app` with `-regtest -testnet` aborts before opening a window. On merged `qt6` at `6e54a48ab571`, stderr reports an uncaught `std::runtime_error` explaining that at most one network can be selected. The equivalent `bitcoind` invocation reports the configuration error and exits with status 1. At this PR’s current head, `8e5b4d1f090a`, [the early `setupChainQSettings` call](https://github.com/bitcoin-core/gui-qml/blob/8e5b4d1f090a32379bb22181bb5c56bba3c7afc2/qml/bitcoin.cpp#L615) still evaluates `gArgs.GetChainTypeString()` before the guarded configuration preview and `InitConfig`. Please catch this early exception and show the normal startup error, with a regression covering conflicting command-line network flags. Reproduced on the merged build, macOS / Qt 6.9.0. The current PR was checked in source; its binary was not runtime-tested.
jarolrod commented 2026-11-11 01:09:56 +00:00 (Migrated from github.com)

One more case for the settings-before-startup ordering: the wizard's choices are written into a data directory that another running node holds, and the lock failure comes afterwards.

To reproduce at eed1f426fcb6:

  1. Run bitcoind on a regtest data directory B that is a full node, and leave it running.
  2. Start the app with no saved directory. In the wizard choose B as the Custom directory, click Reduce storage, and continue to Start.
  3. The app reports Cannot obtain a lock on directory B/regtest. Bitcoin Core is probably already running.

B's settings.json has already been rewritten with "prune": "1907" and "qml_onboarded": true, about 0.05 s after Start and before the lock error. The running node is not disturbed, but what happens next depends on it:

  • If it restarts before its next settings write, it adopts the file. In my run bitcoind came back with pruned=true where it had been a full node.
  • If it writes settings first, for example createwallet with load_on_startup=true, it replaces the file from memory, the keys are gone, and the wizard returns on the next launch.

With bitcoind stopped first, the same clicks start the app normally. A second app instance as the holder gave the same result as bitcoind.

Writing settings.json before the lock is not unusual in itself. Core's InitConfig rewrites the file before locking, and Bitcoin-Qt stores its intro choice before baseInitialize. The gap here is that a changed choice is committed to another node's directory and stays there after the start has been reported as failed.

By source, the order is the same at b4ec1efcec60: FinalizeStartupSettings applies the pending choices before node->baseInitialize() takes the lock (bitcoin.cpp#L688-L705). I have not run this branch. Restoring the settings snapshot when baseInitialize fails, or checking the lock before applying the choices, would cover it.

This is narrow: it needs a held directory, a changed choice and a restart of the holder before its next settings write. Only the storage choice was run; by source any setting changed in the wizard is written the same way.

Reproduced on merged qt6 at eed1f426fcb6, macOS / Qt 6.9, isolated regtest, offscreen and native. The directory was passed to the model with the call the folder dialog makes, and the other steps were clicks through the test bridge. The lock error was read from stderr; the error window was not inspected.

One more case for the settings-before-startup ordering: the wizard's choices are written into a data directory that another running node holds, and the lock failure comes afterwards. To reproduce at `eed1f426fcb6`: 1. Run `bitcoind` on a regtest data directory B that is a full node, and leave it running. 2. Start the app with no saved directory. In the wizard choose B as the Custom directory, click **Reduce storage**, and continue to **Start**. 3. The app reports `Cannot obtain a lock on directory B/regtest. Bitcoin Core is probably already running.` B's `settings.json` has already been rewritten with `"prune": "1907"` and `"qml_onboarded": true`, about 0.05 s after Start and before the lock error. The running node is not disturbed, but what happens next depends on it: - If it restarts before its next settings write, it adopts the file. In my run `bitcoind` came back with `pruned=true` where it had been a full node. - If it writes settings first, for example `createwallet` with `load_on_startup=true`, it replaces the file from memory, the keys are gone, and the wizard returns on the next launch. With `bitcoind` stopped first, the same clicks start the app normally. A second app instance as the holder gave the same result as `bitcoind`. Writing `settings.json` before the lock is not unusual in itself. Core's `InitConfig` rewrites the file before locking, and Bitcoin-Qt stores its intro choice before `baseInitialize`. The gap here is that a changed choice is committed to another node's directory and stays there after the start has been reported as failed. By source, the order is the same at `b4ec1efcec60`: `FinalizeStartupSettings` applies the pending choices before `node->baseInitialize()` takes the lock ([bitcoin.cpp#L688-L705](https://github.com/bitcoin-core/gui-qml/blob/b4ec1efcec60f66d53859ea6deadfa36742aa5a5/qml/bitcoin.cpp#L688-L705)). I have not run this branch. Restoring the settings snapshot when `baseInitialize` fails, or checking the lock before applying the choices, would cover it. This is narrow: it needs a held directory, a changed choice and a restart of the holder before its next settings write. Only the storage choice was run; by source any setting changed in the wizard is written the same way. Reproduced on merged `qt6` at `eed1f426fcb6`, macOS / Qt 6.9, isolated regtest, offscreen and native. The directory was passed to the model with the call the folder dialog makes, and the other steps were clicks through the test bridge. The lock error was read from stderr; the error window was not inspected.
jarolrod (Migrated from github.com) reviewed 2026-11-11 16:27:44 +00:00
jarolrod (Migrated from github.com) left a comment

I ran this branch at b4ec1efcec60 against merged qt6 at eed1f426fcb6 (same Core), using the startup and data-directory cases I had reported earlier.

Fixed on this branch

  • Config step failures. With a bitcoin.conf left inside a redirected data directory, or an unwritable data directory, merged exits 1 with no window and nothing on stderr. This branch reports Core's error and stays running. Through the first-run wizard, merged had already saved qml_onboarded before failing, so every later launch failed silently too; here nothing is saved and the wizard returns on the next launch.
  • A -datadir that does not exist, absolute or relative. Merged aborts on Assertion failed: (base.is_absolute()); this branch reports Specified data directory "…" does not exist.
  • The -resetguisettings backup from #1073. After the reset, settings.json.bak keeps the original prune and dbcache values, and nothing is touched until Start.

Still present

  • Two network flags. -regtest -testnet still aborts before any window with the uncaught std::runtime_error, as in my earlier comment.
  • A data directory another node holds. This comment was a source reading; it holds when run. The held directory's settings.json gains "prune": "1907" and "qml_onboarded": true about 0.04 s after Start, the lock error follows, and the other node comes back pruned after a restart.

Two cases that now end in the wizard with no way forward

  • Network in bitcoin.conf against a launch flag (testnet=1 in the file, -regtest on the command line). Merged aborts. This branch opens the first-run wizard, also for a profile that is already onboarded, with Invalid combination of -regtest, -signet, -testnet, -testnet4 and -chain. Can use at most one. drawn over the Next button. On Storage amount, Next never enables and Store all data reads "Uses about 0GB". The startup error would fit better here.
  • datadir= in bitcoin.conf pointing at a missing folder. The wizard opens, and its Storage location page has Custom checked, the error shown and Next disabled. Clicking Default selects it, but the error stays and Next stays disabled. I did not try choosing another Custom folder.

In both, the error text in the footer overlaps the Back and Next buttons.

I saw no regression against merged in these runs.

Tested on macOS / Qt 6.9, isolated regtest, offscreen, with native runs for the config-failure, two-flag, held-directory, missing--datadir and both wizard cases; the -resetguisettings case was offscreen only. The startup error window has no test hook, so its text is from stderr and I did not see the window itself. Wizard steps were clicks through the test bridge; the held-directory Custom folder was passed with the call the folder dialog makes, and onboarded profiles were set up with -qml_onboarded=1 or a prepared settings.json.

I ran this branch at `b4ec1efcec60` against merged `qt6` at `eed1f426fcb6` (same Core), using the startup and data-directory cases I had reported earlier. **Fixed on this branch** - **Config step failures.** With a `bitcoin.conf` left inside a redirected data directory, or an unwritable data directory, merged exits 1 with no window and nothing on stderr. This branch reports Core's error and stays running. Through the first-run wizard, merged had already saved `qml_onboarded` before failing, so every later launch failed silently too; here nothing is saved and the wizard returns on the next launch. - **A `-datadir` that does not exist**, absolute or relative. Merged aborts on `Assertion failed: (base.is_absolute())`; this branch reports `Specified data directory "…" does not exist.` - **The `-resetguisettings` backup from #1073.** After the reset, `settings.json.bak` keeps the original `prune` and `dbcache` values, and nothing is touched until Start. **Still present** - **Two network flags.** `-regtest -testnet` still aborts before any window with the uncaught `std::runtime_error`, as in [my earlier comment](https://github.com/bitcoin-core/gui-qml/pull/883#issuecomment-6693381839). - **A data directory another node holds.** [This comment](https://github.com/bitcoin-core/gui-qml/pull/883#issuecomment-6783952531) was a source reading; it holds when run. The held directory's `settings.json` gains `"prune": "1907"` and `"qml_onboarded": true` about 0.04 s after Start, the lock error follows, and the other node comes back pruned after a restart. **Two cases that now end in the wizard with no way forward** - **Network in `bitcoin.conf` against a launch flag** (`testnet=1` in the file, `-regtest` on the command line). Merged aborts. This branch opens the first-run wizard, also for a profile that is already onboarded, with `Invalid combination of -regtest, -signet, -testnet, -testnet4 and -chain. Can use at most one.` drawn over the Next button. On Storage amount, Next never enables and Store all data reads "Uses about 0GB". The startup error would fit better here. - **`datadir=` in `bitcoin.conf` pointing at a missing folder.** The wizard opens, and its Storage location page has Custom checked, the error shown and Next disabled. Clicking Default selects it, but the error stays and Next stays disabled. I did not try choosing another Custom folder. In both, the error text in the footer overlaps the Back and Next buttons. I saw no regression against merged in these runs. Tested on macOS / Qt 6.9, isolated regtest, offscreen, with native runs for the config-failure, two-flag, held-directory, missing-`-datadir` and both wizard cases; the `-resetguisettings` case was offscreen only. The startup error window has no test hook, so its text is from stderr and I did not see the window itself. Wizard steps were clicks through the test bridge; the held-directory Custom folder was passed with the call the folder dialog makes, and onboarded profiles were set up with `-qml_onboarded=1` or a prepared `settings.json`.
jarolrod (Migrated from github.com) reviewed 2026-11-12 04:27:00 +00:00
jarolrod (Migrated from github.com) left a comment

I re-ran my cases at 976e00e4826c and read through the whole change. Everything my review above listed as open is fixed, and the direction is right.

Three things introduced on this branch should be fixed before it merges. Each has an inline comment marked To fix before merge: the early return that keeps -choosedatadir and -resetguisettings from reaching the wizard, the network folder for a custom signet, and the legacy store that cannot be written. Each is confirmed by running it on this head and on merged qt6 at eed1f426fcb6. The other inline comments are smaller and not blocking.

Not tied to a line

  • The branch does not build commit by commit. Through d384f906f6, onboarding_settings.cpp calls ShouldShowDataDirChooser(preview_args) with one argument against a two-argument declaration, and a59a0c8d41 is the first commit where that call is gone. By source; I did not compile each commit.
  • The missing-folder startup error does not say the path comes from bitcoin.conf. bitcoind prefixes it with Error reading configuration file:.

Already on qt6, not asking for these here

  • With txindex=1 set, choosing Reduce storage in the wizard saves prune and qml_onboarded, then fails with Prune mode is incompatible with -txindex. Every later launch repeats the error with no wizard.
  • With -datadir=X, Storage location accepts another folder and shows it with no error, and the node then runs in X.
  • A chain option inside a network section ([regtest], vbparams=bogus) shows only The selected directory could not be checked.
  • On a newly created Storage location page, Next can be enabled beside a footer error, and Start can be enabled and ignore clicks.

The first two were re-run at this head; the other two at a952c1616a12.

Confirmed at this head

  • A missing -blocksdir reports Specified blocks directory "…" does not exist. from a writable or a read-only working directory and leaves no .lock behind. At a952c1616a12 the early lock created a .lock in the working directory, or failed with Cannot write to directory ''. The wizard also no longer saves prune and qml_onboarded before that error.
  • An existing data directory under a parent that is not writable is accepted, whether it comes from -datadir, from datadir= or from the saved selection.
  • A relative -conf is read from the folder chosen in the wizard, and the preview agrees with what Start does.
  • The four cases from my first review are still fixed: two network flags, a network in bitcoin.conf against a launch flag, datadir= pointing at a missing folder, and a data directory another node holds. So are the config-step failures, a -datadir that does not exist and the -resetguisettings backup.
  • An ordinary first run (Default, a new Custom folder, an existing empty folder) completes, a fresh folder with no blocks directory starts, and an onboarded profile starts with no wizard.

Run at a952c1616a12 against b4ec1efcec60, and not re-run here: -choosedatadir with an unreadable settings.json now opens the wizard and leaves the file untouched; an external -settings file is reflected in the wizard's preview, where before the wizard showed Store all data and the node then started pruned; and a quit request during settings recovery on the wizard path now exits 0. The footer error no longer overlaps Back and Next.

I could not test two changes: recovering an unreadable settings.json no longer counting as a settings reset, which needs the Reset answer, and the port-mapping choice.

Tested on macOS / Qt 6.9, isolated regtest, plus an offline custom signet. The escape-flag and blocks-directory cases and the cases from my first review ran offscreen and in a native window; the rest ran offscreen only. The startup error window has no test hook in the app, so its text is from stderr and I did not see the window itself. Wizard steps were clicks through the test bridge, Custom folders were passed with the call the folder dialog makes, and onboarded profiles and saved folders were set up with -qml_onboarded=1 or prepared settings files. The quit request was the test bridge's in-process quit event, not Cmd+Q. At a952c1616a12, 770 unit and integration tests passed locally and one failed because I skipped a class it depends on; I did not run the QML test binary or eight unit test classes, which use the native settings store without a redirect.

I re-ran my cases at `976e00e4826c` and read through the whole change. Everything my review above listed as open is fixed, and the direction is right. Three things introduced on this branch should be fixed before it merges. Each has an inline comment marked **To fix before merge**: the early return that keeps `-choosedatadir` and `-resetguisettings` from reaching the wizard, the network folder for a custom signet, and the legacy store that cannot be written. Each is confirmed by running it on this head and on merged `qt6` at `eed1f426fcb6`. The other inline comments are smaller and not blocking. **Not tied to a line** - The branch does not build commit by commit. Through `d384f906f6`, `onboarding_settings.cpp` calls `ShouldShowDataDirChooser(preview_args)` with one argument against a two-argument declaration, and `a59a0c8d41` is the first commit where that call is gone. By source; I did not compile each commit. - The missing-folder startup error does not say the path comes from `bitcoin.conf`. `bitcoind` prefixes it with `Error reading configuration file:`. **Already on `qt6`, not asking for these here** - With `txindex=1` set, choosing Reduce storage in the wizard saves `prune` and `qml_onboarded`, then fails with `Prune mode is incompatible with -txindex.` Every later launch repeats the error with no wizard. - With `-datadir=X`, Storage location accepts another folder and shows it with no error, and the node then runs in X. - A chain option inside a network section (`[regtest]`, `vbparams=bogus`) shows only `The selected directory could not be checked.` - On a newly created Storage location page, Next can be enabled beside a footer error, and Start can be enabled and ignore clicks. The first two were re-run at this head; the other two at `a952c1616a12`. **Confirmed at this head** - **A missing `-blocksdir`** reports `Specified blocks directory "…" does not exist.` from a writable or a read-only working directory and leaves no `.lock` behind. At `a952c1616a12` the early lock created a `.lock` in the working directory, or failed with `Cannot write to directory ''`. The wizard also no longer saves `prune` and `qml_onboarded` before that error. - **An existing data directory under a parent that is not writable** is accepted, whether it comes from `-datadir`, from `datadir=` or from the saved selection. - **A relative `-conf`** is read from the folder chosen in the wizard, and the preview agrees with what Start does. - **The four cases from my first review** are still fixed: two network flags, a network in `bitcoin.conf` against a launch flag, `datadir=` pointing at a missing folder, and a data directory another node holds. So are the config-step failures, a `-datadir` that does not exist and the `-resetguisettings` backup. - An ordinary first run (Default, a new Custom folder, an existing empty folder) completes, a fresh folder with no `blocks` directory starts, and an onboarded profile starts with no wizard. Run at `a952c1616a12` against `b4ec1efcec60`, and not re-run here: `-choosedatadir` with an unreadable `settings.json` now opens the wizard and leaves the file untouched; an external `-settings` file is reflected in the wizard's preview, where before the wizard showed Store all data and the node then started pruned; and a quit request during settings recovery on the wizard path now exits 0. The footer error no longer overlaps Back and Next. I could not test two changes: recovering an unreadable `settings.json` no longer counting as a settings reset, which needs the Reset answer, and the port-mapping choice. Tested on macOS / Qt 6.9, isolated regtest, plus an offline custom signet. The escape-flag and blocks-directory cases and the cases from my first review ran offscreen and in a native window; the rest ran offscreen only. The startup error window has no test hook in the app, so its text is from stderr and I did not see the window itself. Wizard steps were clicks through the test bridge, Custom folders were passed with the call the folder dialog makes, and onboarded profiles and saved folders were set up with `-qml_onboarded=1` or prepared settings files. The quit request was the test bridge's in-process quit event, not Cmd+Q. At `a952c1616a12`, 770 unit and integration tests passed locally and one failed because I skipped a class it depends on; I did not run the QML test binary or eight unit test classes, which use the native settings store without a redirect.
Lines 432-435
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

To fix before merge. With -choosedatadir or -resetguisettings, this returns before the wizard can open.

With a Custom folder saved by the app and an unparsable line in its bitcoin.conf (I used -prune=550), this head reports the parse error with either flag and opens no wizard. b4ec1efcec60 and qt6 open the wizard, and another folder can be chosen and started. Those two flags are the way out of a broken saved folder, so I think the startup error should be kept for a launch without them.

Run at this head, offscreen and in a native window.

**To fix before merge.** With `-choosedatadir` or `-resetguisettings`, this returns before the wizard can open. With a Custom folder saved by the app and an unparsable line in its `bitcoin.conf` (I used `-prune=550`), this head reports the parse error with either flag and opens no wizard. `b4ec1efcec60` and `qt6` open the wizard, and another folder can be chosen and started. Those two flags are the way out of a broken saved folder, so I think the startup error should be kept for a launch without them. Run at this head, offscreen and in a native window.
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

Not blocking. GetBlocksDirPath() also creates the directory, and it throws if <datadir>/regtest/blocks is a regular file or a dangling symlink, for example a link to a drive that is not mounted. On an ordinary start nothing catches that here, so the app aborts on the uncaught filesystem_error with no window.

qt6 aborts the same way from a later line, so this is not new, but this check is now where it throws. bitcoind exits with a message.

Not blocking. `GetBlocksDirPath()` also creates the directory, and it throws if `<datadir>/regtest/blocks` is a regular file or a dangling symlink, for example a link to a drive that is not mounted. On an ordinary start nothing catches that here, so the app aborts on the uncaught `filesystem_error` with no window. `qt6` aborts the same way from a later line, so this is not new, but this check is now where it throws. `bitcoind` exits with a message.
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:01 +00:00

87de04b7b4 is titled "Support folder dialog with Qt 6.2", but it adds only these two lines and a test against the mock dialog, and AppFolderDialog.qml is unchanged from qt6. Is the title still right?

`87de04b7b4` is titled "Support folder dialog with Qt 6.2", but it adds only these two lines and a test against the mock dialog, and `AppFolderDialog.qml` is unchanged from `qt6`. Is the title still right?
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

Will lupdate pick these up? The comment sits in front of DataDirTr(), which wraps QCoreApplication::translate, and I don't think lupdate treats a wrapper as a translation call, so the string and its comment may not be extracted. By source only; I did not run lupdate.

Will `lupdate` pick these up? The comment sits in front of `DataDirTr()`, which wraps `QCoreApplication::translate`, and I don't think `lupdate` treats a wrapper as a translation call, so the string and its comment may not be extracted. By source only; I did not run `lupdate`.
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

To fix before merge. If the Bitcoin-Qt settings file cannot be written, this fails the whole startup.

With the legacy file read-only, or its folder, finishing the wizard and -resetguisettings both stop with Legacy GUI settings migration failed for … Legacy settings rollback failed for … on every attempt, and no node starts. qt6 completes and leaves the file untouched. I think a legacy store that cannot be tidied should not stop the node from starting.

Run with INI files in a test settings directory only. On macOS the legacy reader opens a different preference domain (#1076), so this does not arise there today.

**To fix before merge.** If the Bitcoin-Qt settings file cannot be written, this fails the whole startup. With the legacy file read-only, or its folder, finishing the wizard and `-resetguisettings` both stop with `Legacy GUI settings migration failed for … Legacy settings rollback failed for …` on every attempt, and no node starts. `qt6` completes and leaves the file untouched. I think a legacy store that cannot be tidied should not stop the node from starting. Run with INI files in a test settings directory only. On macOS the legacy reader opens a different preference domain (#1076), so this does not arise there today.
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

Not blocking. With -datadir= given an empty value and a new Custom folder chosen, the first Start ends with this message although nothing changed while onboarding was open. A retry with the same folder then runs the node in the default folder with no message, which is what qt6 does on the first attempt.

Not blocking. With `-datadir=` given an empty value and a new Custom folder chosen, the first Start ends with this message although nothing changed while onboarding was open. A retry with the same folder then runs the node in the default folder with no message, which is what `qt6` does on the first attempt.
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

To fix before merge. This maps the chain name to a folder itself, and a custom-challenge signet does not use signet/.

A first run with -signet -signetchallenge=51 creates signet/wallets and nothing else in signet/, while the real signet_54d26fbd/ gets no wallets folder. qt6 and bitcoind create signet_54d26fbd/wallets. Asking Core for the network directory would avoid keeping a second table here.

Smaller, same lines: a wizard Start that then fails at the config step leaves the empty wallets folders behind (seen at a952c1616a12).

**To fix before merge.** This maps the chain name to a folder itself, and a custom-challenge signet does not use `signet/`. A first run with `-signet -signetchallenge=51` creates `signet/wallets` and nothing else in `signet/`, while the real `signet_54d26fbd/` gets no `wallets` folder. `qt6` and `bitcoind` create `signet_54d26fbd/wallets`. Asking Core for the network directory would avoid keeping a second table here. Smaller, same lines: a wizard Start that then fails at the config step leaves the empty `wallets` folders behind (seen at `a952c1616a12`).
Lines 1064-1065
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

Not blocking. status.active_data_dir has been through NormalizeLocalPath, which trims, so for a data directory whose name really ends in a space this tests a different path.

A profile onboarded on qt6 gets the wizard again until it is finished once, and Start then creates a sibling folder with the trimmed name, holding only wallets folders.

Not blocking. `status.active_data_dir` has been through `NormalizeLocalPath`, which trims, so for a data directory whose name really ends in a space this tests a different path. A profile onboarded on `qt6` gets the wizard again until it is finished once, and Start then creates a sibling folder with the trimmed name, holding only `wallets` folders.
Lines 1164-1167
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

Not blocking. When the external -settings file is unreadable, this error shows on every wizard page and Next stays disabled whichever folder is chosen, since the path does not depend on the folder. The wizard offers no Reset, so the only way on is to quit and fix the file. At b4ec1efcec60 the same set-up went on to the Reset / Abort question, going by its stderr.

There is a similar dead end with -choosedatadir and an unreadable settings.json when the user keeps that folder: Next is disabled on Storage amount.

Seen at a952c1616a12; not re-run at this head.

Not blocking. When the external `-settings` file is unreadable, this error shows on every wizard page and Next stays disabled whichever folder is chosen, since the path does not depend on the folder. The wizard offers no Reset, so the only way on is to quit and fix the file. At `b4ec1efcec60` the same set-up went on to the Reset / Abort question, going by its stderr. There is a similar dead end with `-choosedatadir` and an unreadable `settings.json` when the user keeps that folder: Next is disabled on Storage amount. Seen at `a952c1616a12`; not re-run at this head.
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:00 +00:00

Cosmetic. With a three-line error, the reserved space shortens the page enough that the second copy of the message, under the Custom card on Storage location, is cut off after its first line. The footer copy is complete. Seen at the default window size at a952c1616a12.

Cosmetic. With a three-line error, the reserved space shortens the page enough that the second copy of the message, under the Custom card on Storage location, is cut off after its first line. The footer copy is complete. Seen at the default window size at `a952c1616a12`.
jarolrod (Migrated from github.com) commented 2026-11-12 04:27:01 +00:00

No CI job builds this target. It needs BUILD_APP_TESTS and ENABLE_TEST_AUTOMATION together, and the workflows set one or the other.

At a952c1616a12 I built it locally on macOS and its four cases passed, on minimal and in a native window. I have not built the two cases added since.

No CI job builds this target. It needs `BUILD_APP_TESTS` and `ENABLE_TEST_AUTOMATION` together, and the workflows set one or the other. At `a952c1616a12` I built it locally on macOS and its four cases passed, on `minimal` and in a native window. I have not built the two cases added since.
johnny9 (Migrated from github.com) reviewed 2026-11-26 09:46:57 +00:00
Lines 471-474
johnny9 (Migrated from github.com) commented 2026-11-26 09:46:57 +00:00

Fixed in e91c5b6686. With -choosedatadir or -resetguisettings, a saved folder whose profile cannot be read now opens the wizard, so another folder can be chosen. A launch without either flag still reports the error. A unit test covers both flags with an unparsable bitcoin.conf.

Fixed in e91c5b6686e. With `-choosedatadir` or `-resetguisettings`, a saved folder whose profile cannot be read now opens the wizard, so another folder can be chosen. A launch without either flag still reports the error. A unit test covers both flags with an unparsable `bitcoin.conf`.
johnny9 (Migrated from github.com) reviewed 2026-11-26 09:47:00 +00:00
johnny9 (Migrated from github.com) commented 2026-11-26 09:47:00 +00:00

Fixed in e91c5b6686. The preview asks Core for the network directory name (CreateBaseChainParams(...)->DataDir()). -signet -signetchallenge=51 now creates signet_<hash>/wallets and no signet/ folder. A unit test covers the custom signet. Empty wallets folders left after a failed config step are not changed here.

Fixed in e91c5b6686e. The preview asks Core for the network directory name (`CreateBaseChainParams(...)->DataDir()`). `-signet -signetchallenge=51` now creates `signet_<hash>/wallets` and no `signet/` folder. A unit test covers the custom signet. Empty `wallets` folders left after a failed config step are not changed here.
johnny9 (Migrated from github.com) reviewed 2026-11-26 09:47:04 +00:00
johnny9 (Migrated from github.com) commented 2026-11-26 09:47:04 +00:00

Fixed in 4a4c99fb92. A legacy store that cannot be cleaned up is only logged now, for the wizard and for -resetguisettings as well. The Core and GUI values are already written, and the old keys never override them. The read-only store test now expects startup to continue with the wizard's choices saved and the legacy file unchanged.

Fixed in 4a4c99fb927. A legacy store that cannot be cleaned up is only logged now, for the wizard and for `-resetguisettings` as well. The Core and GUI values are already written, and the old keys never override them. The read-only store test now expects startup to continue with the wizard's choices saved and the legacy file unchanged.
johnny9 (Migrated from github.com) reviewed 2026-11-26 09:47:07 +00:00
johnny9 (Migrated from github.com) commented 2026-11-26 09:47:07 +00:00

Fixed in 38ddfedfe6. The blocks directory check catches fs::filesystem_error and reports it through InitError, so the app exits with a message instead of aborting.

Fixed in 38ddfedfe69. The blocks directory check catches `fs::filesystem_error` and reports it through `InitError`, so the app exits with a message instead of aborting.
johnny9 (Migrated from github.com) reviewed 2026-11-26 09:47:10 +00:00
johnny9 (Migrated from github.com) commented 2026-11-26 09:47:10 +00:00

Confirmed: lupdate skipped the strings behind DataDirTr(). Fixed in 03c0eba544 by calling QCoreApplication::translate("DataDirectory", ...) directly. lupdate on qml/datadir.cpp now extracts the 14 strings with their translator comments.

Confirmed: `lupdate` skipped the strings behind `DataDirTr()`. Fixed in 03c0eba544e by calling `QCoreApplication::translate("DataDirectory", ...)` directly. `lupdate` on `qml/datadir.cpp` now extracts the 14 strings with their translator comments.
johnny9 (Migrated from github.com) reviewed 2026-11-26 09:47:13 +00:00
johnny9 (Migrated from github.com) commented 2026-11-26 09:47:13 +00:00

Fixed in e91c5b6686. The GUI functional workflow now configures with both BUILD_APP_TESTS and ENABLE_TEST_AUTOMATION, builds bitcoinqml_startup_error_tests, and runs it under xvfb. --no-tests=error makes an empty selection fail.

Fixed in e91c5b6686e. The GUI functional workflow now configures with both `BUILD_APP_TESTS` and `ENABLE_TEST_AUTOMATION`, builds `bitcoinqml_startup_error_tests`, and runs it under xvfb. `--no-tests=error` makes an empty selection fail.
johnny9 (Migrated from github.com) reviewed 2026-11-26 09:47:16 +00:00
johnny9 (Migrated from github.com) commented 2026-11-26 09:47:16 +00:00

The title was wrong. The commit is now b1211a991a, "qml: register AppSettings and AppFolderDialog in the controls module", with a body that describes the qmldir entries and the mock contract test.

The title was wrong. The commit is now b1211a991a5, "qml: register AppSettings and AppFolderDialog in the controls module", with a body that describes the qmldir entries and the mock contract test.
Sign in to join this conversation.
No description provided.