#1049433 confy: Displays blank page because of invalid image file (e.g. for CCCamp)

Package:
confy
Source:
confy
Submitter:
Benedikt Wildenhain
Date:
2023-08-15 18:00:04 UTC
Severity:
normal
#1049433#5
Date:
2023-08-15 17:35:53 UTC
From:
To:
Dear Maintainer,

I viewed the schedule of CCCamp once, which worked, but after is had
been cached, it could not be viewed again, but clicking on the event
afterwards only leads to a blank page and the following output on the
console:

Conference maps links: [{'title': 'Map', 'url':
'https://map.events.ccc.de/camp/2023/map/'}]
Conference maps links: [{'title': 'Map', 'url':
'https://map.events.ccc.de/camp/2023/map/'}]
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/confy/window.py", line 270, in
on_activate
     self.window.show_main(obj)
   File "/usr/lib/python3/dist-packages/confy/window.py", line 823, in
show_main
     self.view = MainView(self, conf)
                 ^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/confy/window.py", line 357, in
__init__
     self.build_gui()
   File "/usr/lib/python3/dist-packages/confy/window.py", line 454, in
build_gui
     self.map = pages.MapPage(self.conf)
                ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/confy/pages.py", line 710, in
__init__
     conf.get_map_files(cbk=self._add_image)
   File "/usr/lib/python3/dist-packages/confy/models.py", line 76, in
get_map_files
     r.append(local.get_image_async(link['url'], cbk))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/confy/local.py", line 355, in
get_image_async
     cbk(None, localfile)
   File "/usr/lib/python3/dist-packages/confy/pages.py", line 671, in
_add_image
     pixbuf = GdkPixbuf.Pixbuf.new_from_file(imagefile)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gi.repository.GLib.GError: gdk-pixbuf-error-quark: Couldn’t recognize
the image file format for file
“/home/[redacted]/.cache/net.kirgroup.confy/images/0a610c46010edaec986e2c3e4b1f1d20”
(3)


The file in question is a HTML page, so there is probably something
wrong in the schedule information, but that should be handled more
gracefully.

What I did do to fix this problem:

1. Tried to compile the current upstream of confy, which failed due to
outdated blueprint-compiler in debian (0.6).
2. Updated blueprint-compiler to 0.10 (by combining current upstream
source and
Debian's blueprint-compiler_0.6.0-1.debian.tar.xz)
3. Compiled confy from current git commit
ebcd379cf64ff78b0637a2755098e8f38c761493 and using
confy_0.6.5-1.debian.tar.xz

Kind regards
Benedikt Wildenhain