<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
I've just build latest release on my Linux machine and tried to create wallet then via bitcoin-wallet :
/usr/local/bin/bitcoin-wallet -datadir=/bit/data -wallet=testWal -debug=3 create
seems everything ok :
2019-05-07T19:42:11Z BerkeleyEnvironment::Open: LogDir=/bit/data/testWal/database ErrorFile=/bit/data/testWal/db.log 2019-05-07T19:42:11Z [testWal] nFileVersion = 189900 2019-05-07T19:42:11Z [testWal] Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total. Unknown wallet records: 0 Topping up keypool... 2019-05-07T19:42:13Z [testWal] keypool added 2000 keys (1000 internal), size=2000 (1000 internal) Wallet info Encrypted: no HD (hd seed available): yes Keypool Size: 2000 Transactions: 0 Address Book: 0 2019-05-07T19:42:14Z [testWal] Releasing wallet
<!--- What behavior did you expect? -->
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
Run bitcoin-qt after to verify that actions and encrypt the wallet via GUI. The wallet has been created but when I tried to encrypt it it's hanging on that step and don't respond awhile:

After restart the "Encrypt wallet" window still freeze at desktop:

When I fetch wallet info /usr/local/bin/bitcoin-wallet -datadir=/bit/data -wallet=testWal -debug=3 info
it returns :
2019-05-07T19:49:06Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010) 2019-05-07T19:49:06Z Using wallet /bit/data/testWal 2019-05-07T19:49:06Z BerkeleyEnvironment::Open: LogDir=/bit/data/testWal/database ErrorFile=/bit/data/testWal/db.log 2019-05-07T19:49:07Z BerkeleyEnvironment::Open: LogDir=/bit/data/testWal/database ErrorFile=/bit/data/testWal/db.log 2019-05-07T19:49:07Z [testWal] nFileVersion = 189900 2019-05-07T19:49:07Z [testWal] Keys: 2001 plaintext, 0 encrypted, 2001 w/ metadata, 2001 total. Unknown wallet records: 0 Wallet info Encrypted: no HD (hd seed available): yes Keypool Size: 2000 Transactions: 0 Address Book: 0 2019-05-07T19:49:07Z [testWal] Releasing wallet
However in GUI : Settings --> "Encrypt Wallet" checkbox dimmed. Is it mean that wallet encrypted yet, right ? I think it is.
Also I've backed up that wallet after encrypt it. Backup file looks like actually encrypted.
"Change Passphrase" also available so I assume the wallet actually has been encrypted.
But why this command : /usr/local/bin/bitcoin-wallet -datadir=/bit/data -wallet=testWal -debug=3 info
returns Encrypted : no ?
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
- Create wallet via bitcoin-wallet CLI tool.
- Run bitcoin-qt -> encrypt newly created wallet via GUI.
- Get wallet info via bitcoin-wallet CLI tool.
In my case information (form GUI & CLI tool) does not match.
- Bitcoin Core version v0.18.99.0-fb8e92c3f (64-bit)
- This program uses Qt version 5.9.5.
- Linux 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
- ubuntu.18.04, KDE