I downloaded Anki last week and whenever I try to press “Add” to add a new card the app randomly crashes. I deleted all Add-Ons and the bug still was present. I reinstalled Anki and it didn’t work as well. Then I went through all Troubleshooting steps, which also didn’t work. I also tried downloading older versions and Qt5, but it still did not work. What can I do?
Does it showed a prompt about why it has crashed? a button called copy debug info will provide info that we can work with (paste here with preformatted text CRTL + E)
Else Debugging
- Windows
- Linux: Start Anki in the terminal and reproduce the issue, then paste here
Idk if this is it, but when I did the debugging steps I just got this and then it crashed the same way when I pressed “Add”. But this is what I got:
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()```
That might help someone work out why this is happening – but is it the entire output from the console?
Was this a completely new install with an empty collection?
Yeah it was empty. No Add-Ons or decks and no profiles. I was not sure if that was everything, so I did it again in the Command Prompt and this time it completely worked somehow, but the problem remains if I do not use the Command Prompt to open Anki. But this is the result:
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
JS warning /_anki/js/editor.js:439 No version information available for component [tex]/noerrors
JS warning /_anki/js/editor.js:439 No version information available for component [tex]/mathtools
I did it again with the command prompt and this time I got something different and the usual crash also happened again:
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()JS warning /_anki/js/editor.js:439 No version information available for component [tex]/noerrors
JS warning /_anki/js/editor.js:439 No version information available for component [tex]/mathtools
Qt warning: Device loss detected in Present()
Qt warning: Failed to share D3D11 texture (COM error 0x887a0005). This will result in failed rendering. Report the bug, and try restarting with QTWEBENGINE_CHROMIUM_FLAGS=--disble-gpu
Did you try what the message says?
try restarting with QTWEBENGINE_CHROMIUM_FLAGS=–disble-gpu
Would be something along the lines of
QTWEBENGINE_CHROMIUM_FLAGS=--disble-gpu anki --safemode
The command does not work
I recognise this from the image occlusion enhanced addon. I’m pretty sure disabling it means this line won’t show up in the console. Are you sure you’re running on safemode with no addons?
Why not? What’s the output? You have to change the anki
part with whatever is the right command for your OS, because the command above does work (tested on linux).
Running that command I provided above will also make the line disappear that llama is talking about.
I don’t think that’ll work on windows, which he seems to be on given D3D11 and COM. Easiest way would be to hold down shift while opening anki
That wouldn’t turn off the gpu though and wouldn’t tell us much about the reason it crashes.
I guess the command for windows would be this (looking at Text Size - Anki Manual):
QTWEBENGINE_CHROMIUM_FLAGS=--disble-gpu "C:\Program Files\Anki\anki" --safemode
But OP should already know the correct anki command for their platform – after all, they were using it to get the output above. All they have to do is add the QTWEBENGINE
part to the front and add the --safemode
part to make sure anki opens without addons.
You can’t temporarily set env variables in this way in windows. Iirc the manual describes a way to switch to the software renderer, maybe that could help
Really? I didn’t know that. In that case set
might help?
I can’t comment on the rest of the command, but that is the old default location for the Anki directory. For the current default %LocalAppData%\Programs\Anki\anki.exe
should work.
I was running without add-ons earlier, but I redownloaded Image Occlusion at some point so that`'s why