Comment 11 for bug 1627564

Revision history for this message
Balint Reczey (rbalint) wrote : Re: Debconf crash due to assertion failure in ensure_surface_for_gicon [gtkiconhelper.c:493] (when png loader is missing/during upgrades)

This is indeed a complex problem and it is hard to do anything reasonable about a missing GTK frontend when debconf is not initiated from the terminal.

OTOH I think there is an easy fix for GTK+ to always include an "image-missing" icon at compile time, but apparently I'm not the first one coming up with this idea, but something is still broken:

gtk/gtkiconhelper.c:494

  if (destination == NULL)
    {
      GError *error = NULL;
      destination = gtk_icon_theme_load_icon (icon_theme,
                                              "image-missing",
                                              width,
                                              flags | GTK_ICON_LOOKUP_USE_BUILTIN | GTK_ICON_LOOKUP_GENERIC_FALLBACK,
                                              &error);
      /* We include this image as resource, so we always have it available or
       * the icontheme code is broken */
      g_assert_no_error (error);
      g_assert (destination);
      symbolic = FALSE;
    }