clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
521 stars 29 forks source link

[Qt6 error] undefined symbol: _ZTVNSt3pmr25monotonic_buffer_resourceE, version Qt_6 (Anki stopped working) #3001

Closed Gui2Barbieri closed 7 months ago

Gui2Barbieri commented 10 months ago

Hi, currently running Clear Linux 40390. Anki is failing when it worked perfectly fine in the past. The error is as follows when trying to run Anki in console: Anki starting... Initial setup... Traceback (most recent call last): File "<string>", line 1, in <module> File "aqt", line 52, in <module> File "aqt.gui_hooks", line 11, in <module> File "_aqt.hooks", line 18, in <module> File "aqt.qt", line 20, in <module> File "aqt.qt.qt6", line 17, in <module> ImportError: /usr/local/share/anki/lib/PyQt6/Qt6/lib/libQt6Quick.so.6: undefined symbol: _ZTVNSt3pmr25monotonic_buffer_resourceE, version Qt_6 Flatpak version works fine.

fenrus75 commented 10 months ago

the weird part is that this qt6 library doesn't come from the OS.. even though we do have a version of it...

On Sun, Nov 26, 2023, 16:14 Cueropedo @.***> wrote:

Hi, currently running Clear Linux 40390. Anki is failing when it worked perfectly fine in the past. The error is as follows when trying to run Anki in console: Anki starting... Initial setup... Traceback (most recent call last): File "", line 1, in File "aqt", line 52, in File "aqt.gui_hooks", line 11, in File "_aqt.hooks", line 18, in

File "aqt.qt", line 20, in File "aqt.qt.qt6", line 17, in ImportError: /usr/local/share/anki/lib/PyQt6/Qt6/lib/libQt6Quick.so.6: undefined symbol: _ZTVNSt3pmr25monotonic_buffer_resourceE, version Qt_6 Flatpak version works fine. — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Gui2Barbieri commented 10 months ago

Hm... does that mean it's an Anki issue? I have the following bundles installed, maybe I'm missing something? :

swupd bundle-list Error: Failed to retrieve 40390 MoM manifest Warning: Could not determine which installed bundles are experimental

Installed bundles:

Total: 167

fenrus75 commented 10 months ago

The one key one missing is "qt6-basic" which has our basic qt6 content... maybe add that? It could be that you got some very elementary other qt6 things from other bundles, but not enough, and then anki uses half of the system half of its own of some sort? (this is just speculation on how such a library mess could happen)

On Sun, Nov 26, 2023 at 8:19 AM Cueropedo @.***> wrote:

Hm... does that mean it's an Anki issue? I have the following bundles installed, maybe I'm missing something? :

swupd bundle-list Error: Failed to retrieve 40390 MoM manifest Warning: Could not determine which installed bundles are experimental

Installed bundles:

  • Babel
  • LibRaw-lib
  • NetworkManager
  • NetworkManager-extras
  • NetworkManager-tui
  • PyYAML
  • Sphinx
  • accel-config
  • acpica-unix2
  • alsa-utils
  • aspell
  • audio-pipewire
  • binutils
  • bison
  • bootloader
  • btrfs-progs
  • c-basic
  • cloud-api
  • clr-hardware-files
  • connections
  • curl
  • dav1d-lib
  • dbus-lib
  • desktop
  • desktop-apps
  • desktop-assets
  • desktop-autostart
  • desktop-gnomelibs
  • desktop-locales
  • diffutils
  • dnf
  • eog
  • file
  • file-roller
  • findutils
  • flatpak
  • flex
  • fontconfig
  • fonts-basic
  • fuse
  • gdb
  • gdk-pixbuf
  • gedit
  • gegl
  • ghostscript
  • gimp
  • git
  • gjs
  • glibc-locale
  • gmp-lib
  • gnome-base-libs
  • gnome-calculator
  • gnome-color-manager
  • gnome-disk-utility
  • gnome-system-monitor
  • gnupg
  • gobject-introspection
  • gpgme
  • gphoto
  • graphviz
  • gstreamer
  • gzip
  • hardware-uefi
  • harfbuzz-lib
  • htop
  • icu4c-lib
  • intltool
  • iperf
  • iproute2
  • iptables
  • java-basic
  • kbd
  • kernel-install
  • kernel-native
  • less
  • lib-imageformat
  • lib-opengl
  • lib-openssl
  • lib-poppler
  • lib-samba
  • libX11client
  • libXpm-lib
  • libarchive
  • libevent-lib
  • libglib
  • libnl
  • libpcap-lib
  • libpsl-lib
  • libssh-lib
  • libstdcpp
  • libunwind-lib
  • libva-utils
  • libxml2
  • linux-firmware
  • linux-firmware-extras
  • linux-firmware-wifi
  • llvm
  • lsof
  • lz4
  • make
  • man-pages
  • minicom
  • moreutils
  • mpfr-lib
  • nasm
  • nautilus
  • ncurses-lib
  • nettle-lib
  • not-ffmpeg-lib
  • numactl
  • openblas
  • openldap
  • openssh-client
  • openssh-server
  • openssl
  • os-core
  • os-core-plus
  • os-core-update
  • os-core-webproxy
  • p11-kit
  • package-utils
  • pandas
  • parallel
  • patch
  • pcre-lib
  • perl-basic
  • polkit
  • poppler
  • popt-lib
  • powertop
  • procps-ng
  • protobuf-lib
  • pulseaudio
  • pygobject
  • pypi-cython
  • pypi-numpy
  • pypi-requests
  • pypi-six
  • python-extras
  • python3-basic
  • python3-tcl
  • qemu-guest-additions
  • qt-basic
  • qt-core
  • seahorse
  • socat
  • sqlite
  • strace
  • sudo
  • sysadmin-basic
  • syslinux
  • systemd
  • tcl-basic
  • telemetrics
  • thermal_daemon
  • tmux
  • tree
  • tzdata
  • unzip
  • vte-lib
  • wayland-server
  • webkitgtk
  • which
  • wpa_supplicant
  • xz
  • yaml
  • zstd

Total: 167

— Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/3001#issuecomment-1826826279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FP7D72I6ET5HUHDWPDYGNT2RAVCNFSM6AAAAAA725PNOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHAZDMMRXHE . You are receiving this because you commented.Message ID: @.***>

Gui2Barbieri commented 10 months ago

The one key one missing is "qt6-basic" which has our basic qt6 content... maybe add that? It could be that you got some very elementary other qt6 things from other bundles, but not enough, and then anki uses half of the system half of its own of some sort? (this is just speculation on how such a library mess could happen) On Sun, Nov 26, 2023 at 8:19 AM Cueropedo @.> wrote: Hm... does that mean it's an Anki issue? I have the following bundles installed, maybe I'm missing something? : swupd bundle-list Error: Failed to retrieve 40390 MoM manifest Warning: Could not determine which installed bundles are experimental Installed bundles: - Babel - LibRaw-lib - NetworkManager - NetworkManager-extras - NetworkManager-tui - PyYAML - Sphinx - accel-config - acpica-unix2 - alsa-utils - aspell - audio-pipewire - binutils - bison - bootloader - btrfs-progs - c-basic - cloud-api - clr-hardware-files - connections - curl - dav1d-lib - dbus-lib - desktop - desktop-apps - desktop-assets - desktop-autostart - desktop-gnomelibs - desktop-locales - diffutils - dnf - eog - file - file-roller - findutils - flatpak - flex - fontconfig - fonts-basic - fuse - gdb - gdk-pixbuf - gedit - gegl - ghostscript - gimp - git - gjs - glibc-locale - gmp-lib - gnome-base-libs - gnome-calculator - gnome-color-manager - gnome-disk-utility - gnome-system-monitor - gnupg - gobject-introspection - gpgme - gphoto - graphviz - gstreamer - gzip - hardware-uefi - harfbuzz-lib - htop - icu4c-lib - intltool - iperf - iproute2 - iptables - java-basic - kbd - kernel-install - kernel-native - less - lib-imageformat - lib-opengl - lib-openssl - lib-poppler - lib-samba - libX11client - libXpm-lib - libarchive - libevent-lib - libglib - libnl - libpcap-lib - libpsl-lib - libssh-lib - libstdcpp - libunwind-lib - libva-utils - libxml2 - linux-firmware - linux-firmware-extras - linux-firmware-wifi - llvm - lsof - lz4 - make - man-pages - minicom - moreutils - mpfr-lib - nasm - nautilus - ncurses-lib - nettle-lib - not-ffmpeg-lib - numactl - openblas - openldap - openssh-client - openssh-server - openssl - os-core - os-core-plus - os-core-update - os-core-webproxy - p11-kit - package-utils - pandas - parallel - patch - pcre-lib - perl-basic - polkit - poppler - popt-lib - powertop - procps-ng - protobuf-lib - pulseaudio - pygobject - pypi-cython - pypi-numpy - pypi-requests - pypi-six - python-extras - python3-basic - python3-tcl - qemu-guest-additions - qt-basic - qt-core - seahorse - socat - sqlite - strace - sudo - sysadmin-basic - syslinux - systemd - tcl-basic - telemetrics - thermal_daemon - tmux - tree - tzdata - unzip - vte-lib - wayland-server - webkitgtk - which - wpa_supplicant - xz - yaml - zstd Total: 167 — Reply to this email directly, view it on GitHub <#3001 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FP7D72I6ET5HUHDWPDYGNT2RAVCNFSM6AAAAAA725PNOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHAZDMMRXHE . You are receiving this because you commented.Message ID: @.>

I think your reasoning is correct, I installed the "qt6-basic" bundle and now Anki is working again! Thanks a lot fenrus! I'm closing the issue.

Gui2Barbieri commented 9 months ago

I'm afraid to announce that the problem is back again, even with the qt6 bundle :( Terminal is showing this: Anki starting... Initial setup... Traceback (most recent call last): File "<string>", line 1, in <module> File "aqt", line 52, in <module> File "aqt.gui_hooks", line 11, in <module> File "_aqt.hooks", line 18, in <module> File "aqt.qt", line 20, in <module> File "aqt.qt.qt6", line 12, in <module> ImportError: /usr/local/share/anki/lib/PyQt6/QtCore.abi3.so: undefined symbol: _ZN14QReadWriteLock16destroyRecursiveEP21QReadWriteLockPrivate, version Qt_6_PRIVATE_API

I did try uninstalling the "qt6-basic" bundle, and installing again, but it's not working unfortunately :(

Forgot to say, my OS Version is 40520.

Gui2Barbieri commented 7 months ago

Anki starting... Initial setup... Preparing to run... Wayland support is disabled by default due to bugs: https://github.com/ankitects/anki/issues/1767 You can force it on with an env var: ANKI_WAYLAND=1 Qt warning: QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix Qt warning: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled Qt info: Sandboxing disabled by user. Qt fatal: Cannot mix incompatible Qt library (6.6.1) with this library (6.6.2) Aborted (core dumped) It's weird, from time to time, Anki works no problem, but after some OS updates, it tends to break...