v22.0 wallet freezes on Mac OS Ventura on arm64 #26400

issue cryptodc1 openend this issue on October 27, 2022
  1. cryptodc1 commented at 12:40 pm on October 27, 2022: none

    I upgraded to the newest Mac OS Ventura. The Bitcoin Core application was deleted automatically from my computer. I downloaded Bitcoin core again fro my Mac. and when I tried to open Bitcoin core it has been stuck on Verifying Wallet(s) for over an hour.

    Expected behavior

    Actual behavior

    To reproduce

    System information

  2. cryptodc1 added the label Bug on Oct 27, 2022
  3. hebasto commented at 12:44 pm on October 27, 2022: member

    Intel or Apple Silicon?

    What is the content of your debug.log file?

  4. hebasto added the label macOS on Oct 27, 2022
  5. cryptodc1 commented at 12:57 pm on October 27, 2022: none
    M2 Chip
  6. cryptodc1 commented at 1:24 pm on October 27, 2022: none
  7. aureleoules commented at 1:41 pm on October 27, 2022: member

    Flushing block file to disk failed. This is likely the result of an I/O error.

    Do you have enough disk space?

  8. hebasto commented at 1:41 pm on October 27, 2022: member

    @cryptodc1

    Bitcoin Core v22.0 was built for x86_64 architecture only, which means your macOS uses Rosetta Translation Environment to run it on Apple silicon hardware.

    Perhaps, macOS Venture somehow broke this setup.

    Suggesting to use Bitcoin Core v23+ built specifically for arm64. For example, https://bitcoincore.org/bin/bitcoin-core-23.0/bitcoin-23.0-arm64-apple-darwin.dmg

  9. Sjors commented at 1:43 pm on October 27, 2022: member

    Fwiw my v23.0 and v24.0rc2 installations were not touched by the upgrade.

    But I’ve seen macOS spontaneously delete Bitcoin Core on earlier upgrades (it leaves the data directory and wallet intact).

    From your log I can see that you were using v22.0 before the macOS upgrade, as well as after.

    I think we can narrow the issue title down a bit, based on what @hebasto found, e.g. “v22.0 wallet freezes on Ventura on arm64”?

    Upgrading to v23+ seems worth a try, but please backup ~/Library/Application Support/Bitcoin/wallets first (and ~/wallet.dat).

  10. hebasto commented at 1:48 pm on October 27, 2022: member
    Tbh, I doubt if it’s worth to put efforts into fixing a configuration like “macOS Ventura, M2 + Rosetta + Bitcoin Core v22.0 x86_64”, especially when we have release builds specifically for arm64.
  11. cryptodc1 commented at 1:49 pm on October 27, 2022: none
    I just used version v23 but that had the same issue keeps saying “Verifying Wallet(s)”
  12. cryptodc1 commented at 1:55 pm on October 27, 2022: none
  13. cryptodc1 commented at 1:59 pm on October 27, 2022: none

    Flushing block file to disk failed. This is likely the result of an I/O error.

    Do you have enough disk space?

    YES i do

  14. cryptodc1 commented at 2:00 pm on October 27, 2022: none

    @cryptodc1

    Bitcoin Core v22.0 was built for x86_64 architecture only, which means your macOS uses Rosetta Translation Environment to run it on Apple silicon hardware.

    Perhaps, macOS Venture somehow broke this setup.

    Suggesting to use Bitcoin Core v23+ built specifically for arm64. For example, https://bitcoincore.org/bin/bitcoin-core-23.0/bitcoin-23.0-arm64-apple-darwin.dmg

    I just used version v23 but that had the same issue keeps saying “Verifying Wallet(s)”

  15. cryptodc1 renamed this:
    BITCOIN core not working with newest Mac OS (Ventura)
    v22.0 wallet freezes on Mac OS Ventura on arm64
    on Oct 27, 2022
  16. Sjors commented at 2:03 pm on October 27, 2022: member

    @cryptodc1 can you start from a Terminal using the -nowallet option, to see if it’s only the wallet loading that’s stuck?

    0/Applications/Bitcoin\ Core.app/Contents/MacOS/Bitcoin-Qt -nowallet
    

    And if that works, try loading your wallet(s) one at a time from the “File -> Open wallet” menu. In particular, it’s interesting to know if it’s a Sqlite (descriptor) or BerkeleyDB (legacy) wallet that gets stuck.

  17. cryptodc1 commented at 2:05 pm on October 27, 2022: none

    @cryptodc1 can you start from a Terminal using the -nowallet option, to see if it’s only the wallet loading that’s stuck?

    0/Applications/Bitcoin\ Core.app/Contents/MacOS/Bitcoin-Qt -nowallet
    

    This is the response in terminal app when I ran the script you told me: -bash: /Applications/Bitcoin Core.app/Contents/MacOS/Bitcoin-Qt: No such file or directory

  18. Sjors commented at 2:06 pm on October 27, 2022: member
    Note the \ in the path, but maybe it’s installed in a slightly different place (try /Applications/Bit and then tab to auto complete.
  19. cryptodc1 commented at 2:12 pm on October 27, 2022: none

    Note the \ in the path, but maybe it’s installed in a slightly different place (try /Applications/Bit and then tab to auto complete.

    I appreciate your help . I am not a computer expert and I am having a difficult time following you

  20. cryptodc1 commented at 2:13 pm on October 27, 2022: none

    @cryptodc1 can you start from a Terminal using the -nowallet option, to see if it’s only the wallet loading that’s stuck?

    0/Applications/Bitcoin\ Core.app/Contents/MacOS/Bitcoin-Qt -nowallet
    

    And if that works, try loading your wallet(s) one at a time from the “File -> Open wallet” menu. In particular, it’s interesting to know if it’s a Sqlite (descriptor) or BerkeleyDB (legacy) wallet that gets stuck.

    The “Open Wallet” under File is greyed out

  21. Sjors commented at 2:17 pm on October 27, 2022: member

    Odd. Try Command + T to open the Console window and then type: listwalletdir. Don’t copy the result, but just let us know if it shows a list of wallets or not.

    If it does, then you can load a wallet like so: loadwallet NAME

  22. cryptodc1 commented at 2:22 pm on October 27, 2022: none

    Odd. Try Command + T to open the Console window and then type: listwalletdir. Don’t copy the result, but just let us know if it shows a list of wallets or not.

    If it does, then you can load a wallet like so: loadwallet NAME

    This is the console window that opens but does not allow me to type anywhere

  23. Sjors commented at 2:27 pm on October 27, 2022: member
    Normally you can type in the bottom field next to the >. If that doesn’t work, that’s another odd bug.
  24. cryptodc1 commented at 2:29 pm on October 27, 2022: none

    Odd. Try Command + T to open the Console window and then type: listwalletdir. Don’t copy the result, but just let us know if it shows a list of wallets or not. If it does, then you can load a wallet like so: loadwallet NAME

    This is the console window that opens but does not allow me to type anywhere

    It will not allow me to type in the box at all; I cannot write any command in the command box

  25. cryptodc1 commented at 2:34 pm on October 27, 2022: none

    Normally you can type in the bottom field next to the >. If that doesn’t work, that’s another odd bug.

    yes. I tried to type there and nothing happens. There is not a flashing cursor.

  26. cryptodc1 commented at 3:01 am on October 28, 2022: none

    Tbh, I doubt if it’s worth to put efforts into fixing a configuration like “macOS Ventura, M2 + Rosetta + Bitcoin Core v22.0 x86_64”, especially when we have release builds specifically for arm64.

    Thank you for your assistance. However, I tried your suggestion and still no success.

  27. hebasto added the label Wallet on Oct 28, 2022
  28. hebasto commented at 8:34 am on October 28, 2022: member

    @cryptodc1 can you start from a Terminal using the -nowallet option, to see if it’s only the wallet loading that’s stuck?

    0/Applications/Bitcoin\ Core.app/Contents/MacOS/Bitcoin-Qt -nowallet
    

    And if that works, try loading your wallet(s) one at a time from the “File -> Open wallet” menu. In particular, it’s interesting to know if it’s a Sqlite (descriptor) or BerkeleyDB (legacy) wallet that gets stuck.

    FWIW, on my system (mini M1 + macOS Ventura) the path to the executable binary is as follows:

    0% /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
    
  29. cryptodc1 commented at 10:41 am on October 28, 2022: none

    @cryptodc1 can you start from a Terminal using the -nowallet option, to see if it’s only the wallet loading that’s stuck?

    0/Applications/Bitcoin\ Core.app/Contents/MacOS/Bitcoin-Qt -nowallet
    

    And if that works, try loading your wallet(s) one at a time from the “File -> Open wallet” menu. In particular, it’s interesting to know if it’s a Sqlite (descriptor) or BerkeleyDB (legacy) wallet that gets stuck.

    FWIW, on my system (mini M1 + macOS Ventura) the path to the executable binary is as follows:

    0% /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
    

    What version of Bitcoincore are you using? I tried to reinstall a fresh bitcoin core app on my MacBook Air M2 Ventura and after about 20 minutes of downloading the blocks the Bitcoin core crashed saying “fatal error”. I tried several times and got the same result each time. This happened with both V22 and V23.

  30. hebasto commented at 10:49 am on October 28, 2022: member

    What version of Bitcoincore are you using?

    It is v23.0 right now. Also testing v24.0. My hardware is mac mini M1.

    I tried to reinstall a fresh bitcoin core app on my MacBook Air M2 Ventura and after about 20 minutes of downloading the blocks the Bitcoin core crashed saying “fatal error”. I tried several times and got the same result each time. This happened with both V22 and V23.

    So the issue is not longer reproducible with a fresh installation, right?

    Also just “fatal error” is not very useful to reproduce/debug an issue.

  31. cryptodc1 commented at 11:04 am on October 28, 2022: none

    What version of Bitcoincore are you using?

    It is v23.0 right now. Also testing v24.0. My hardware is mac mini M1.

    I tried to reinstall a fresh bitcoin core app on my MacBook Air M2 Ventura and after about 20 minutes of downloading the blocks the Bitcoin core crashed saying “fatal error”. I tried several times and got the same result each time. This happened with both V22 and V23.

    So the issue is not longer reproducible with a fresh installation, right?

    Also just “fatal error” is not very useful to reproduce/debug an issue.

    I can reproduce it when I use the external Drive that has Bitcoin core on it. It has for both V22 and V23. However I was trying to do a fresh install on a new external drive and I get the “fatal error”. I will upload the debug log when I get back home. thank you for your help in this matter.

  32. hebasto commented at 11:10 am on October 28, 2022: member

    I can reproduce it when I use the external Drive that has Bitcoin core on it.

    Using external drives is not a configuration which is extensively tested and guaranteed to work in all circumstances. For example, #26397 (comment).

    Please try to reproduce the issue while using local drives only. You could use pruning to limit block storage space.

  33. cryptodc1 commented at 11:34 am on October 28, 2022: none

    I can reproduce it when I use the external Drive that has Bitcoin core on it.

    Using external drives is not a configuration which is extensively tested and guaranteed to work in all circumstances. For example, #26397 (comment).

    Please try to reproduce the issue while using local drives only. You could use pruning to limit block storage space.

    Understood. It just seems weird that i have been using this configuration for years and now with the upgrade to Mac OS Ventura this all happened.

  34. hebasto commented at 1:58 pm on October 28, 2022: member

    Understood. It just seems weird that i have been using this configuration for years and now with the upgrade to Mac OS Ventura this all happened.

    Going to close this issue for now.

  35. hebasto closed this on Oct 28, 2022

  36. bitcoin locked this on Oct 28, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me