You are not logged in.

#1 2019-12-27 20:37:33

dakota
Member
Registered: 2016-05-20
Posts: 273

[SOLVED] anki 2.1.15-1 crashes after qt update

After a recent update of several qt packages on 12/22, anki stopped working. I would like to fix the problem... or alert the maintainers/developers of the problem if I can not fix it.

Problem

I can open anki without error and use it as normal to Study and to Browse. However, when I Add or Edit a card, anki closes with a segmentation fault. Downgrading the qt packages that were upgraded allows anki to work again.

$ pacman -Qi anki

Name            : anki
Version         : 2.1.15-1
Description     : Helps you remember facts (like words/phrases in a foreign language) efficiently
Architecture    : any
URL             : https://ankisrs.net/
Licenses        : AGPL3
Groups          : None
Provides        : None
Depends On      : qt5-webengine  python-beautifulsoup4  python-pyaudio  python-pyqt5  python-pyqtwebengine  python-requests  python-send2trash
                  python-decorator  python-markdown  python-jsonschema  python-distro  desktop-file-utils
Optional Deps   : lame: record sound [installed]
                  mpv: play sound. prefered over mplayer [installed]
                  mplayer: play sound
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 13.13 MiB
Packager        : Johannes Löthberg <johannes@kyriasis.com>
Build Date      : Mon 16 Sep 2019 06:35:12 PM PDT
Install Date    : Sun 08 Dec 2019 07:52:36 AM PST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Pacman Log on 12/22 to upgrade

[2019-12-22T21:33:47-0800] [PACMAN] Running 'pacman -Syu'
[2019-12-22T21:33:47-0800] [PACMAN] synchronizing package lists
[2019-12-22T21:33:57-0800] [PACMAN] starting full system upgrade
[2019-12-22T21:45:16-0800] [PACMAN] Running 'pacman -Syu'
[2019-12-22T21:45:16-0800] [PACMAN] synchronizing package lists
[2019-12-22T21:45:17-0800] [PACMAN] starting full system upgrade
[2019-12-22T21:49:29-0800] [ALPM] running '60-mkinitcpio-remove.hook'...
[2019-12-22T21:49:29-0800] [ALPM] transaction started
[2019-12-22T21:49:29-0800] [ALPM] removed pyqt5-common (5.13.2-3)
[2019-12-22T21:49:30-0800] [ALPM] upgraded libtorrent-rasterbar (1:1.1.13-4 -> 1:1.2.2-1)
[2019-12-22T21:49:30-0800] [ALPM] upgraded python-setuptools (1:41.6.0-1 -> 1:42.0.2-1)
[2019-12-22T21:49:30-0800] [ALPM] installed xorgproto (2019.2-2)
[2019-12-22T21:49:30-0800] [ALPM] upgraded libx11 (1.6.9-5 -> 1.6.9-6)
[2019-12-22T21:49:30-0800] [ALPM] upgraded deluge (2.0.3+23+g5f1eada3e-1 -> 2.0.4.dev23+g2f1c008a2-1)
[2019-12-22T21:49:37-0800] [ALPM] upgraded linux (5.4.5.arch1-1 -> 5.4.6.arch1-1)
[2019-12-22T21:49:42-0800] [ALPM] upgraded linux-lts (4.19.90-1 -> 4.19.91-1)
[2019-12-22T21:49:42-0800] [ALPM] installed md4c (0.4.2-1)
[2019-12-22T21:49:44-0800] [ALPM] upgraded qt5-base (5.13.2-3 -> 5.14.0-1)
[2019-12-22T21:49:45-0800] [ALPM] upgraded python-pyqt5 (5.13.2-8 -> 5.14.0-3)
[2019-12-22T21:49:46-0800] [ALPM] upgraded qt5-declarative (5.13.2-1 -> 5.14.0-2)
[2019-12-22T21:49:46-0800] [ALPM] upgraded qt5-webchannel (5.13.2-1 -> 5.14.0-1)
[2019-12-22T21:49:46-0800] [ALPM] upgraded qt5-location (5.13.2-2 -> 5.14.0-1)
[2019-12-22T21:49:51-0800] [ALPM] upgraded qt5-webengine (5.13.2-4 -> 5.14.0-1)
[2019-12-22T21:49:51-0800] [ALPM] upgraded python-pyqtwebengine (5.13.2-4 -> 5.14.0-1)
[2019-12-22T21:49:51-0800] [ALPM] upgraded python2-setuptools (1:41.6.0-1 -> 1:42.0.2-1)
[2019-12-22T21:49:51-0800] [ALPM] upgraded qt5-svg (5.13.2-1 -> 5.14.0-1)
[2019-12-22T21:49:51-0800] [ALPM] upgraded qt5-xmlpatterns (5.13.2-1 -> 5.14.0-1)
[2019-12-22T21:49:51-0800] [ALPM] transaction completed
[2019-12-22T21:49:52-0800] [ALPM] running '20-systemd-sysusers.hook'...
[2019-12-22T21:49:52-0800] [ALPM] running '30-systemd-daemon-reload.hook'...
[2019-12-22T21:49:52-0800] [ALPM] running '30-systemd-tmpfiles.hook'...
[2019-12-22T21:49:52-0800] [ALPM] running '30-systemd-update.hook'...
[2019-12-22T21:49:52-0800] [ALPM] running '60-depmod.hook'...
[2019-12-22T21:50:09-0800] [ALPM] running '90-mkinitcpio-install.hook'...
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET] ==> Starting build: 4.19.91-1-lts
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2019-12-22T21:50:10-0800] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2019-12-22T21:50:11-0800] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2019-12-22T21:50:11-0800] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2019-12-22T21:50:11-0800] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2019-12-22T21:50:11-0800] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2019-12-22T21:50:12-0800] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-12-22T21:50:12-0800] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET] ==> Starting build: 4.19.91-1-lts
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2019-12-22T21:50:15-0800] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2019-12-22T21:50:16-0800] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2019-12-22T21:50:17-0800] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2019-12-22T21:50:20-0800] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2019-12-22T21:50:22-0800] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2019-12-22T21:50:23-0800] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2019-12-22T21:50:23-0800] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2019-12-22T21:50:26-0800] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-12-22T21:50:26-0800] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
[2019-12-22T21:50:33-0800] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-12-22T21:50:33-0800] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2019-12-22T21:50:33-0800] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-12-22T21:50:33-0800] [ALPM-SCRIPTLET] ==> Starting build: 5.4.6-arch1-1
[2019-12-22T21:50:33-0800] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2019-12-22T21:50:34-0800] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2019-12-22T21:50:34-0800] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2019-12-22T21:50:34-0800] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2019-12-22T21:50:34-0800] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2019-12-22T21:50:35-0800] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2019-12-22T21:50:35-0800] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2019-12-22T21:50:35-0800] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2019-12-22T21:50:35-0800] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2019-12-22T21:50:36-0800] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-12-22T21:50:36-0800] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-12-22T21:50:38-0800] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-12-22T21:50:38-0800] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2019-12-22T21:50:38-0800] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2019-12-22T21:50:38-0800] [ALPM-SCRIPTLET] ==> Starting build: 5.4.6-arch1-1
[2019-12-22T21:50:38-0800] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2019-12-22T21:50:39-0800] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2019-12-22T21:50:39-0800] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2019-12-22T21:50:39-0800] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2019-12-22T21:50:39-0800] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2019-12-22T21:50:41-0800] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2019-12-22T21:50:44-0800] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2019-12-22T21:50:45-0800] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2019-12-22T21:50:47-0800] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2019-12-22T21:50:47-0800] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2019-12-22T21:50:49-0800] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-12-22T21:50:50-0800] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2019-12-22T21:50:57-0800] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-12-22T21:50:57-0800] [ALPM] running 'gtk-update-icon-cache.hook'...
[2019-12-22T21:50:57-0800] [ALPM] running 'update-desktop-database.hook'...

Pacman Log on 12/22 to add a couple of pacman-deleted packages and downgrade the rest

[2019-12-23T07:33:52-0800] [PACMAN] Running 'pacman -S pyqt5-common'
[2019-12-23T07:34:24-0800] [PACMAN] Running 'pacman -S qt5-base'
[2019-12-23T07:44:17-0800] [PACMAN] Running 'pacman -U /var/cache/pacman/pkg/pyqt5-common-5.13.2-3-x86_64.pkg.tar.xz /var/cache/pacman/pkg/qt5-base-5.13.2-3-x86_64.pkg.tar.xz /var/cache/pacman/pkg/python-pyqt5-5.13.2-8-x86_64.pkg.tar.xz /var/cache/pacman/pkg/qt5-declarative-5.13.2-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/qt5-webchannel-5.13.2-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/qt5-location-5.13.2-2-x86_64.pkg.tar.xz /var/cache/pacman/pkg/qt5-webengine-5.13.2-3-x86_64.pkg.tar.xz /var/cache/pacman/pkg/python-pyqtwebengine-5.13.2-4-x86_64.pkg.tar.xz /var/cache/pacman/pkg/python-setuptools-1:41.6.0-1-any.pkg.tar.xz /var/cache/pacman/pkg/qt5-svg-5.13.2-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/qt5-xmlpatterns-5.13.2-1-x86_64.pkg.tar.xz'
[2019-12-23T07:44:35-0800] [ALPM] transaction started
[2019-12-23T07:44:37-0800] [ALPM] downgraded qt5-base (5.14.0-1 -> 5.13.2-3)
[2019-12-23T07:44:37-0800] [ALPM] installed pyqt5-common (5.13.2-3)
[2019-12-23T07:44:38-0800] [ALPM] downgraded python-pyqt5 (5.14.0-3 -> 5.13.2-8)
[2019-12-23T07:44:38-0800] [ALPM] downgraded qt5-declarative (5.14.0-2 -> 5.13.2-1)
[2019-12-23T07:44:38-0800] [ALPM] downgraded qt5-webchannel (5.14.0-1 -> 5.13.2-1)
[2019-12-23T07:44:39-0800] [ALPM] downgraded qt5-location (5.14.0-1 -> 5.13.2-2)
[2019-12-23T07:44:44-0800] [ALPM] downgraded qt5-webengine (5.14.0-1 -> 5.13.2-3)
[2019-12-23T07:44:44-0800] [ALPM] downgraded python-pyqtwebengine (5.14.0-1 -> 5.13.2-4)
[2019-12-23T07:44:44-0800] [ALPM] downgraded python-setuptools (1:42.0.2-1 -> 1:41.6.0-1)
[2019-12-23T07:44:44-0800] [ALPM] downgraded qt5-svg (5.14.0-1 -> 5.13.2-1)
[2019-12-23T07:44:44-0800] [ALPM] downgraded qt5-xmlpatterns (5.14.0-1 -> 5.13.2-1)
[2019-12-23T07:44:44-0800] [ALPM] transaction completed
[2019-12-23T07:44:44-0800] [ALPM] running '30-systemd-update.hook'...

When running anki from a terminal emulator and then...

Add a card

qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
qt: xcb_shm_create_segment() can't be called for size 17179344900, maximumallowed size is 4294967295
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::pen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::deviceTransform: Painter not active
qt: QPainter::worldTransform: Painter not active
qt: QPainter::pen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::pen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::deviceTransform: Painter not active
qt: QPainter::worldTransform: Painter not active
qt: QPainter::pen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::pen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QPainter::setPen: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::setCompositionMode: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::save: Painter not active
Segmentation fault (core dumped)

Edit a card

qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete attachment.
qt: QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment.
qt: xcb_shm_create_segment() can't be called for size 17179344900, maximumallowed size is 4294967295
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::setCompositionMode: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::save: Painter not active
Segmentation fault (core dumped)

What I've done so far

1. searched the xorg log to see if there were any entries related to the crash. [none found]

2. downgraded all the packages I installed and tested that anki works with the old qt packages [it does]

3. searched the Arch Linux forum for recent problems with anki. [none found]

4. searched the package information to see if there are currently any known problems (or solutions) or if the package is listed as out-of-date. [none found - last updated 2019-10-02 17:02 UTC]
https://www.archlinux.org/packages/community/any/anki/

5. searched the Arch Linux bug tracker to see if there were any recent bug reports [none found]
https://bugs.archlinux.org/index.php

6. searched DuckDuckGo for recent bug reports using the following text:
anki 2.1.15 crashes on latest qt upgrade

7. checked upstream to see if I am running the latest version [I am running 2.1.15 which looks like the most recent]
https://apps.ankiweb.net/

8. ... and to see if there are any known issues that describe my problem [I don't think so]
https://apps.ankiweb.net/docs/knownissues21.html

9. upgraded the system (full) several times, the most recent time this morning. [problem persists and I have reverted to using a disk image from 12/22 with downgraded packages

I am unsure what steps to take next. Should I file a bug report? Or is there additional troubleshooting I can complete?

Cheers,

Last edited by dakota (2020-04-09 02:35:26)


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#2 2019-12-29 00:05:05

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

Since anki was last updated in Oct '19, it looks very likely that there's a compatibility issue with the newer Qt 5.14.0. I would recommend you open a bug report on the Arch bug tracker - there is a remote possibility that the package owner/maintainer knows a quick fix/workaround. However, it's more likely that upstream has to fix this in this case. So I would also open a bug report upstream and put that upstream bug report link in the Arch bug tracker as well.

If you file bug reports, make sure that your systems is fully updated, without any downgrades you have attempted in the past. If you want to try it with a downgraded Qt, you're very quickly in dependency hell, since so many things depend on Qt.

Offline

#3 2019-12-29 03:12:52

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

Thanks for your reply.

I filed  a bug report here:
https://bugs.archlinux.org/task/64976

And posted the information on the anki forum (I couldn't find a place to file an upstream bug report).
https://anki.tenderapp.com/discussions/ … qt-upgrade

Cheers,


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#4 2019-12-29 17:22:35

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

In the bug you opened on the Arch bug tracker, please update the summary and put the package name in square brackets: https://wiki.archlinux.org/index.php/Bu … es#Summary. Otherwise it may get missed by the package maintainer.

Offline

#5 2019-12-29 17:43:55

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

twelveeighty wrote:

In the bug you opened on the Arch bug tracker, please update the summary and put the package name in square brackets: https://wiki.archlinux.org/index.php/Bu … es#Summary. Otherwise it may get missed by the package maintainer.

On the arch bug tracker the original bug report is only modifiable by staff.

Offline

#6 2019-12-30 10:48:47

lervag
Member
Registered: 2013-11-04
Posts: 25

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

I have the same issue, except it also triggers when I open the browser. I would guess that the issue should be easily fixed by the package maintainer, Johannes Löthberg. That is, it probably only needs to be rebuilt with the updated QT packages.

Offline

#7 2019-12-30 15:53:01

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

twelveeighty wrote:

In the bug you opened on the Arch bug tracker, please update the summary and put the package name in square brackets: https://wiki.archlinux.org/index.php/Bu … es#Summary. Otherwise it may get missed by the package maintainer.

Sorry about that. I thought I had read that entire page... but I think I got distracted and wandered off looking at rabbits or something.

lervag wrote:

I would guess that the issue should be easily fixed by the package maintainer, Johannes Löthberg. That is, it probably only needs to be rebuilt with the updated QT packages.

I'm not so sure about that. It looks like the problem might be with PyQt. [edit - actually, now that I think about it, it could be either qt or pyqt. It needs more testing.] I just posted the following on the anki webpage: https://anki.tenderapp.com/discussions/ … qt-upgrade.

Hello Damien,

I'm a little over my head here, so I appreciate your patience.

I downloaded and tested the binaries for versions:
2.1.15, 2.1.16, 2.1.17beta4, 2.1.17beta5, and 2.1.17beta6.

Versions 2.1.15 and 2.1.16 worked.
All the 2.1.17beta versions crashed with the error message I already reported.

I notice the following information on the "About" screens:

Version 2.1.15 (442df9d6)
Qt 5.12.1 PyQt 5.11.3

Version 2.1.16 (4bc33e2f)
Qt 5.12.1 PyQt 5.11.3

Version 2.1.17 (bfcc8379)
Python 3.8.1 Qt 5.14.0 PyQt 5.13.2

Version 2.1.17 (518cc442)
Python 3.8.1 Qt 5.14.0 PyQt 5.13.2

Version 2.1.17 (4cead7ef)
Python 3.8.1 Qt 5.14.0 PyQt 5.13.2

I'm pretty sure that the version of PyQt that I'm running on my up-to-date system is 5.14.0 (as shown in the document I already uploaded)

On the development branch: https://github.com/dae/anki
there is a file called "requirements.qt" with the following description:
"pin pyqt version; the just-released 5.14 looks to be broken Dec 20, 2019"

The contents of that file are:
pyqt5==5.13.2
pyqtwebengine==5.13.2

Again, I'm not asking you to fix my system, just trying to understand... but it looks like this is a known problem which the developers might already be looking into?

Thanks for your time and patience.

Cheers,

-----
edit - spelling

Last edited by dakota (2019-12-30 18:17:26)


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#8 2019-12-30 16:07:57

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

lervag wrote:

I would guess that the issue should be easily fixed by the package maintainer

I would guess not.

If you want to prove that, rebuild it yourself and update the bug tracker with that info. This is a community-driven distro, so help out, don't make wild assumptions about how easy/hard things are for the volunteers who maintain the packages. And you had better had your homework done before you call them out by name.

Offline

#9 2019-12-30 17:56:34

lervag
Member
Registered: 2013-11-04
Posts: 25

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

twelveeighty wrote:

If you want to prove that, rebuild it yourself and update the bug tracker with that info. This is a community-driven distro, so help out, don't make wild assumptions about how easy/hard things are for the volunteers who maintain the packages. And you had better had your homework done before you call them out by name.

Sorry if my comment was rude, that was not the intent. Perhaps I was too fast to assume that this was easy. I would be happy to help out, and if I get the time to look into things I will definately try. I will also be happy to help by testing things on my end if anyone needs someone to try things out.

Offline

#10 2019-12-30 18:03:37

lervag
Member
Registered: 2013-11-04
Posts: 25

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

dakota wrote:

I'm not so sure about that. It looks like the problem might be with PyQt. I just posted ...

Ah, I see. I'll follow the discussions and help if I can. If there is something specific I can/could do to help, please let me know.

Offline

#11 2019-12-31 05:05:21

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

Upstream's response is that  the problem may be with my video driver.
https://anki.tenderapp.com/discussions/ … qt-upgrade

This seems plausible, since I am using an old computer with an old graphics card. To test this, I wiped the hard-drive on an old work laptop (which is newer than my desktop) and installed a bare-bones Arch Linux system with Fluxbox, using the default kernel video drivers.

When I run the binaries provided by upstream I now run into a different problem. I thought the reason upstream wanted me to use the binaries for testing was that they come packaged with all the libraries I needed, so they would not be influenced by corrupted or broken packages on my system. To be clear, what I downloaded from upstream was a compressed folder about 350 Mb in size. The instructions were to uncompress the folder, cd into it, and execute ./bin/anki. To me, this sounds like the executable is using a relative file structure and everything I need should be included in the supplied folder.

Is that right?

When I run the binaries now, I get the following error:

./bin/anki
qt: Could not load the Qt platform plugin "xcb" in "" even though it was found.
qt: The application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

I'm not sure of the best way to continue troubleshooting this. I can't decide if the above error is a clue... or was caused by something I overlooked.

Should I fiddle with the graphics settings on my desktop?
Should I install some qt libraries on my laptop? Or plugins? Which ones?
Should I install the packages that upstream lists as dependencies? (I can't find them now, but I saw a list somewhere.)

Suggestions would be greatly appreciated.

Cheers,


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#12 2019-12-31 08:59:01

lervag
Member
Registered: 2013-11-04
Posts: 25

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

I'm sorry to say I can't really be of any more help here, except to say that I have the same issue where Anki crashes after the updated QT version. The main error message for me is this:

qt: xcb_shm_create_segment() can't be called for size 17179344900, maximumallowed size is 4294967295

I have the same problem on two different machines. Both have a very similar setup of Arch Linux with fluxbox. In my laptop I don't have any extra graphics cards, and I have never had any problems with graphics on my systems.

Offline

#13 2019-12-31 12:49:51

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

lervag wrote:

I'm sorry to say I can't really be of any more help here, except to say that I have the same issue where Anki crashes after the updated QT version. The main error message for me is this:

qt: xcb_shm_create_segment() can't be called for size 17179344900, maximumallowed size is 4294967295

I have the same problem on two different machines. Both have a very similar setup of Arch Linux with fluxbox. In my laptop I don't have any extra graphics cards, and I have never had any problems with graphics on my systems.

Thanks. That's helpful.

I'm in the middle of a project and I might not be able to work on this for the next couple of weeks... but I'll come back to it when I have more time.

Cheers,


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#14 2019-12-31 19:42:40

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

dakota wrote:

Upstream's response is that  the problem may be with my video driver.

Anything is possible, but that's not very plausible, I'd say. Unless Qt 5.14.0 introduced something that doesn't work with your older graphics driver.

Rather than trying to run a special binary build that upstream provided you, I would recommend you go back a step first on your original hardware and build Anki from source, starting with the current release 2.1.15 using Arch's ABS system (https://wiki.archlinux.org/index.php/Arch_Build_System). The key thing is to build it with debug tracing: (https://wiki.archlinux.org/index.php/De … ing_Traces). If this is the first time you're doing that, you'll run into some difficulties, but as long as you put in the effort and stay step-by-step with the documentation, this community *will* help you when you get stuck. The PKGBUILD for this package looks pretty straight-forward, so the build may actually be smooth.

As I said, the key thing is to build and run anki 2.1.15 (the current upstream release) from source with debug symbols and do a couple of tests. That will (hopefully) generate more useful information on exactly where the problem lies, probably also proving/disproving the issue with your graphics driver.

Next step (if needed) would be to repeat this, but now with the upstream beta (or simply their development branch) - but not from binaries, but you rebuild it from their beta source code, again with full debug symbols, again on your fully updated original Arch system.

Offline

#15 2019-12-31 19:55:47

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,093

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

twelveeighty wrote:

As I said, the key thing is to build and run anki 2.1.15 (the current upstream release) from source with debug symbols and do a couple of tests. That will (hopefully) generate more useful information on exactly where the problem lies, probably also proving/disproving the issue with your graphics driver.

Anki is a python program. There is nothing to build, rebuilding it will just give you a package identical to the one in the repos.

Offline

#16 2019-12-31 22:04:13

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

Ah - OK, what got me thinking there was more than just Python code is that anki has a direct dependency on qt5-webengine, even though it already depends on python-pyqtwebengine.

So this issue has to be somewhere in python-pyqt5, but so much depends on that - why would anki be the only package that has this issue (from OP's original post):

qt: xcb_shm_create_segment() can't be called for size 17179344900, maximumallowed size is 4294967295
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::setCompositionMode: Painter not active
qt: QWidget::paintEngine: Should no longer be called
qt: QPainter::begin: Paint device returned engine == 0, type: 1
qt: QPainter::save: Painter not active
Segmentation fault (core dumped)

Offline

#17 2020-01-01 04:41:59

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

twelveeighty wrote:
dakota wrote:

Upstream's response is that  the problem may be with my video driver.

Anything is possible, but that's not very plausible, I'd say. Unless Qt 5.14.0 introduced something that doesn't work with your older graphics driver.

To be fair, what he actually said was that the beta builds are built with the latest qt and python libraries and have been tested on Linux systems. He then went on to say:

Since the beta builds are also crashing for you, that seems to indicate something about your system is not playing nicely with the latest Qt version...

I don't know how likely this is, but my guess -- and it's only a guess -- is that the build was not done in a clean environment. By that I mean that the result depends on libraries or plugins that are installed on the developer's system but were not included in the binaries or the packaging instructions.

This would explain why when I run the binaries on a system with many other qt packages, I get:

xcb_shm_create_segment() can't be called for size 17179344900, maximumallowed size is 4294967295

but when I run them on a clean install with no other qt packages, I get:

qt: Could not load the Qt platform plugin "xcb" in "" even though it was found.
qt: The application failed to start because no Qt platform plugin could be initialized.

Anyway, this is all just guesswork. I am eager to dig into it some more -- and learn a lot more about pacman, packaging, building from source, bash scripting, and git -- but I'm in the middle of studying for a certification that I need for work, and I won't have any time for the next few weeks. sad

But then... I'm all over it. smile

Cheers,


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#18 2020-04-09 02:35:01

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] anki 2.1.15-1 crashes after qt update

https://bugs.archlinux.org/task/64976

The maintainer posted the following question:

demize wrote:

Can you still reproduce this? Because I never had this issue.
Also, if you are able to reproduce it, you wouldn't happen to have a 4K monitor?

and I replied...

dakotta wrote:

No, I can not still reproduce this error. (And I do not have a 4K monitor).

The problem existed when Qt version increased to 5.14.0-3. I thought I tested it when Qt was updated (to 5.14.1?) but I can't find that in my Pacman log, so maybe I didn't.

After reading your comment, I reinstalled anki 2.1.15-1. It pulled in Qt 5.14.2 (and related files) and the problem seems to be resolved.

Thanks for looking into this. Much appreciated!


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

Board footer

Powered by FluxBB