Re: running pan gives many errors

Dominique Dumont <[email protected]> Wed, 08 May 2024 11:20:42 +0200
Newsgroups gmane.comp.gnome.apps.pan.user
Message-ID <3399954.aeNJFYEL58@ylum>
On Tuesday, 7 May 2024 07:01:55 CEST Ken Cunningham wrote:
> running pan works, but it does give an uncomfortable number of errors when
> so doing ...
> 
> (pan:10378): Gtk-CRITICAL **: 21:59:37.694: gtk_window_set_default_icon:
> assertion 'GDK_IS_PIXBUF (icon)' failed

The fgtk_window_set_default_icon unction is called by pan in only 2 places:

$ ack gtk_window_set_default_icon pan
pan/gui/pan.cc
1006:        gtk_window_set_default_icon (pixbuf);
1030:      gtk_window_set_default_icon (pixbuf);

In both cases, pixbuf is set with:

      GdkPixbuf* pixbuf = load_icon("icon_pan.png");

load_icon [1] is a function I wrote that look for a Pan icon either in ./pan/icons or where icons are installed with "cmake install" ("/usr/local/share/pan/icons/" if cmake prefix was not changed).

If pan is not installed, pan should be run from the root of pan repository. E.g with:

$ ./debug-build/pan/gui/pan

When running pan with ./pan (i.e. in gui directory). I get the same symptoms as you.

In case of problems, the behavior of load_icon can be checked with --debug flag. 

For instance:

$ ./pan --debug
Unable to load icon icon_pan.png from pan/icons: Failed to open file “pan/icons/icon_pan.png”: Not a directory
Unable to load icon icon_pan.png from /usr/local/share/pan/icons: Failed to open file “/usr/local/share/pan/icons/icon_pan.png”: No such file or directory

(pan:139028): Gtk-CRITICAL **: 11:14:43.417: gtk_window_set_default_icon: assertion 'GDK_IS_PIXBUF (icon)' failed

HTH

[1] https://gitlab.gnome.org/GNOME/pan/-/blob/master/pan/gui/load-icon.cc?ref_type=heads#L17



_______________________________________________
Pan-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-users