Crash on startup (floating point exception)

I can no longer start Anki (manjaro linux). After the window appears, it just crashes on load. I assume some kind of dependency problem, but wouldn’t know where to start. Would be great if someone could take a look, thanks.

$ anki --safemode
Starting Anki 25.07.5...
2025-08-31 11:55:41,630:INFO:aqt.mediasrv: Serving on http://127.0.0.1:37831
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switchedDetected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
 to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Qt warning: Failed to create popup. Ensure popup  QWidgetWindow(0x5643e09cbe40, name="CustomLabelClassWindow") has a transientParent set. 
Starting main loop...
zsh: floating point exception (core dumped)  anki --safemode

1 Like

Can you show us the core dumped file? Here’s a link that teaches you how get the file: debugging - Where do I find core dump files, and how do I view and analyze the backtrace (stack trace) in one? - Ask Ubuntu.

Alternatively: The anki executable is actually just a symlink, linking to a bash script, which in turn opens the laucher. You could run it in gdb and hope that the backtrace is useful (which it might not be since there shouldn’t be any debug symbols). You can run it like this:

gdb --args /usr/local/share/anki/launcher.amd64 --safemode

Then type r to run the program, cause the crash, and run bt full to get the full backtrace. Please share this backtrace here in the forums.

3 Likes

My anki doesn’t seem to be packaged that way.

$ which anki
/usr/bin/anki
$ cat /usr/bin/anki
#!/usr/bin/env python3
# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html

import os
import sys

try:
    import bazelfixes

    bazelfixes.fix_pywin32_in_bazel()
    bazelfixes.fix_extraneous_path_in_bazel()
    bazelfixes.fix_run_on_macos()
except ImportError:
    pass

import aqt

if not os.environ.get("ANKI_IMPORT_ONLY"):
    aqt.run()

Anyways: here is the gdb backtrace:

$ gdb --args python3 /usr/bin/anki --safemode
GNU gdb (GDB) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) 
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
(No debugging symbols found in python3)
(gdb) r
Starting program: /usr/bin/python3 /usr/bin/anki --safemode
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Detaching after vfork from child process 1317546]
[Detaching after vfork from child process 1317560]
Starting Anki 25.07.5...
[New Thread 0x7fffcf64f6c0 (LWP 1317561)]
[New Thread 0x7fffccdff6c0 (LWP 1317563)]
[New Thread 0x7fffc7fff6c0 (LWP 1317564)]
[New Thread 0x7fffc4bff6c0 (LWP 1317565)]
[New Thread 0x7fffbffff6c0 (LWP 1317566)]
[New Thread 0x7fffbf7fe6c0 (LWP 1317567)]
[New Thread 0x7fffbeffd6c0 (LWP 1317568)]
[New Thread 0x7fffbe7fc6c0 (LWP 1317569)]
[New Thread 0x7fffbdffb6c0 (LWP 1317570)]
[New Thread 0x7fffbd7fa6c0 (LWP 1317571)]
[Thread 0x7fffbe7fc6c0 (LWP 1317569) exited]
[Thread 0x7fffbdffb6c0 (LWP 1317570) exited]
[Thread 0x7fffbd7fa6c0 (LWP 1317571) exited]
[Thread 0x7fffbf7fe6c0 (LWP 1317567) exited]
[Thread 0x7fffbeffd6c0 (LWP 1317568) exited]
[Thread 0x7fffbffff6c0 (LWP 1317566) exited]
[Thread 0x7fffc4bff6c0 (LWP 1317565) exited]
[New Thread 0x7fffc4bff6c0 (LWP 1317572)]
[New Thread 0x7fffbffff6c0 (LWP 1317573)]
[New Thread 0x7fffbeffd6c0 (LWP 1317574)]
[New Thread 0x7fffbf7fe6c0 (LWP 1317575)]
[New Thread 0x7fffbe7fc6c0 (LWP 1317576)]
[New Thread 0x7fffbdffb6c0 (LWP 1317577)]
[New Thread 0x7fffbd7fa6c0 (LWP 1317578)]
[New Thread 0x7fffbcff96c0 (LWP 1317579)]
[New Thread 0x7fffae7ff6c0 (LWP 1317580)]
[New Thread 0x7fffadffe6c0 (LWP 1317581)]
[New Thread 0x7fffad7fd6c0 (LWP 1317582)]
[New Thread 0x7fffacffc6c0 (LWP 1317583)]
[New Thread 0x7fffac7fb6c0 (LWP 1317584)]
[Thread 0x7fffac7fb6c0 (LWP 1317584) exited]
[Thread 0x7fffacffc6c0 (LWP 1317583) exited]
[Thread 0x7fffad7fd6c0 (LWP 1317582) exited]
[Thread 0x7fffadffe6c0 (LWP 1317581) exited]
[Thread 0x7fffae7ff6c0 (LWP 1317580) exited]
[Thread 0x7fffbcff96c0 (LWP 1317579) exited]
[New Thread 0x7fffbcff96c0 (LWP 1317585)]
[New Thread 0x7fffae7ff6c0 (LWP 1317586)]
[New Thread 0x7fffadffe6c0 (LWP 1317587)]
[New Thread 0x7fffad7fd6c0 (LWP 1317588)]
[New Thread 0x7fffacffc6c0 (LWP 1317589)]
2025-08-31 15:01:28,582:INFO:aqt.mediasrv: Serving on http://127.0.0.1:40793
[New Thread 0x7fffa7fff6c0 (LWP 1317590)]
[New Thread 0x7fffa77fe6c0 (LWP 1317591)]
[New Thread 0x7fffa6ffd6c0 (LWP 1317592)]
[New Thread 0x7fffa67fc6c0 (LWP 1317593)]
[New Thread 0x7fffa5ffb6c0 (LWP 1317594)]
[New Thread 0x7fffa57fa6c0 (LWP 1317595)]
[Thread 0x7fffa57fa6c0 (LWP 1317595) exited]
[Thread 0x7fffa5ffb6c0 (LWP 1317594) exited]
[Thread 0x7fffa67fc6c0 (LWP 1317593) exited]
[Thread 0x7fffa6ffd6c0 (LWP 1317592) exited]
[Thread 0x7fffa77fe6c0 (LWP 1317591) exited]
[Thread 0x7fffa7fff6c0 (LWP 1317590) exited]
[New Thread 0x7fffa7fff6c0 (LWP 1317596)]
[New Thread 0x7fffa77fe6c0 (LWP 1317597)]
[New Thread 0x7fffa6ffd6c0 (LWP 1317598)]
[New Thread 0x7fffa67fc6c0 (LWP 1317599)]
[New Thread 0x7fffa5ffb6c0 (LWP 1317600)]
[New Thread 0x7fffa57fa6c0 (LWP 1317601)]
[Thread 0x7fffa57fa6c0 (LWP 1317601) exited]
[Thread 0x7fffa5ffb6c0 (LWP 1317600) exited]
[Thread 0x7fffa67fc6c0 (LWP 1317599) exited]
[Thread 0x7fffa6ffd6c0 (LWP 1317598) exited]
[Thread 0x7fffa77fe6c0 (LWP 1317597) exited]
[Thread 0x7fffa7fff6c0 (LWP 1317596) exited]
[New Thread 0x7fffa7fff6c0 (LWP 1317602)]
[Detaching after fork from child process 1317603]
[Detaching after fork from child process 1317604]
[Detaching after fork from child process 1317605]
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switchedDetected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
 to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
[New Thread 0x7fffa77fe6c0 (LWP 1317608)]
[New Thread 0x7fffa6ffd6c0 (LWP 1317609)]
[New Thread 0x7fffa67fc6c0 (LWP 1317610)]
[New Thread 0x7fffa55ff6c0 (LWP 1317611)]
[New Thread 0x7fffa4dfe6c0 (LWP 1317612)]
[New Thread 0x7fff87fff6c0 (LWP 1317613)]
[New Thread 0x7fff877fe6c0 (LWP 1317614)]
[New Thread 0x7fff86ffd6c0 (LWP 1317615)]
[New Thread 0x7fff867fc6c0 (LWP 1317616)]
[New Thread 0x7fff85ffb6c0 (LWP 1317617)]
[New Thread 0x7fff857fa6c0 (LWP 1317618)]
[New Thread 0x7fff84ff96c0 (LWP 1317619)]
[New Thread 0x7fff7ffff6c0 (LWP 1317620)]
[New Thread 0x7fff7f7fe6c0 (LWP 1317621)]
[New Thread 0x7fff7effd6c0 (LWP 1317622)]
[New Thread 0x7fff7e7fc6c0 (LWP 1317623)]
[New Thread 0x7fff7dffb6c0 (LWP 1317624)]
[New Thread 0x7fff7d7fa6c0 (LWP 1317625)]
[Thread 0x7fff7d7fa6c0 (LWP 1317625) exited]
[Thread 0x7fff7dffb6c0 (LWP 1317624) exited]
[Thread 0x7fff7e7fc6c0 (LWP 1317623) exited]
[Thread 0x7fff7effd6c0 (LWP 1317622) exited]
[Thread 0x7fff7f7fe6c0 (LWP 1317621) exited]
[Thread 0x7fff7ffff6c0 (LWP 1317620) exited]
[New Thread 0x7fff7ffff6c0 (LWP 1317626)]
[New Thread 0x7fff7f7fe6c0 (LWP 1317627)]
[New Thread 0x7fff7effd6c0 (LWP 1317628)]
[New Thread 0x7fff7e7fc6c0 (LWP 1317629)]
[New Thread 0x7fff7dffb6c0 (LWP 1317630)]
[New Thread 0x7fff7d7fa6c0 (LWP 1317631)]
[New Thread 0x7fff7cff96c0 (LWP 1317632)]
[New Thread 0x7fff5ffff6c0 (LWP 1317633)]
warning: Missing auto-load script at offset 0 in section .debug_gdb_scripts
of file /usr/lib/libvulkan_nouveau.so.
Use `info auto-load python-scripts [REGEXP]' to list them.
[New Thread 0x7fff56fff6c0 (LWP 1317634)]
[New Thread 0x7fff567fe6c0 (LWP 1317635)]
[Thread 0x7fff567fe6c0 (LWP 1317635) exited]
[Thread 0x7fff56fff6c0 (LWP 1317634) exited]
[New Thread 0x7fff567fe6c0 (LWP 1317636)]
[New Thread 0x7fff56fff6c0 (LWP 1317637)]
[New Thread 0x7fff55ffd6c0 (LWP 1317638)]
[New Thread 0x7fff557fc6c0 (LWP 1317639)]
[New Thread 0x7fff54ffb6c0 (LWP 1317640)]
[New Thread 0x7fff4ffff6c0 (LWP 1317641)]
[New Thread 0x7fff4f7fe6c0 (LWP 1317642)]
[New Thread 0x7fff4effd6c0 (LWP 1317643)]
[New Thread 0x7fff4e7fc6c0 (LWP 1317644)]
[New Thread 0x7fff4dffb6c0 (LWP 1317645)]
[New Thread 0x7fff4d7fa6c0 (LWP 1317646)]
[New Thread 0x7fff4cff96c0 (LWP 1317647)]
[New Thread 0x7fff4c7f86c0 (LWP 1317648)]
[New Thread 0x7fff4bff76c0 (LWP 1317649)]
[New Thread 0x7fff4b7f66c0 (LWP 1317650)]
[New Thread 0x7fff4aff56c0 (LWP 1317651)]
[New Thread 0x7fff4a7f46c0 (LWP 1317652)]
[New Thread 0x7fff49ff36c0 (LWP 1317653)]
[New Thread 0x7fff497f26c0 (LWP 1317654)]
[New Thread 0x7fff48ff16c0 (LWP 1317655)]
[New Thread 0x7fff487f06c0 (LWP 1317656)]
[New Thread 0x7fff47fef6c0 (LWP 1317657)]
[New Thread 0x7fff477ee6c0 (LWP 1317659)]
[New Thread 0x7fff46fed6c0 (LWP 1317660)]
[New Thread 0x7fff467ec6c0 (LWP 1317661)]
[New Thread 0x7fff45feb6c0 (LWP 1317662)]
[New Thread 0x7fff457ea6c0 (LWP 1317663)]
[New Thread 0x7fff44fe96c0 (LWP 1317664)]
[New Thread 0x7fff3ffff6c0 (LWP 1317665)]
[New Thread 0x7fff3f7fe6c0 (LWP 1317666)]
[New Thread 0x7fff3effd6c0 (LWP 1317667)]
[Thread 0x7fff3effd6c0 (LWP 1317667) exited]
[Thread 0x7fff44fe96c0 (LWP 1317664) exited]
[Thread 0x7fff3ffff6c0 (LWP 1317665) exited]
[Thread 0x7fff3f7fe6c0 (LWP 1317666) exited]
[Thread 0x7fff45feb6c0 (LWP 1317662) exited]
[Thread 0x7fff457ea6c0 (LWP 1317663) exited]
[Thread 0x7fff467ec6c0 (LWP 1317661) exited]
[New Thread 0x7fff467ec6c0 (LWP 1317668)]
[New Thread 0x7fff457ea6c0 (LWP 1317673)]
[New Thread 0x7fff45feb6c0 (LWP 1317674)]
Qt warning: Failed to create popup. Ensure popup  QWidgetWindow(0x55555764fce0, name="CustomLabelClassWindow") has a transientParent set. 
Starting main loop...
[New Thread 0x7fff3f7fe6c0 (LWP 1317676)]
[New Thread 0x7fff44fe96c0 (LWP 1317677)]
[Detaching after vfork from child process 1317678]
[New Thread 0x7fffac2f76c0 (LWP 1317685)]
[New Thread 0x7fffa45fd6c0 (LWP 1317690)]
[New Thread 0x7fff3ffff6c0 (LWP 1317700)]
[New Thread 0x7fff3effd6c0 (LWP 1317701)]
[New Thread 0x7fff3e7fc6c0 (LWP 1317710)]
[New Thread 0x7fff3d13c6c0 (LWP 1317714)]
[New Thread 0x7fff3c93b6c0 (LWP 1317719)]
[New Thread 0x7fff0dfff6c0 (LWP 1317729)]
[New Thread 0x7fff0d7fe6c0 (LWP 1317730)]
[New Thread 0x7fff0cffd6c0 (LWP 1317731)]
[New Thread 0x7ffefffff6c0 (LWP 1317732)]
[New Thread 0x7ffeff7fe6c0 (LWP 1317733)]
[New Thread 0x7ffefeffd6c0 (LWP 1317734)]
[Thread 0x7ffefeffd6c0 (LWP 1317734) exited]
[Thread 0x7ffeff7fe6c0 (LWP 1317733) exited]
[Thread 0x7ffefffff6c0 (LWP 1317732) exited]
[Thread 0x7fff0cffd6c0 (LWP 1317731) exited]
[Thread 0x7fff0d7fe6c0 (LWP 1317730) exited]
[Thread 0x7fff0dfff6c0 (LWP 1317729) exited]
[New Thread 0x7fff0dfff6c0 (LWP 1317735)]
[New Thread 0x7fff0d7fe6c0 (LWP 1317736)]
[New Thread 0x7fff0cffd6c0 (LWP 1317737)]
[New Thread 0x7ffefffff6c0 (LWP 1317738)]
[New Thread 0x7ffeff7fe6c0 (LWP 1317739)]
[New Thread 0x7ffefeffd6c0 (LWP 1317740)]
[New Thread 0x7ffefe7fc6c0 (LWP 1317741)]
[New Thread 0x7ffefdffb6c0 (LWP 1317742)]
[New Thread 0x7ffefd7fa6c0 (LWP 1317743)]
[New Thread 0x7ffefcff96c0 (LWP 1317744)]
[Thread 0x7ffefcff96c0 (LWP 1317744) exited]
[Thread 0x7ffefd7fa6c0 (LWP 1317743) exited]
[Thread 0x7ffefdffb6c0 (LWP 1317742) exited]
[Thread 0x7ffefe7fc6c0 (LWP 1317741) exited]
[Thread 0x7ffefeffd6c0 (LWP 1317740) exited]
[Thread 0x7ffeff7fe6c0 (LWP 1317739) exited]

Thread 65 "Chrome_InProcGp" received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fff7dffb6c0 (LWP 1317630)]
0x00007fff57028794 in ?? () from /usr/lib/libvulkan_radeon.so
(gdb) bt full
#0  0x00007fff57028794 in ?? () from /usr/lib/libvulkan_radeon.so
No symbol table info available.
#1  0x00007fff5702a113 in ?? () from /usr/lib/libvulkan_radeon.so
No symbol table info available.
#2  0x00007fff5702bab9 in ?? () from /usr/lib/libvulkan_radeon.so
No symbol table info available.
#3  0x00007fff570b3434 in ?? () from /usr/lib/libvulkan_radeon.so
No symbol table info available.
#4  0x00007fff571a294d in ?? () from /usr/lib/libvulkan_radeon.so
No symbol table info available.
#5  0x00007fff571a3452 in ?? () from /usr/lib/libvulkan_radeon.so
No symbol table info available.
#6  0x00007fffec21e93b in ?? () from /usr/lib/libQt6WebEngineCore.so.6
No symbol table info available.
#7  0x00007fff6c62e1f0 in ?? ()
No symbol table info available.
#8  0x00007fff7dff7ef0 in ?? ()
No symbol table info available.
#9  0x0000000000000002 in ?? ()
No symbol table info available.
#10 0x00007fff6ccd0ce0 in ?? ()
No symbol table info available.
#11 0x000000000000002b in ?? ()
No symbol table info available.
#12 0x0000000000000000 in ?? ()
No symbol table info available.

1 Like

I’m guessing you are using a version from your package manager (or at least did not install from https://apps.ankiweb.net/). Maybe you could remove your current installation and check with the installer from ankiweb?

I see three things that are different from my debian trixie:

  1. You get warnings regarding your locale. Not sure if that’s really an issue, though.
  2. You are getting a SIGFPE.
  3. Your are getting a few lines regarding missing symbols in a few libs. That is expected though as far as I can tell (maybe still try to change the video drivers, just in case).

I’m guessing only the second one is really an issue, which might have been introduced by whoever packaged anki on your machine. Please try if the version from ankiweb solves this issue.

2 Likes

Thank you for the help, using the software or opengl driver works. Apparently it’s just vulkan that doesn’t (didn’t know I used that!). The ankiweb binary version yielded the same result as the one from the distrubution.

1 Like