Cannot open HEIF/HEIC images in 23.04/lunar anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eog (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned | ||
gdk-pixbuf (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned | ||
libheif (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lunar |
Fix Released
|
High
|
Unassigned |
Bug Description
* Impact
The libheif loader is bailing out due to a missing plugin directory which leads to image viewer as eog not being able to open pictures in that format anymore
* Testcase
Install libheif1 and heif-gdk-pixbuf and try to open a .heif file in eog
* Where problems could occur
The package build is using the option to not split the codec in separate plugins but the version of Lunar doesn't handle the missing plugins directory and bails out. The code of the version in mantic has been refactored in a way which fixes this problem. For lunar it's easier to just create the directory. The directory is included in the libheif1 binary but that should not create any conflict, it's a temporary situation for lunar only and even if the soname changed dpkg allows for several deb packages to provide the same directory.
-------
In previous Ubuntu versions, including 22.10, I was able to open HEIF/HEIC files by installing libheif1 and heif-gdk-pixbuf. This does not work anymore in 23.04.
Running eog in a terminal displays:
$ eog IMG_9996.HEIC
** (eog:44492): WARNING **: 14:29:17.537: Cannot read plugin directory.
(eog:44492): GdkPixbuf-CRITICAL **: 14:29:17.537: gdk_pixbuf_
(eog:44492): GdkPixbuf-CRITICAL **: 14:29:17.538: gdk_pixbuf_
(eog:44492): GdkPixbuf-CRITICAL **: 14:29:17.538: gdk_pixbuf_
** (eog:44492): WARNING **: 14:29:17.543: Cannot read plugin directory.
(eog:44492): GdkPixbuf-CRITICAL **: 14:29:17.543: gdk_pixbuf_
(eog:44492): GdkPixbuf-CRITICAL **: 14:29:17.543: gdk_pixbuf_
(eog:44492): GdkPixbuf-CRITICAL **: 14:29:17.543: gdk_pixbuf_
eog then shows "Could not load image “IMG_9996.HEIC”. Image loading failed."
gpicview even crashes immediately:
$ gpicview IMG_9996.HEIC
Gtk-Message: 14:30:30.216: Failed to load module "canberra-
** (gpicview:44624): WARNING **: 14:30:30.260: Cannot read plugin directory.
** (gpicview:44624): WARNING **: 14:30:30.265: Cannot read plugin directory.
Segmentation fault (core dumped)
The problem concerns all HEIF/HEIC images I tested.
The installed versions of the (possibly) relevant packages are:
libheif1: 1.14.2-1
heif-gdk-pixbuf: 1.14.2-1
libgdk-
eog: 44.0-1
gpicview: 0.2.5-3build1
tags: | added: lunar |
Changed in libheif (Ubuntu): | |
status: | Confirmed → Fix Released |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.