Anki is broken since last update with yay

Yesterday, I updated with yay (“yay -Syu”). Since then, Anki doesn’t start properly anymore. If I try, it opens a window without any contents, seems to attempt to synchronize and closes immediately. The console output is at the end. I couldn’t find anything useful with google, and reinstalling didn’t change anything, same with rebooting. These is the output of “uname” (without my name):
Linux ****** 6.14.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 10 Apr 2025 18:43:59 +0000 x86_64 GNU/Linux
And the anki version: anki-25.02

Any help is really appreciated!

❯ anki
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/backend.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/links.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/generic.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/i18n.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/ankiweb.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/card_rendering.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/notes.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/notetypes.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/collection.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/sync.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/decks.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/cards.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/deck_config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/image_occlusion.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/import_export.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/media.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/scheduler.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/search.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/stats.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
Starting Anki 25.02...
2025-04-15 08:56:10,773:INFO:aqt.mediasrv: Serving on http://127.0.0.1:42593
Qt warning: Failed to create Vulkan instance: -9 
Qt warning: Failed to create platform Vulkan instance 
Qt warning: Unable to detect GPU vendor. 
Starting main loop...
mpv not found, reverting to mplayer
[19895:19933:0415/085611.589769:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[19895:19933:0415/085611.589787:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[19895:19933:0415/085611.589792:ERROR:native_pixmap_egl_binding.cc(118)] Unable to initialize binding from pixmap
[19895:19933:0415/085611.589808:ERROR:ozone_image_backing.cc(309)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[19895:19933:0415/085611.589812:ERROR:shared_image_manager.cc(255)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[19895:19933:0415/085611.589815:ERROR:native_skia_output_device.cpp(261)] ProduceSkia() failed.
[19895:19933:0415/085611.590011:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590089:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590152:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590184:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590224:ERROR:shared_image_stub.cc(569)] SharedImageStub: context already lost
[19895:19933:0415/085611.590244:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590267:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590321:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590373:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[19895:19933:0415/085611.590472:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.590477:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[19895:19933:0415/085611.590501:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.590506:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[19895:19933:0415/085611.590519:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.590523:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[19895:19933:0415/085611.590530:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.590533:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
Qt debug: Compositor returned null texture 
[19895:19933:0415/085611.594794:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.594814:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[19895:19933:0415/085611.594831:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.594845:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.594861:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.594865:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[19895:19933:0415/085611.594874:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[19895:19933:0415/085611.594880:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[19895:19933:0415/085611.594898:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
Segmentation fault (core dumped)

Have you tried opening in safe mode? See Troubleshooting - Anki Manual.

Please close Anki, then open it in safe mode by holding down the Shift key while starting Anki. Keep holding Shift down until the on-screen message informs you that Anki has started in safe mode.

I tried, but it didn’t change anything.

I’m not familiar with arch linux. But you get this:

/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/backend.proto. Please update the gencode to avoid compatibility violations in the next runtime release.

and this:

Qt warning: Failed to create Vulkan instance: -9
Qt warning: Failed to create platform Vulkan instance
Qt warning: Unable to detect GPU vendor.

The first one is a warning. But if possible, run the update command for your system again.

The second one is GPU / vulkan driver related.

If that fails too, run anki in gdb and provide the backtrace of the segfault.

1 Like

Thank you very much, changing the driver by

echo software > ~/.local/share/Anki2/gldriver6

did indeed fix the issue. I still get some warnings you can see down below, if you are interested, but Anki itself works fine now.

/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/backend.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/links.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/generic.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/i18n.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/ankiweb.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/card_rendering.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/notes.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/notetypes.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/collection.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/sync.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/decks.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/cards.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/deck_config.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/image_occlusion.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/import_export.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/media.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/scheduler.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/search.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
/usr/lib/python3.13/site-packages/google/protobuf/runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.2 is exactly one major version older than the runtime version 6.30.1 at anki/stats.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
  warnings.warn(
Starting Anki 25.02...
2025-04-16 20:11:37,213:INFO:aqt.mediasrv: Serving on http://127.0.0.1:42203
Qt warning: Failed to create Vulkan instance: -9 
Qt warning: Failed to create platform Vulkan instance 
Qt warning: Unable to detect GPU vendor. 
Starting main loop...
mpv not found, reverting to mplayer
1 Like

Also on archlinux I have much the same problem, except that I’m using the flathub version, Install Anki on Linux | Flathub. As proposed, I’ve already tried creating a gldriver6 file with “software” under ~/.local/share/Anki2/ and for good measure also under ~/.var/app/net.ankiweb.Anki/config/ , but to no avail.

Here my full stacktrace:

$ flatpak run net.ankiweb.Anki
Python module pip_system_certs is not installed. System certificate store and custom SSL certificates may not work. See: https://github.com/ankitects/anki/issues/3016
Starting Anki 25.02.4...
Qt warning: setHighDpiScaleFactorRoundingPolicy must be called before creating the QGuiApplication instance
2025-04-27 12:37:25,240:INFO:aqt.mediasrv: Serving on http://127.0.0.1:39075
[2:46:0427/123725.361869:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Datei oder Verzeichnis nicht gefunden
Starting main loop...
[2:64:0427/123725.533459:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
[2:64:0427/123725.533475:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[2:64:0427/123725.533480:ERROR:native_pixmap_egl_binding.cc(118)] Unable to initialize binding from pixmap
[2:64:0427/123725.533493:ERROR:ozone_image_backing.cc(309)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[2:64:0427/123725.533495:ERROR:shared_image_manager.cc(255)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[2:64:0427/123725.533497:ERROR:native_skia_output_device.cpp(261)] ProduceSkia() failed.
[2:64:0427/123725.533590:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[2:64:0427/123725.533638:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[2:64:0427/123725.533694:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[2:64:0427/123725.533717:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[125:17:0427/123725.598341:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[152:25:0427/123725.598358:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[2:64:0427/123725.598512:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[2:64:0427/123725.598526:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.

This issue is being tracked on the anki flathub repo Flatpak Anki doesn't start when I run it · Issue #210 · flathub/net.ankiweb.Anki · GitHub. I would downgrade the package as RTSAjwad suggests in the issue and wait for someone to fix the flatpak, or install Anki from the AUR instead.

2 Likes

Thanks a lot, @Maltesaa I confirm that both workarounds described in Flatpak Anki crashing on startup · Issue #204 · flathub/net.ankiweb.Anki · GitHub work for me and bring me back to a workable Anki. I’ll then just wait for the fix.

2 Likes