After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 300651 - gnome-theme-thumbnailer fails with gdk_drawable_set_colormap assertion
gnome-theme-thumbnailer fails with gdk_drawable_set_colormap assertion
Status: RESOLVED DUPLICATE of bug 152490
Product: gnome-control-center
Classification: Core
Component: [obsolete] theme-manager
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-14 18:13 UTC by Colin Gibbs
Modified: 2005-04-19 17:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
uses window's depth for pixmap depth (584 bytes, patch)
2005-04-14 18:14 UTC, Colin Gibbs
none Details | Review

Description Colin Gibbs 2005-04-14 18:13:04 UTC
Here is the full assertion:
(gnome-theme-thumbnailer:10608): Gdk-CRITICAL **: gdk_drawable_set_colormap:
assertion `cmap == NULL || gdk_drawable_get_depth (drawable) ==
cmap->visual->depth' failed

The assertion is from line ~180 of capplets/common/theme-thumbnail.c:
static void
create_image (ThemeThumbnailData *theme_thumbnail_data,
	      GdkPixbuf          *pixbuf)
{
...
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
...
  /* Create a pixmap */
  visual = gtk_widget_get_visual (window);
  pixmap = gdk_pixmap_new (NULL, ICON_SIZE_WIDTH, ICON_SIZE_HEIGHT,
gdk_visual_get_best_depth());
  gdk_drawable_set_colormap (GDK_DRAWABLE (pixmap), gtk_widget_get_colormap
(window));


The problem is the pixmap is created with the depth from
gdk_visual_get_best_depth(). Then set colormap tries to use the colormap of a
window with a different depth. That is the pixmap has depth 32 and the window
depth 24. This may have to do with certain versions of xorg and/or nvidia
drivers. I will attach a patch witch uses the depth of the window's visual.
Comment 1 Colin Gibbs 2005-04-14 18:14:20 UTC
Created attachment 45262 [details] [review]
uses window's depth for pixmap depth
Comment 2 Colin Gibbs 2005-04-19 17:53:08 UTC

*** This bug has been marked as a duplicate of 152490 ***