# Anki "not responding" on startup

**URL:** <https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619>\
**Category:** Help\
**Created:** [February 19, 2023, 1:08am UTC](https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619 "2023-02-19T01:08:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wamp](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wamp](https://forums.ankiweb.net/u/wamp)\
**Post date:** [February 19, 2023, 1:08am UTC](https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619/1 "2023-02-19T01:08:05Z")

</div>

I have installed the last version 2.1.58 QT6 on Ubuntu 22.04

It is a new, fresh install, but hangs on startup when selecting profiles.

Al so I tried 2.1.58 QT 5, but I then the menu was not sowed (and I repaired database)

The command line shows this:

$ anki  
Anki starting…  
Initial setup…  
Running with temporary Qt5 compatibility shims.  
Run with DISABLE\_QT5\_COMPAT=1 to confirm compatibility with Qt6.  
Preparing to run…  
Wayland support is disabled by default due to bugs:

> <https://github.com/ankitects/anki/issues/1767>
>
> \- \[x\] Qt 6.2.2, probably Qt5 too: editor sometimes pastes as text, sometimes pas…tes as html (mimeData.hasHtml() is returning intermittently false). Does not occur for me when using xwayland + QT\_QPA\_PLATFORM=xcb. Maybe related to https://bugreports.qt.io/browse/QTBUG-74330 (fixed in 6.3)
> \- \[\] Qt 5/6.2.2/6.3: client side decorations are not supported, so when used on Gnome/Mutter, there are no borders/titlebars
> \- \[x\] Qt 5/6.2.2: window.raise() is not supported, so clicking on 'add' to bring an existing add window to the top does not work (fixed in 6.3 for Sway, but not Gnome)
> \- \[\] Qt 5/6.2.2/6.3: fullscreen mode renders Anki transparent (confirmed on 2.1.51 RC2, Manjaro Gnome; doesn't happen with Sway)
> https://forums.ankiweb.net/t/blury-interface-with-gnome-wayland-and-fractional-scaling/19196/3?u=kleinerpirat
> 
> Anki will link users to this page when they run Anki on a Wayland system.

You can force it on with an env var: ANKI\_WAYLAND=1  
Qt info:

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

Init Parameters:

- application-name Anki
- browser-subprocess-path /usr/local/share/anki/lib/PyQt6/Qt6/libexec/QtWebEngineProcess
- create-default-gl-context
- disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
- disable-setuid-sandbox
- disable-speech-api
- enable-features NetworkServiceInProcess,TracingServiceInProcess
- enable-threaded-compositing
- in-process-gpu
- use-gl desktop

Starting main loop…

Any Idea?

---

<div class="post-metadata">

**Author:** ![wamp](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wamp](https://forums.ankiweb.net/u/wamp)\
**Post date:** [February 19, 2023, 7:07pm UTC](https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619/2 "2023-02-19T19:07:07Z")

</div>

I tried with:  
export ANKI\_WAYLAND=1

And then gnome hang up entirely

---

<div class="post-metadata">

**Author:** ![wamp](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wamp](https://forums.ankiweb.net/u/wamp)\
**Post date:** [February 19, 2023, 7:30pm UTC](https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619/3 "2023-02-19T19:30:10Z")

</div>

Tried with 2.1.58 QT 5 and I get this screen but, I can not star to study

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/2bbda3564d30a45c8696ea9ad6b93e2f87d09224.png)

$ anki  
Anki starting…  
Initial setup…  
Preparing to run…  
Qt info: Warning: Ignoring XDG\_SESSION\_TYPE=wayland on Gnome. Use QT\_QPA\_PLATFORM=wayland to run on Wayland anyway.  
Qt warning: QSocketNotifier: Can only be used with threads started with QThread  
Starting main loop…

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [February 19, 2023, 7:48pm UTC](https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619/4 "2023-02-19T19:48:35Z")

</div>

Had been looking at this post trying to figure out what was going on since you tried both Qt6 and Qt5

with the recent screenshot, can only redirect for workarounds present in [Blank Main Window - Anki Manual](https://docs.ankiweb.net/platform/linux/blank-window.html)

While you are in the manual, try others solutions/workarounds from 2.3.2-2.3.8 (left side)

hopefully it can fix the issue, if not, we gotta wait for one of the devs or someone with experience on linux

---

<div class="post-metadata">

**Author:** ![wamp](https://avatars.discourse-cdn.com/v4/letter/w/e99b99/32.png) [@wamp](https://forums.ankiweb.net/u/wamp)\
**Post date:** [February 19, 2023, 8:17pm UTC](https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619/5 "2023-02-19T20:17:19Z")

</div>

Thanks by the clue !

That solved my issue

QTWEBENGINE\_CHROMIUM\_FLAGS=“–no-sandbox”

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [March 21, 2023, 8:17pm UTC](https://forums.ankiweb.net/t/anki-not-responding-on-startup/27619/6 "2023-03-21T20:17:22Z")

</div>

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