Silently shut down a few seconds after the window appears on Win 11

Hello.

I was unable to run anki (not qt5 nor qt6) after a successfu? installation. I was able to choose a language and take a look at the main window for a few seconds.

The window just disappears after a few seconds after loading (each time I run it). It shows nothing interesting in the logs (attached below).

I have tried everything from the windows startup issues list on ankiweb and even more:

  1. reinstalling after a cleanup (removed all trash after previous installations)
  2. rebooting
  3. installing qt5/qt6
  4. running anki-console with QT_DEBUG_PLUGINS=1
  5. setting ‘software’ video driver
  6. updating NVIDIA video driver to the latest version
  7. installing a completely fresh and empty anki (without any add-ons) from ankiweb
  8. installing by pip (Python)
  9. running as administrator
  10. disabling firewall
  11. changing the decimal symbol to point
  12. trying to find some error logs in Windows logs
    PS. I successfully (partially) installed it on Windows Linux Subsystem on the same machine, but there are other issues (off-topic).

Can’t imagine what else could be wrong. Please, help me =)
Will be happy to provide any additional information you need.

Thank you!

logs

Anki starting...
Initial setup...
Preparing to run...
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms" ...
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms/qminimal.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms/qminimal.dll, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("minimal")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms/qoffscreen.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms/qoffscreen.dll, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("offscreen")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms/qwindows.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms/qwindows.dll, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "windows"
        ]
    },
    "archlevel": 0,
    "className": "QWindowsIntegrationPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("windows")
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/platforms" ...
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platforms/qwindows.dll" loaded library
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/platformthemes" ...
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/platformthemes" ...
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/styles" ...
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/styles/qwindowsvistastyle.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/styles/qwindowsvistastyle.dll, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "windowsvista"
        ]
    },
    "archlevel": 0,
    "className": "QWindowsVistaStylePlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("windowsvista")
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/styles" ...
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/styles/qwindowsvistastyle.dll" loaded library
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/iconengines" ...
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/iconengines/qsvgicon.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/iconengines/qsvgicon.dll, metadata=
{
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz",
            "svg.gz"
        ]
    },
    "archlevel": 0,
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("svg", "svgz", "svg.gz")
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/iconengines" ...
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/iconengines/qsvgicon.dll" loaded library
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats" ...
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qgif.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qgif.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archlevel": 0,
    "className": "QGifPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("gif")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qicns.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qicns.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "icns"
        ],
        "MimeTypes": [
            "image/x-icns"
        ]
    },
    "archlevel": 0,
    "className": "QICNSPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("icns")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qico.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qico.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archlevel": 0,
    "className": "QICOPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("ico", "cur")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qjpeg.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qjpeg.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archlevel": 0,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("jpg", "jpeg")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qpdf.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qpdf.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "pdf"
        ],
        "MimeTypes": [
            "application/pdf"
        ]
    },
    "archlevel": 0,
    "className": "QPdfPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("pdf")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qsvg.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qsvg.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz"
        ],
        "MimeTypes": [
            "image/svg+xml",
            "image/svg+xml-compressed"
        ]
    },
    "archlevel": 0,
    "className": "QSvgPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("svg", "svgz")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qtga.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qtga.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tga"
        ],
        "MimeTypes": [
            "image/x-tga"
        ]
    },
    "archlevel": 0,
    "className": "QTgaPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("tga")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qtiff.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qtiff.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tiff",
            "tif"
        ],
        "MimeTypes": [
            "image/tiff",
            "image/tiff"
        ]
    },
    "archlevel": 0,
    "className": "QTiffPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("tiff", "tif")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qwbmp.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qwbmp.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "wbmp"
        ],
        "MimeTypes": [
            "image/vnd.wap.wbmp"
        ]
    },
    "archlevel": 0,
    "className": "QWbmpPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("wbmp")
Qt debug: looking at "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qwebp.dll"
Qt debug: Found metadata in lib C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qwebp.dll, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "webp"
        ],
        "MimeTypes": [
            "image/webp"
        ]
    },
    "archlevel": 0,
    "className": "QWebpPlugin",
    "debug": false,
    "version": 394752
}


Qt debug: Got keys from plugin meta data QList("webp")
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/imageformats" ...
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qsvg.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qgif.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qicns.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qico.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qjpeg.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qpdf.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qtga.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qtiff.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qwbmp.dll" loaded library
Qt debug: "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/imageformats/qwebp.dll" loaded library
Qt debug: doh set to ""  --  SystemOnly
Starting main loop...
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/accessiblebridge" ...
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/accessiblebridge" ...
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/lib/PyQt6/Qt6/plugins/accessible" ...
Qt debug: checking directory path "C:/Users/user/AppData/Local/Programs/Anki/accessible" ...

THE END. Anki just dies after this last debug message.

Do you have an anti-virus program? If so, check its logs. Maybe that’s killing Anki.

I don’t have any anti-virus. I have also disabled Windows Brandmauer.

Looks like you’ve tried most things already. If the screen issue mentioned on Fails to start on Windows · Issue #2973 · ankitects/anki · GitHub doesn’t apply, please try running from Qt directly.

Unfortunately, the screen issues mentioned doesn’t apply.

I have installed Qt Creator to test Qt directly. Please, give me an advice.

For example, the simple text viewer test project works locally. Does it mean, that the issue is on the Anki side?

Or I should configure some other Qt demo project in Qt Creator examples to try to reproduce the issue? If yes - which one (exactly)?

Thank you.

Please try one of the webengine examples, like the markdown editor one.

I was able to run the Text Editor in Qt Creator
Qt Quick Controls - Text Editor | Qt Quick Controls 6.6.2.

Which platform (compiler) should I use for testing on Win 11?
In other words which one do you use in Anki? Qt 6.6.2 MinGV 64-bit or Qt 6.6.2 MSVC2019 64-bit or something else?

Please use the markdown editor one, which uses webengine. The one you linked to does not. Anki uses MSVC, but I’m not sure whether that matters or not in this case.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.