Package Details: anki 25.02.6-1

Git Clone URL: https://aur.archlinux.org/anki.git (read-only, click to copy)
Package Base: anki
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: https://apps.ankiweb.net/
Keywords: anki languages learning vocabulary
Licenses: AGPL3
Conflicts: anki-bin, anki-git, anki-qt5
Submitter: demize
Maintainer: AlexBocken
Last Packager: AlexBocken
Votes: 199
Popularity: 7.64
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2025-06-01 17:08 (UTC)

Required by (2)

Sources (7)

Latest Comments

1 2 3 4 5 6 .. 32 Next › Last »

AlexBocken commented on 2025-06-02 09:22 (UTC)

@antecrescent nice catch, thanks! Will use from now on.

antecrescent commented on 2025-06-02 09:21 (UTC)

This is a nitpick, but I think the hash you record for anki via git rev-parse $pkgver isn't the one that upstream uses, because your hash is that of the tag itself, not that of the underlying commit (upstream uses HEAD at build/runner/src/build.rs:168).

You could use git rev-parse $pkgver^{} as per https://stackoverflow.com/a/16818141.

AlexBocken commented on 2025-05-28 16:04 (UTC) (edited on 2025-05-28 16:06 (UTC) by AlexBocken)

@testingwithfire It's not anki itself that is having issues here, it's a dependency of anki (the package is python-pyqt6-webengine). python-pyqt6-webengine depends on libxml2 and it is important that your installed versions of these two packages are aligned with each other. Normally this is what your distro maintainers do. It seems like on your side this was messed up somehow.

Without further information I don't think I can help too much, but try this command to enforce an up-to-date and fully aligned install between libxml2 and python-pyqt6-webengine

pacman -Suy libxml2 python-pyqt6-webengine

Maybe you have installed a weird AUR version of one of these or have done a partial system upgrade (hence the uy to update everything). I explicitly recommend pacman here, not pamac.

If that does not want to help give me the output for these commands:

pacman -Ql libxml2
pacman -Qs libxml2
pacman -Qs python-pyqt6-webengine

And if the two libxml2 commands above throw errors:

pacman -Qo /usr/lib/libxml2.so.*

testingwithfire commented on 2025-05-28 15:51 (UTC)

Hi Alex, I can't make head or tail of what I should do next based on what you wrote, unfortunately.

It's too bad that anki itself is such a behemoth; wish they offered skinnied-down versions.

AlexBocken commented on 2025-05-28 15:43 (UTC)

@testwithfire Thanks for the report! This sounds like a python-pyqt6-webengine issue. Mainly, that it has not been built against your installed version of libxml2. I'm not sure how libxml2 and python-pyqt6-webengine are installed on your side as I do not use Manjaro. My tip would be to see whether you can force a rebuild of python-pyqt6-webengine against your installed version via a re-install (clearing any relevant caches before) or down(?)-grading your libxml2 to be at at a suitable version. Note that for me /usr/lib/libxml2.so.16 is present with the current Arch repo version 2.14.3-1 of libxml2. Hope that helps!

testingwithfire commented on 2025-05-28 15:34 (UTC) (edited on 2025-05-28 15:35 (UTC) by testingwithfire)

I'm running Manjaro 25.0.1 "Zetar", XFCE desktop. Note that this is the minimal install.

I just ran pamac build anki.

anki 25.02.5-1 will not run in this environment. In the CLI, I see the following errors:

Traceback (most recent call last):
  File "/usr/bin/anki", line 5, in <module>
    from aqt import run
  File "/usr/lib/python3.13/site-packages/aqt/__init__.py", line 56, in <module>
    from aqt import gui_hooks
  File "/usr/lib/python3.13/site-packages/aqt/gui_hooks.py", line 11, in <module>
    from _aqt.hooks import *
  File "/usr/lib/python3.13/site-packages/_aqt/hooks.py", line 18, in <module>
    from aqt.qt import QDialog, QEvent, QMenu, QModelIndex, QWidget, QMimeData
  File "/usr/lib/python3.13/site-packages/aqt/qt/__init__.py", line 22, in <module>
    from .qt6 import *
  File "/usr/lib/python3.13/site-packages/aqt/qt/qt6.py", line 19, in <module>
    from PyQt6.QtWebEngineCore import *
ImportError: libxml2.so.16: cannot open shared object file: No such file or directory

quanta.rs commented on 2025-05-01 06:42 (UTC) (edited on 2025-05-02 06:32 (UTC) by quanta.rs)

Edit: SOLVED

So it turns out a recent kernel update wasn't compatible with my nvidia driver (for a really old card). I switched to open source driver and now it works fine. Not a problem from Anki it seems.


Hi.

Anki segfaults for me without any error message:

$ anki 
Starting Anki 25.02.4...
2025-05-01 12:07:41,774:INFO:aqt.mediasrv: Serving on http://127.0.0.1:33545
[1]    189287 segmentation fault (core dumped)  anki

I used to have Anki installed in past and it worked. I reinstalled it after a long time.

I was suspecting that maybe my old config/data was a problem, so I did:

rm -rf ~/.local/share/Anki2 ~/.local/share/Anki

Is there a way to identify what is causing this to happen?

Thanks.

(P.S. I am building from 111cc4de0742 which is where master is at the time of writing.)

AlexBocken commented on 2025-04-17 08:59 (UTC)

Hello @annatar1995 Many thanks for your report. I don't believe this is an anki issue, more likely, this is a graphics driver issue for you. Recently, some changes were done to the ownership of drivers on Arch iirc. Adapting your user to be part of the relevant group (check the ownership of /dev/dri/renderD128 or similar files and add your user to the relevant group).

An insecure but quick fix would be a chmod 666 /dev/dri/renderD128 but I would not recommend giving your entire system rw rights.

annatar1995 commented on 2025-04-14 11:47 (UTC) (edited on 2025-04-17 07:26 (UTC) by annatar1995)

Hello.

When trying to run Anki I get the following:


❯ anki
Starting Anki 25.02...
2025-04-14 13:42:01,447:INFO:aqt.mediasrv: Serving on http://127.0.0.1:36113
Starting main loop...
[52712:52861:0414/134201.823577:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
[52712:52861:0414/134201.823588:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[52712:52861:0414/134201.823592:ERROR:native_pixmap_egl_binding.cc(118)] Unable to initialize binding from pixmap
[52712:52861:0414/134201.823608:ERROR:ozone_image_backing.cc(309)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[52712:52861:0414/134201.823611:ERROR:shared_image_manager.cc(255)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[52712:52861:0414/134201.823613:ERROR:native_skia_output_device.cpp(261)] ProduceSkia() failed.
[52712:52861:0414/134201.823674:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823713:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823758:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823825:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823915:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.823957:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.824016:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.824042:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[52712:52861:0414/134201.824106:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824109:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.824129:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824131:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.824144:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824147:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.824155:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.824158:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
Qt debug: Compositor returned null texture
Qt debug: Compositor returned null texture
[52712:52861:0414/134201.837337:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.837345:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
[52712:52861:0414/134201.837492:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[52712:52861:0414/134201.837497:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
zsh: segmentation fault (core dumped)  anki

This is using Wayland Plasma. Adding


QT_QPA_PLATFORM=wayland
ANKI_WAYLAND=1

beforehand did nothing. anki-bin does not work either.

Thanks in advance, and apologies if this is a dumb question.

Edit: I tried on X11 i3. It did run, but the GUI contained a lot of blocks, some black. It was not usable.

Edit: The fix here: https://www.reddit.com/r/Anki/comments/1jtozfe/anki_failed_to_start_after_update_linux/ worked for me.