V25.09 Windows: anki-console.exe quits without displaying anything

Upgraded from v25.02.5. New version of anki.exe and anki-console.exe now only launch a terminal window containing no text that quits after 2 seconds. Uninstalled and reinstalled multiple times, installing into different directories each time, and problem is unchanged.

Also the directory “AnkiProgramFiles” is completely empty.

See attached footage at this link: http//files.mastodon.social/media_attachments/files/115/928/026/031/339/944/original/bdb0705bd5fa04a3.mp4

System: Windows 10 latest

Registry key HKEY_CURRENT_USER\SOFTWARE\Anki\Install_Dir64 is equal to the actual install location of anki-console.exe

If you go to Anki’s installation folder, open a terminal there (using cmd.exe or Powershell), and run .\anki-console.exe, do you see any errors?

2 Likes

No errors, same empty window appears. See footage here: https//files.mastodon.social/media_attachments/files/115/933/080/325/900/849/original/d5de1fb51d827f26.mp4

Hey, this program doesn’t have a “verbose mode” from the command line or anything, right?

For those unable to watch the video, I saw:

  1. In a terminal, the current directory was C:\Users\Leon\AppData\Local\Programs\Anki as shown by the command line prompt:
C:\Users\Leon\AppData\Local\Programs\Anki>
  1. The user ran the .\anki-console.exe command. The command immediately completed and the next command line prompt was seen:
C:\Users\Leon\AppData\Local\Programs\Anki>.\anki-console.exe
C:\Users\Leon\AppData\Local\Programs\Anki>
  1. Immediately after that, the terminal window opened a new tab named C:\Users\Leon\AppData\Local\Programs\Anki>.\anki-console.exe (perhaps showing that something was running or trying to run?).
  2. However, the new tab then immediately closed, with no messages seen.
1 Like

Is there anything that can be done about this? Or do I have to keep using 25.02.5 until further notice?

Should I open an issue on GitHub? I notice nothing corresponding to this problem already exists as an issue there.

I just installed Anki the other day and didn’t see any problems on Windows 10.

Created a new user with admin rights
Downloaded Anki and selected it by default by pressing Enter
Everything downloaded fine
Didn’t log in as any user, just a clean program
Created a deck named 1

Maybe you could at least try this file “Human_skeleton_front_ru.svg” on your 25.02.5. For some reason, it only causes problems.

Can you try this?

  1. Download uv: https://github.com/astral-sh/uv/releases/download/0.9.26/uv-x86_64-pc-windows-msvc.zip
  2. Extract the zip and open a terminal in the extracted folder (Right click anywhere inside the folder then click Open PowerShell window here)
  3. Run the command: ./uvx --from aqt anki.

Does that make any difference?

1 Like

This manages to successfully run 25.09. However, since this doesn’t actually install Anki, it’s not necessarily an ideal solution. That being said, I vaguely know enough about uv that I could handle things from here. I still think the issue with the installable executable is worth exploring, though.

abdo is exploring it by asking you to do some testing. You even confirmed it works, which might give abdo an idea on how to solve your issue.

I logged the issue here: anki-console.exe quits without displaying anything · Issue #4519 · ankitects/anki · GitHub

This is the first report we get of this issue as far as I know. If you’re technical enough and can build Anki from source, you might want to try modifying this part of the code and see if anything helps: anki/qt/launcher/src/platform/windows.rs at b8884bac72aa50fa1189fe0a5079a71574bc5043 · ankitects/anki · GitHub

You can find instructions about building the launcher here: UPDATE(docs): Add build dependencies and instructions for building / running the launcher by GithubAnon0000 · Pull Request #4380 · ankitects/anki · GitHub