Issue caused by failing to purge org.gajim.Gajim.Plugin.url_image_preview
Please first check if another issue has been opened for your problem
Versions
- OS: Pop!_OS 22.04 LTS
- Gajim version: flathub flatpak, org.gajim.Gajim 1.5.2, org.gajim.Gajim.Plugin.omemo (no version), org.gajim.Gajim.Plugin.url_image_preview (no version)
- GTK version:
$ dpkg -l "*gtk*" | grep libgtk-3-common
libgtk-3-common 3.24.33-1ubuntu2 all common files for the GTK graphical user interface library
$ flatpak list | grep -i gtk
Pop Gtk theme org.gtk.Gtk3theme.Pop-dark 3.22 user
- Python-nbxmpp version: not sure how to get this out of a flatpak
Steps to reproduce the problem
- Prior to a recent update, install org.gajim.Gajim , org.gajim.Gajim.Plugin.omemo , org.gajim.Gajim.Plugin.url_image_preview
- Update
- flatpak run org.gajim.Gajim
Expected behavior
gajim should launch
Actual behavior
gajim crashes
Overview
I installed gajim through flatpak. After a recent update, gajim stopped launchinng.
I think the root cause is that org.gajim.Gajim.Plugin.url_image_preview got mainlined into org.gajim.Gajim which produced an irrecoverable fault.
The solution is to uninstall org.gajim.Gajim.Plugin.url_image_preview, then close and launch gajim twice.
Worklog
Initial bug observables
$ flatpak run org.gajim.Gajim
Gtk-Message: 08:56:47.444: Failed to load module "appmenu-gtk-module"
No translations found for en_US
Dirs searched: [PosixPath('/app/share')]
Traceback (most recent call last):
File "/app/bin/gajim", line 8, in <module>
sys.exit(main())
File "/app/lib/python3.10/site-packages/gajim/gajim.py", line 166, in main
_init_gui('GTK')
File "/app/lib/python3.10/site-packages/gajim/gajim.py", line 102, in _init_gui
_init_gtk()
File "/app/lib/python3.10/site-packages/gajim/gajim.py", line 119, in _init_gtk
from gajim.gui import exception
File "/app/lib/python3.10/site-packages/gajim/gtk/exception.py", line 52, in <module>
from .util import get_gtk_version
File "/app/lib/python3.10/site-packages/gajim/gtk/util.py", line 35, in <module>
from PIL import Image
File "/app/plugins/site-packages/PIL/Image.py", line 114, in <module>
from . import _imaging as core
ImportError: cannot import name '_imaging' from 'PIL' (/app/plugins/site-packages/PIL/__init__.py)
Version Check
$ flatpak list
# omitted for brevity
Gajim org.gajim.Gajim 1.5.2 stable user
OMEMO Plugin org.gajim.Gajim.Plugin.omemo stable user
URL Image Preview Plugin org.gajim.Gajim.Plugin.url_image_preview stable user
# omitted for brevity
Remove image_preview
$ flatpak uninstall org.gajim.Gajim.Plugin.url_image_preview
ID Branch Op
1. [-] org.gajim.Gajim.Plugin.url_image_preview stable r
Uninstall complete.
Launch gajim twice
Launching once causes some trouble with thumbnails. This probably results in that data getting purged/replaced. After that, there is only one remaining warning which is probably unrelated.
First launch.
$ flatpak run org.gajim.Gajim
Gtk-Message: 08:59:42.435: Failed to load module "appmenu-gtk-module"
No translations found for en_US
Dirs searched: [PosixPath('/app/share')]
Gtk-Message: 08:59:43.019: Failed to load module "canberra-gtk-module"
(gst-plugin-scanner:6): GLib-GObject-WARNING **: 08:59:43.781: type name '-a-png-encoder-pred' contains invalid characters
(gst-plugin-scanner:6): GLib-GObject-CRITICAL **: 08:59:43.782: g_type_set_qdata: assertion 'node != NULL' failed
(gst-plugin-scanner:6): GLib-GObject-CRITICAL **: 08:59:43.782: g_type_set_qdata: assertion 'node != NULL' failed
10/24/2022 08:59:44 (W) gajim.p.manager Unable to load manifest: Not a plugin path: /app/plugins/site-packages
10/24/2022 08:59:55 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
10/24/2022 08:59:55 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
10/24/2022 09:00:01 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
10/24/2022 09:00:02 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
10/24/2022 09:00:13 (W) gajim.p.omemo (chat.sum7.eu1) No such signedprekeyrecord! 24641
10/24/2022 09:00:14 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
10/24/2022 09:00:15 (W) gajim.c.preview Download failed: https://chat.sum7.eu/upload/8e82239e3dbfa3d64b28d610ee3ba6145045e448/qCwx7NK4ePuizTtOrb9mKGNTmjOx3WawgwkgFDRb/dgbOQVxKTtW4e52ltCM-5Q.gif
10/24/2022 09:00:15 (W) gajim.c.preview Cancelled
10/24/2022 09:00:15 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
10/24/2022 09:00:39 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
10/24/2022 09:00:49 (W) gajim.c.preview_helpers saving pil thumbnail failed: illegal image mode
Second and third launch.
$ flatpak run org.gajim.Gajim
Gtk-Message: 09:02:08.885: Failed to load module "appmenu-gtk-module"
No translations found for en_US
Dirs searched: [PosixPath('/app/share')]
Gtk-Message: 09:02:09.329: Failed to load module "canberra-gtk-module"
10/24/2022 09:02:09 (W) gajim.p.manager Unable to load manifest: Not a plugin path: /app/plugins/site-packages
$ flatpak run org.gajim.Gajim
Gtk-Message: 09:02:28.803: Failed to load module "appmenu-gtk-module"
No translations found for en_US
Dirs searched: [PosixPath('/app/share')]
Final notes
purging and reinstalling gajim and the omemo package did not stop this message from being emitted: Gtk-Message: 09:02:08.885: Failed to load module "appmenu-gtk-module"
I suspect this warning is an unrelated issue.