#3501: Deluge Crash GTK
----------------------+---------------------
Reporter: Doadin | Owner:
Type: bug | Status: new
Priority: blocker | Milestone: 2.0.6
Component: GTK UI | Version: develop
Resolution: | Keywords:
----------------------+---------------------
Comment (by Cas):
Finally replicated on Windows and it's not quite as obvious as it seems. I
shall report my findings for now and then we can consider reporting
upstream (gvsbuild and/or gdk-pixbuf) and determining best fix.
The problem can be replicated in a simple Python repl by switching types
loaded, specifically gif or ico types on Windows:
{{{
from gi.repository.GdkPixbuf import Pixbuf
Pixbuf.new_from_file("any.gif")
Pixbuf.new_from_file("any.ico")
<stdin>:1: Warning: cannot register existing type 'GdkPixbufGdipAnim'
<stdin>:1: Warning: g_once_init_leave: assertion 'result != 0' failed
<stdin>:1: Warning: g_object_new_with_properties: assertion
'G_TYPE_IS_OBJECT (object_type)' failed
}}}
So what happens with Deluge is that a png favicon is loaded followed by an
ico favicon (or vice versa) resulting in a crash. I found this snippet of
information in this old Inkscape bug:
https://bugs.launchpad.net/inkscape/+bug/1467103
As we have found png (and jpeg) are unaffected and a likely is related to
gvsbuild using
[https://github.com/wingtk/gvsbuild/blob/b6e8b545580e0115c6c9c06ad61f60041d87b619/gvsbuild/projects.py#L510
native_windows_loaders=true] which disables gdk-pixbuf loaders for
[https://github.com/GNOME/gdk-
pixbuf/blob/b9f04547aa00abab67090995d67e4ad80fe84614/gdk-
pixbuf/meson.build#L15 gif,ico & bmp]
To workaround this crashing on Windows we can disable loading gif,ico &
bmp or convert all ico, gif and bmp to png, not ideal either way...
Otherwise we need to find a gdk-pixbuf build option that gvsbuild can use.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3501#comment:13>
Deluge <https://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/deluge-dev/060.e54f002dec209f1727c80c7ecae7a9ee%40deluge-torrent.org.