Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monero-wallet-gui won't quit on Mac-ARM-Sonoma #4286

Open
kirk-kerekes opened this issue Mar 10, 2024 · 37 comments
Open

Monero-wallet-gui won't quit on Mac-ARM-Sonoma #4286

kirk-kerekes opened this issue Mar 10, 2024 · 37 comments
Labels

Comments

@kirk-kerekes
Copy link

Monero-wallet-gui won't quit on Mac-ARM (specifically MacOS 14.4 on M2 Pro)

After stopping Mining,

When Quit is invoked, the GUI just goes unresponsive.

Ultimately force-quit is required.

@selsta
Copy link
Collaborator

selsta commented Mar 10, 2024

This doesn't happen when you don't mine? I wasn't able to reproduce, also on macOS 14.4 (M1 Pro).

@kirk-kerekes
Copy link
Author

Good question.
So I --

  • force quit the app,
  • restarted the app,
  • waited until it was synchronized but...
  • did not start mining and ...
  • it once again hung at quit.

Since it appears to be the GUI itself that is locking up, I assume that the problem is in whatever UI framework(s) manage that. When it is hung, nothing in the Monero gui works -- menu bar, cursor updating, nothing. And it is (in human terms) instantaneous. No delay between selecting Quit and the lockup. Because this is rather hard to miss, I assume that the issue is a conflict, but other than the VPN, I have nothing installed that is supposed to be breaking the rules of app isolation. No UI modifiers, no jailbreaking. The VPN uses Apple's VPN scheme.

Variances from the norm:

  • I am running a VPN (WireGuard, using the official Wireguard app)
  • I am also running Apple's Private Relay
  • WiFi is on, but not connected to anything. (probably a rare state)
  • I am controlling the Mac via ARD, from an iPad Pro running Screens.
  • I am running iStat Menus.

@selsta
Copy link
Collaborator

selsta commented Mar 10, 2024

v0.18.3.2 has updated Qt from 5.15.9 to 5.15.12, can you test with it once it is out later today?

@kirk-kerekes
Copy link
Author

kirk-kerekes commented Mar 11, 2024 via email

@selsta
Copy link
Collaborator

selsta commented Mar 11, 2024

I think you can drag and drop it in a GitHub comment.

@kirk-kerekes
Copy link
Author

Monero Gui Hang Dump.txt

Done!

@selsta
Copy link
Collaborator

selsta commented Mar 11, 2024

Can you also open Console.app, and select monero-wallet-gui under Crash Reports and share that? It's easier for me to read.

@kirk-kerekes
Copy link
Author

Monero.wallet.gui.log.txt

No crash reports, presumably because it isn't crashing. But no spin report either. But there was a log, so I have attached that.

@selsta
Copy link
Collaborator

selsta commented Mar 13, 2024

I find it difficult to read these spin dumps (not familiar with them), but as far as I can tell it gets stuck somewhere during Qt's destructor. Anything else that is out of the ordinary with your setup?

Also we will release v0.18.3.3 soon, I upgraded Qt again (5.15.13), but I'm doubtful it will help.

@keybits
Copy link

keybits commented Mar 16, 2024

Confirming that I get the same behaviour macOS 14.2.1, M1 Pro, latest monero-gui and I'm not doing any mining.

Force quit is required every time.

@selsta
Copy link
Collaborator

selsta commented Mar 16, 2024

Does this issue also happen when you close monero-gui from the wizard without opening a wallet in the first place?

@keybits
Copy link

keybits commented Mar 16, 2024

Good question. Just tested and no it doesn't happen when a wallet has not been opened. I am able to quit normally from the wizard.

@selsta
Copy link
Collaborator

selsta commented Mar 16, 2024

When you close the GUI and it gets stuck, is the wallet still synchronizing? Or is it fully synchronizing?

@keybits
Copy link

keybits commented Mar 16, 2024

Fully synchronized.

@keybits
Copy link

keybits commented Mar 16, 2024

Another thing to note is that the monerod process doesn't shutdown after force quitting monero-gui. So monerod also needs to be quit manually. Perhaps that's part of the issue as monerod doesn't start until a wallet is opened.

@selsta
Copy link
Collaborator

selsta commented Mar 16, 2024

monerod not shutting down when force quitting monero-gui is expected. They are separate programs.

One last question, does it get stuck when you click on both "force quit" and "keep it running" during exit screen?

I don't understand why I can't reproduce this on my Mac..

@keybits
Copy link

keybits commented Mar 16, 2024

I'm don't know where I would see "keep it running"? I'm force quitting from macOS Activity Monitor.

Thanks for your help looking into this!

@selsta
Copy link
Collaborator

selsta commented Mar 16, 2024

monero-gui-exit-screen

This screen should show when closing monero-gui, does it freeze before that?

@keybits
Copy link

keybits commented Mar 16, 2024

I've never seen that screen!

By troubleshooting in this thread, I now have an acceptable workaround - exit wallet, then exit monero-gui and it quits successfully.

@selsta selsta added the bug label Mar 16, 2024
@kirk-kerekes
Copy link
Author

I concur with keybits, logging out of the wallet allows the app to quit gracefully.

@kirk-kerekes
Copy link
Author

in case you are not familiar with symbolication, I suggest doing a web search on symbolication xcode. Symbolication can turn a pile of incomprehensible dump gibberish into something with a lot of clues in it.

If you are already working with symbolicated dumps, then "good on ya".

@selsta
Copy link
Collaborator

selsta commented Mar 17, 2024

I will try to compare the code differences between exiting directly and exiting to wizard.

@selsta
Copy link
Collaborator

selsta commented Mar 17, 2024

Nothing obvious... Both use closeWallet() with a callback.

Can one of you open monero-wallet-gui from the command line, set log level to 4 in Settings -> Log, and then close the GUI so that it gets stuck and share the last 20 lines from the command line output?

@hansosanchez
Copy link

just to inform you that i have the same issue as https://github.com/kirk-kerekes (Mac OS Sonoma 14.4 (23E214)) since 18.3.1.

@AntlerDM
Copy link

AntlerDM commented Mar 25, 2024

This has been happening to me for a few versions now including v0.18.3.2. The GUI seems to function correctly while running, but when I quit, the application locks up and requires a force quit.

Workaround has been to lock the wallet first and then click the "X" button. Locking and then selecting Quit menu causes lockup.

I have tried connecting to a remote daemon and local daemon. And it is the same if I click the X button or select Quit from the menu.

The issue has been happening with macOS versions 13 & 14. Hardware is Mac Studio M1 Ultra.

Lockup Log:
2024-03-25 16:45:06.674 0x1f721bac0 INFO logging contrib/epee/src/mlog.cpp:273 New log categories: *:WARNING,net:FATAL,net.http:FATAL,net.ssl:FATAL,net.p2p:FATAL,net.cn:FATAL,daemon.rpc:FATAL,global:INFO,verify:FATAL,serialization:FATAL,daemon.rpc.payment:ERROR,stacktrace:INFO,logging:INFO,msgwriter:INFO 2024-03-25 16:45:06.674 0x1f721bac0 WARNING frontend src/wallet/api/wallet.cpp:411 Logging to "/Users/<USER>/Library/Logs/monero-wallet-gui.log" 2024-03-25 16:45:06.675 0x1f721bac0 WARNING frontend src/wallet/api/wallet.cpp:411 file:///Users/<USER>/Applications/Monero GUI/monero-wallet-gui.app/Contents/Resources/qml/QtQuick/Controls/ApplicationWindow.qml:259:9: QML ContentItem: Binding loop detected for property "implicitWidth" 2024-03-25 16:45:21.253 0x1f721bac0 INFO logging contrib/epee/src/mlog.cpp:273 New log categories: *:INFO,global:INFO,stacktrace:INFO,logging:INFO,msgwriter:INFO,perf.*:DEBUG 2024-03-25 16:45:21.254 0x16dbff000 INFO net contrib/epee/src/net_parse_helpers.cpp:138 [PARSE URI] regex not matched for uri: ^(([^:]*?)://)?(\[(.*)\](:(\d+))?)(.*)? 2024-03-25 16:45:21.255 0x16dda3000 INFO wallet.wallet2 src/wallet/wallet2.cpp:8279 ringdb path set to /Users/<USER>/.shared-ringdb 2024-03-25 16:45:21.260 0x16dbff000 INFO net.ssl contrib/epee/src/net_ssl.cpp:137 Generating SSL certificate 2024-03-25 16:45:21.328 0x16dda3000 INFO wallet.wallet2 src/wallet/wallet2.cpp:8303 caching ringdb key 2024-03-25 16:45:21.349 0x16dda3000 WARNING wallet.wallet2 src/wallet/wallet2.cpp:6118 Loaded wallet keys file, with public address: <WALLET ADDRESS> 2024-03-25 16:45:21.377 0x16dda3000 INFO wallet.wallet2 src/wallet/wallet2.cpp:6150 Trying to decrypt cache data 2024-03-25 16:45:21.451 0x16dda3000 INFO wallet.mms src/wallet/message_store.cpp:778 No message store file found: /Users/<USER>/Monero/wallets/<USER>/<USER>.mms 2024-03-25 16:45:21.453 0x16dda3000 INFO wallet.wallet2 src/wallet/wallet2.cpp:1390 setting daemon to <LOCAL DAEMON> 2024-03-25 16:45:21.453 0x16dda3000 INFO net contrib/epee/src/net_parse_helpers.cpp:138 [PARSE URI] regex not matched for uri: ^(([^:]*?)://)?(\[(.*)\](:(\d+))?)(.*)? 2024-03-25 16:45:21.457 0x16dda3000 INFO net.ssl contrib/epee/src/net_ssl.cpp:137 Generating SSL certificate 2024-03-25 16:45:21.665 0x16dda3000 INFO net contrib/epee/src/net_parse_helpers.cpp:138 [PARSE URI] regex not matched for uri: ^(([^:]*?)://)?(\[(.*)\](:(\d+))?)(.*)? 2024-03-25 16:45:21.807 0x16dda3000 WARNING net.ssl contrib/epee/src/net_ssl.cpp:539 SSL peer has not been verified 2024-03-25 16:45:21.807 0x16dda3000 WARNING net.ssl contrib/epee/src/net_ssl.cpp:539 SSL peer has not been verified

Lock Wallet successful quit log:
2024-03-25 16:50:02.898 0x16e927000 INFO WalletAPI src/wallet/api/wallet.cpp:452 ~WalletImpl 2024-03-25 16:50:02.899 0x16e927000 INFO WalletAPI src/wallet/api/wallet.cpp:769 closing wallet... 2024-03-25 16:50:02.899 0x16e927000 INFO WalletAPI src/wallet/api/wallet.cpp:780 Calling wallet::stop... 2024-03-25 16:50:02.899 0x16e927000 INFO WalletAPI src/wallet/api/wallet.cpp:782 wallet::stop done 2024-03-25 16:50:02.899 0x16e927000 INFO WalletAPI src/wallet/api/wallet.cpp:465 ~WalletImpl finished

@kirk-kerekes
Copy link
Author

kirk-kerekes commented Mar 25, 2024 via email

@selsta
Copy link
Collaborator

selsta commented Mar 25, 2024

That “binding loop detected” note sounds interesting

it's unrelated

@kirk-kerekes
Copy link
Author

kirk-kerekes commented Mar 25, 2024 via email

@pipetka12
Copy link

Снимок экрана 2024-05-08 в 00 16 54

помогите победить, уже 2 месяца мучаюсь на мак бук м2

@ninja-python
Copy link

ninja-python commented Aug 25, 2024

That also happens to me (M2 Mac with Sonoma) if I try quitting it from the applications bar it freezes but if I press the built in X in the Monero GUI it works fine when shutting down.

@selsta
Copy link
Collaborator

selsta commented Sep 30, 2024

Can someone who has this issue go to Settings -> Interface, and disable "Check for updates periodically", restart the wallet and then check if this issue still appears?

@AntlerDM
Copy link

I tried it with Monero GUI 18.3.3 and 18.3.4 and disabling the check for updates did not solve the issue for me.

@tobtoht
Copy link
Contributor

tobtoht commented Sep 30, 2024

@AntlerDM After changing the setting did you (force) close, reopen, and close again?

@AntlerDM
Copy link

Yes. I had to force quit after unchecking the Check for updates.

That was done with 18.3.3. I then updated to 18.3.4 and the setting was still disabled and it still locked up when quitting.

Am I able to try again (re-enable, lock wallet, quit cleanly, disable, lock wallet, quit cleanly and test)?

@AntlerDM
Copy link

I did try that and it did not help.

@dariusaurius
Copy link

dariusaurius commented Oct 7, 2024

Hi, I solved the problem on my Air M1 15.0 by disabling "Autosave". After that I enabled "Autosave every 1 min" again. Now I see this screen on exit:

grafik

It takes sometimes a couple of seconds, but it quits fine. Hope that helps someone else.

Regards

EDIT: I use a remote node in my home network

@AntlerDM
Copy link

AntlerDM commented Oct 7, 2024

This did not work for me. I also tried disabling Autosave completely.

Keyboard or menu quit still locks up, GUI "X" to quit always works (for me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants