Anki crashing after opening stats window - Exception code: 0xc0000005

No error message given, nothing in crash.log, anki simply shut down for no reason…

no addons, only started happening after installing the newer Qt6 versions.

Version <U+2068>2.1.52 (ab1c2395)<U+2069>
Python 3.9.7 Qt 6.3.0 PyQt 6.3.0

Found those in Event Viewer:

# First one
Faulting application name: anki.exe, version: 0.0.0.0, time stamp: 0x625e6678
Faulting module name: Qt6Core.dll, version: 6.2.2.0, time stamp: 0x619d0b70
Exception code: 0xc0000005
Fault offset: 0x00000000000dae31
Faulting process ID: 0x308c
Faulting application start time: 0x01d864a00fdfa99f
Faulting application path: C:\Program Files\Anki\anki.exe
Faulting module path: C:\Program Files\Anki\lib\PyQt6\Qt6\bin\Qt6Core.dll
# Second one
Faulting application name: anki.exe, version: 0.0.0.0, time stamp: 0x6279dde1
Faulting module name: qwindows.dll, version: 6.3.0.0, time stamp: 0x624c0e8f
Exception code: 0xc0000005
Fault offset: 0x0000000000079e93
Faulting process ID: 0x3cb8
Faulting application start time: 0x01d866d1f8c1c0cc
Faulting application path: C:\Program Files\Anki\anki.exe
Faulting module path: C:\Program Files\Anki\lib\PyQt6\Qt6\plugins\platforms\qwindows.dll
# Third one
Faulting application name: anki.exe, version: 0.0.0.0, time stamp: 0x624cf376
Faulting module name: Qt6WebEngineCore.dll, version: 6.2.2.0, time stamp: 0x619fabb2
Exception code: 0xc0000005
Fault offset: 0x0000000004c1d229
Faulting process ID: 0x32fc
Faulting application start time: 0x01d84d9bfaf82042
Faulting application path: C:\Program Files\Anki\anki.exe
Faulting module path: C:\Program Files\Anki\lib\PyQt6\Qt6\bin\Qt6WebEngineCore.dll

figured out the steps:

  1. open Anki
  2. click on a deck to study
  3. click on Study Now
  4. answer 1 card and rate it as Good
  5. open the Stats window (which shows your profile statistics)
  6. close the Stats window
  7. Anki crashes!

i dont know if other steps produce this crash. but this is what i followed

event viewer log

Fault bucket 1699311592370763974, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: anki.exe
P2: 0.0.0.0
P3: 6279dde1
P4: Qt6WebEngineCore.dll
P5: 6.3.0.0
P6: 624d0309
P7: c0000005
P8: 0000000000217987
P9: 
P10: 

i tried to do some midnight cards. when i closed the card editor, anki crashed just as before.

event log

Faulting application name: anki.exe, version: 0.0.0.0, time stamp: 0x6279dde1
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x000002607dbe7c20
Faulting process ID: 0x36e8
Faulting application start time: 0x01d866ece24b10ff
Faulting application path: C:\Program Files\Anki\anki.exe
Faulting module path: unknown

note that the Faulting module path is now labelled as “unknown”

i will test it some more tomorrow (aka today) morning

I am not able to reproduce this. I suspect it’s a video driver issue, and you may be able to work around it by choosing software mode: Display Issues - Anki Manual

1 Like

ah!
putting it on auto fixed the problem. genius! (it was on OpenGL)

the problem returned again!

oh wait never mind. i spoke too soon!

my friend at the library had the same issue. we tried the solution you gave in the manual, and the issue persists.

fails with software and with auto

it also fails with OpenGL

but strangely enough, setting it to auto fixed this problem here: Error when deleting a card from browser

similar issue Mac app crashes everytime when I close a window. this happened to me when I closed the export from browser dialog box

try these steps maybe (skip the step where you review 1 card)

  1. open Anki
  2. click on a deck to study
  3. click on Study Now
  4. open the Stats window (which shows your profile statistics)
  5. close the Stats window
  6. Anki crashes!

here is the cmd startup

Anki starting...
Initial setup...
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Qt info:

GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes

Init Parameters:
  *  application-name Anki
  *  browser-subprocess-path C:\Program Files\Anki\lib\PyQt6\Qt6\bin\QtWebEngineProcess.exe
  *  create-default-gl-context
  *  disable-es3-gl-context
  *  disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
  *  disable-speech-api
  *  enable-features NetworkServiceInProcess,TracingServiceInProcess
  *  enable-threaded-compositing
  *  in-process-gpu
  *  use-gl desktop

Starting main loop...

used Qt5, and the issue cannot be reproduced there…

Qt6 installation:

  1. immediately after installation, the issue cannot be reproduced
  2. however, when i closed down anki, and launched it again, the issue returned. extremely odd

this is unfortunate, because my pc is quite a high end one, and I thought it would be able to handle an SRS app :smile::/.

given that the issue continues to occur regardless of the fact gldriver6 is set to auto or software, and given that the issue does not occur in Qt5: Could it be Qt6 that is the issue? because i simply cant see why my pc wont handle anki when it has handled software and games that are way heavier and more demanding

also, if you follow the following steps, anki will not crash:

  1. open Anki
  2. click on a deck to study
  3. click on Study Now
  4. open the Stats window (which shows your profile statistics)
  5. scroll down to the bottom of the screen
  6. click on one of the Added graph bars
  7. browser will open
  8. close the stats window
  9. close the browser
  10. Anki is doing fine!

Now, if you repeat the steps i initially posted, anki will crash again!

is there a debug mode to capture what is going on?

updated steps!

you don't need to go into study mode. here are the new steps:
  1. open anki
  2. press T (to get Stats)
  3. press Esc (to close Stats)
  4. anki crashes