It runs fine on an M2/14.2.1 machine here. I’m guessing there’s something about your environment that is causing problems. Do you use an external monitor? Do you have other apps/tools running in the background? If you create a new macOS user and run Anki from the new login, does it work?
Created a new standard user account. Anki does not load properly.
Made new account an admin and tried opening Anki. Same issue.
In new account disabled all background process and login items in login items system setting. Anki still hangs and does not load properly.
A clarification: ACTUAL RESULT behavior occurs after opening Anki for first time and setting language, then force quitting, then opening again. Nonetheless, Anki still hangs after first launch and setting language.
Ah, more info. Here’s a log I captured when I force quit Anki and then am asked whether I want to report.
Hmmm . . . not able to attach a file or post a link to a Dropbox file. I’ll think of a way to get the info to you.
UPDATE
I couldn’t find a way to DM you on the forum or over at the github repo. I didn’t want to open an issue since it’s for developers. Please, let me know how I can get the log to you.
It may not reveal anything, but could you put the full file on somewhere like pastebin.com, then link to it here? Surround the link with backticks (eg http://foo.com) and you should be able to include it.
You may access the log here: https://www.dropbox.com/scl/fi/06qj9vqaw7s13jjx3ejg2/20240103-194619-anki-hang-report.txt?rlkey=3dezajgyiywxpvtlrty3flsd8&dl=0
Thanks for that. Unfortunately I didn’t spot anything that would identify why it is happening . Does the same problem happen when running Anki from Python?
I followed the Via PyPI/pip instructions for Mac. Anki does not run successfully. Using Python 3.12.1. Below is the result of running pyenv/bin/anki
macos_helper: dlopen(/Users/iota/pyenv/lib/python3.12/site-packages/_aqt/data/lib/libankihelper.dylib, 0x0006): tried: '/Users/iota/pyenv/lib/python3.12/site-packages/_aqt/data/lib/libankihelper.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/iota/pyenv/lib/python3.12/site-packages/_aqt/data/lib/libankihelper.dylib' (no such file), '/Users/iota/pyenv/lib/python3.12/site-packages/_aqt/data/lib/libankihelper.dylib' (no such file)
Preparing to run...
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Users/iota/.pyenv/versions/3.12.1/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/Users/iota/pyenv/lib/python3.12/site-packages/aqt/mediasrv.py", line 103, in run
self.server = create_server(
^^^^^^^^^^^^^^
File "/Users/iota/pyenv/lib/python3.12/site-packages/waitress/server.py", line 78, in create_server
last_serv = TcpWSGIServer(
^^^^^^^^^^^^^^
File "/Users/iota/pyenv/lib/python3.12/site-packages/waitress/server.py", line 244, in __init__
self.bind_server_socket()
File "/Users/iota/pyenv/lib/python3.12/site-packages/waitress/server.py", line 361, in bind_server_socket
self.bind(sockaddr)
File "/Users/iota/pyenv/lib/python3.12/site-packages/waitress/wasyncore.py", line 396, in bind
return self.socket.bind(addr)
^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 49] Can't assign requested address
Anki tries to bind to 127.0.0.1:0, which should usually work fine. Maybe you have a firewall or something blocking Anki from creating the connection, or all ports on your system are already in use.
@dae Your mention of Ank trying to bind 127.0.0.1:0 gave me an idea that solved the issue. Sometime ago I had created a network service on Loopback in order to create an ad hoc peer-to-peer computer network.
Steps to resolve:
At command line delete the service using networksetup -deletepppoeservice <service name>