Douane / douane-dialog

Offical GTK client to the Douane firewall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FW: glib related bug?

zedtux opened this issue · comments

Moved issue opened by @zengyang2003 in Douane/Douane#36:

Various occasions find this on mint:

(douane-dialog:23554): glibmm-WARNING **: Glib::Error::throw_exception(): unknown error domain 'rsvg-error-quark': throwing generic Glib::Error exception

terminate called after throwing an instance of 'Glib::Error'

The error is Mint related (only apparently) and confirmed buy @TheCherry, @unidesign and @philipzae.

The issue is that on Linux Mint when an unknown application (unknown by Douane) which do not have an icon and when the dialog box is building the page where the icon is shown, Douane try to use the "image-missing" from the icon theme but it seems that for Linux Mint, there's no icon named like this...

A first commit in order to avoid the application to crash, allowing you to use Douane on Linux Mint.

I did a second commit which will anyway show the icon in the tabs but not in the application page (the big icon).
Looks like the size 400 is not handled by the MintX theme.

I'm closing this issue as I've tried with the hicolor theme (existing on Debian and Mint) and it's working fine so the issue is a Mint theme issue, not a Douane issue.

It seems to work now, thank you. Although the douane-dialog throws the same error (exception) now for many times (only visible in terminal), but it works.

Yes the error can't be suppressed from the terminal accordingly to the source code of the method.

commented

You can redefine APPLICATION_LARGE_ICON_SIZE as a lower value e.g. 48 as a hack to stop the exceptions.

I tried getting the largest available icon size with Gtk::IconTheme::get_icon_sizes which returned 256 but that size still failed and threw the exception.