Signal SIGSEGV (Address boundary error) with mesa‑git + Wayland on Kde Plasma

No crash if forcing software rendering via:QTWEBENGINE_CHROMIUM_FLAGS=“–disable-gpu” QT_QUICK_BACKEND=software anki

  1. What are the steps to reproduce?
  2. What does the backtrace show (e.g. with gdb)?
  3. What does Help → About Anki → Copy Debug Info return?
  4. Does it happen in safemode as well?
  5. Can you reproduce if you change the video driver?

The steps to reproduce are to attempt to run anki with mesa-git installed.
The error was not there prior to installing mesa-git.

Anki 25.07.5 (7172b2d2) (ao)
Python 3.13.5 Qt 6.9.2 PyQt 6.9.1
Platform: Linux-6.16.4-4-cachyos-x86_64-with-glibc2.42

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiConnect [‘2055492159’, 2025-06-12T22:01, ‘None’, ‘’]
Minimize to tray [‘85158043’, 2024-12-18T12:23, ‘None’, mod]

===IDs of active AnkiWeb add-ons===
2055492159 85158043

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Yes it happens in safe mode

GDB shows it’s dying inside eglCreateContext() when called with a NULL EGLConfig
EGL_CONTEXT_MAJOR_VERSION_KHR, 3,
EGL_CONTEXT_MINOR_VERSION_KHR, 2,
EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, EGL_LOSE_CONTEXT_ON_RESET_KHR,
EGL_NONE

(gdb) bt full
#0 0x00007fffd44f9165 in ??? () at /usr/lib/libEGL_mesa.so.0
#1 0x00007fffd44e5b00 in ??? () at /usr/lib/libEGL_mesa.so.0
#2 0x00007fffe2b4cc5c in ??? () at /usr/lib/libQt6WebEngineCore.so.6
#3 0x0000000000000015 in ??? ()
#4 0x0000000000000140 in ??? ()
#5 0x00007fff89ff99a8 in ??? ()
#6 0x00007fff7018f720 in ??? ()
#7 0x00007fff70005100 in ??? ()
#8 0x00007fff89ff9be0 in ??? ()
#9 0x00007fff7018f860 in ??? ()
#10 0x00005555573d3890 in ??? ()
#11 0x0000000000000000 in ??? ()

1 Like

Which seems to be a video driver for the gpu, built from git.

Your backtrace indicates an issue with drivers as well. Please try this ↓

Edit: In case you don’t know how to do that. Here’s the manual: Troubleshooting - Anki Manual.

Already tested: Running with QT_QUICK_BACKEND=software (as noted in the original post) has the same effect as echo software > ~/.local/share/Anki2/gldriver6

1 Like

I didn’t know that. Well, in that case you can change the video drivers and it’ll work fine.

Your backtrace seems to indicate that the crash occured in that mesa lib you downloaded (anki doesn’t have a eglCreateContext() function call). It might be best to report this to your mesa-git maintainer (or upstream directly). I don’t think Anki is at fault here, though.

Edit: Unless eglCreateContext() gets called by Anki indirectly, which is a possibility. Maybe someone else here knows more.