Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Note: The issue is present in testnet too, not only regtest.
The GUI crashes in regtest immediately on start. It did work once initially but has been crashing since, tried quite a few times.
Expected behaviour
The GUI should not crash in regtest, just like it doesn’t in main or test environments.
Steps to reproduce
Regtest conf file to use:
0➜ Bitcoin cat $BITCOIN_DATA_DIR/bitcoin-reg.conf
1regtest=1
2[regtest]
3port=28333
4rpcport=28332
5rpcuser=test
6rpcpassword=test
7bind=127.0.0.1:28334
8bind=127.0.0.1:28335=onion
New data directory setup:
0➜ ~ mkdir /tmp/gui-node-1
1➜ ~ cp $BITCOIN_DATA_DIR/bitcoin-reg.conf /tmp/gui-node-1
2➜ ~ cd /tmp/gui-node-1
3➜ gui-node-1 l
4total 8
5drwxr-xr-x 3 rkrux wheel 96B Dec 19 15:48 .
6drwxrwxrwt 10 root wheel 320B Dec 19 15:46 ..
7-rw-r--r-- 1 rkrux wheel 123B Dec 19 15:48 bitcoin-reg.conf
Run GUI (bitcoin-qt): Works first time, no wallet right now.
0➜ ~ $BITCOIN_BUILD_BIN_DIR/bitcoin-qt -datadir=/tmp/gui-node-1 -conf=/tmp/gui-node-1/bitcoin-reg.conf
Create a wallet within the GUI (wallet name eg: gui-node-wallet) and close the GUI.
Run GUI (bitcoin-qt) again - fails now with the below error:
0➜ ~ $BITCOIN_BUILD_BIN_DIR/bitcoin-qt -datadir=/tmp/gui-node-1 -conf=/tmp/gui-node-1/bitcoin-reg.conf
1Error: SQLiteDatabase: Failed to configure serialized threading mode: bad parameter or other API misuse
Data directory state now:
0➜ gui-node-1 l /tmp/gui-node-1
1total 8
2drwxr-xr-x 4 rkrux wheel 128B Dec 19 16:08 .
3drwxrwxrwt 10 root wheel 320B Dec 19 16:07 ..
4-rw-r--r-- 1 rkrux wheel 123B Dec 19 16:07 bitcoin-reg.conf
5drwx------ 13 rkrux wheel 416B Dec 19 16:11 regtest
6➜ gui-node-1 l /tmp/gui-node-1/regtest/
7total 600
8drwx------ 13 rkrux wheel 416B Dec 19 16:11 .
9drwxr-xr-x 4 rkrux wheel 128B Dec 19 16:08 ..
10-rw------- 1 rkrux wheel 0B Dec 19 16:08 .lock
11-rw------- 1 rkrux wheel 37B Dec 19 16:11 anchors.dat
12-rw------- 1 rkrux wheel 221B Dec 19 16:08 banlist.json
13drwx------ 7 rkrux wheel 224B Dec 19 16:08 blocks
14drwx------ 7 rkrux wheel 224B Dec 19 16:10 chainstate
15-rw------- 1 rkrux wheel 18K Dec 19 16:11 debug.log
16-rw------- 1 rkrux wheel 242K Dec 19 16:11 fee_estimates.dat
17-rw------- 1 rkrux wheel 27B Dec 19 16:11 mempool.dat
18-rw------- 1 rkrux wheel 4.1K Dec 19 16:11 peers.dat
19-rw------- 1 rkrux wheel 242B Dec 19 16:11 settings.json
20drwx------ 3 rkrux wheel 96B Dec 19 16:11 wallets
21➜ gui-node-1 l /tmp/gui-node-1/regtest/wallets
22total 0
23drwx------ 3 rkrux wheel 96B Dec 19 16:11 .
24drwx------ 13 rkrux wheel 416B Dec 19 16:11 ..
25drwx------ 3 rkrux wheel 96B Dec 19 16:11 gui-node-wallet
26➜ gui-node-1 l /tmp/gui-node-1/regtest/wallets/gui-node-wallet
27total 48
28drwx------ 3 rkrux wheel 96B Dec 19 16:11 .
29drwx------ 3 rkrux wheel 96B Dec 19 16:11 ..
30-rw------- 1 rkrux wheel 24K Dec 19 16:11 wallet.dat
Relevant log output
02025-12-19T10:48:12Z Using data directory /tmp/gui-node-1/regtest
12025-12-19T10:48:12Z Config file: /tmp/gui-node-1/bitcoin-reg.conf
22025-12-19T10:48:12Z Config file arg: regtest="1"
32025-12-19T10:48:12Z Config file arg: [regtest] bind="127.0.0.1:28334"
42025-12-19T10:48:12Z Config file arg: [regtest] bind="127.0.0.1:28335=onion"
52025-12-19T10:48:12Z Config file arg: [regtest] port="28333"
62025-12-19T10:48:12Z Config file arg: [regtest] rpcpassword=****
72025-12-19T10:48:12Z Config file arg: [regtest] rpcport="28332"
82025-12-19T10:48:12Z Config file arg: [regtest] rpcuser=****
92025-12-19T10:48:12Z Setting file arg: wallet = ["gui-node-wallet"]
102025-12-19T10:48:12Z Command-line arg: conf="/tmp/gui-node-1/bitcoin-reg.conf"
112025-12-19T10:48:12Z Command-line arg: datadir="/tmp/gui-node-1"
122025-12-19T10:48:12Z Using at most 125 automatic connections (1024 file descriptors available)
132025-12-19T10:48:12Z scheduler thread start
142025-12-19T10:48:12Z Using wallet directory /tmp/gui-node-1/regtest/wallets
152025-12-19T10:48:12Z Using SQLite Version 3.43.2
162025-12-19T10:48:12Z init message: Verifying wallet(s)…
172025-12-19T10:48:12Z [warning] SQLite Error. Code: 21. Message: misuse at line 185687 of [1b37c146ee]
182025-12-19T10:48:12Z [error] SQLiteDatabase: Failed to configure serialized threading mode: bad parameter or other API misuse
19
202025-12-19T10:48:14Z Shutdown in progress...
212025-12-19T10:48:14Z scheduler thread exit
222025-12-19T10:48:14Z Shutdown done
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master@13891a8a685d255cb13dd5018e3d5ccc18b07c34
Operating system and version
MacOS Sequoia (15.4)
Machine specifications
No response