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 352834 - problems with 8bit default visuals
problems with 8bit default visuals
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: X11
2.10.x
Other HP-UX
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 355601 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-25 11:58 UTC by j.abt
Modified: 2013-10-08 21:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description j.abt 2006-08-25 11:58:18 UTC
After compiling gtk+-2.10.1 on HP-UX 11.00 with 
ccom: HP92453-01 B.11.11.16 HP C Compiler,
I get the following error with gtk-demo:

$ ./libtool /opt/langtools/bin/gdb \
/scr/ernie/abt/gtk+-2.10.1/ARENA/32/demos/gtk-demo/gtk-demo
[..]
(gdb) r --sync
Starting program: /scr/ernie/abt/gtk+-2.10.1/ARENA/32/demos/gtk-demo/.libs/gtk-demo --sync

Program received signal SIGSEGV, Segmentation fault
  si_code: 0 - SEGV_UNKNOWN - Unknown Error.
0x7be6ef00 in XRenderQueryFormats (dpy=0x40014560) at Xrender.c:335
335         LockDisplay (dpy);
(gdb) bt
  • #0 XRenderQueryFormats
    at Xrender.c line 335
  • #1 XRenderFindVisualFormat
    at Xrender.c line 523
  • #2 _cairo_xlib_screen_info_get
    at /soft/gtk/gtk2/gtk+-2.10/cairo-1.2.2/cairo-1.2.2/src/cairo-xlib-screen.c line 361
  • #3 _cairo_xlib_surface_create_internal
    at /soft/gtk/gtk2/gtk+-2.10/cairo-1.2.2/cairo-1.2.2/src/cairo-xlib-surface.c line 1807
  • #4 cairo_xlib_surface_create
    at /soft/gtk/gtk2/gtk+-2.10/cairo-1.2.2/cairo-1.2.2/src/cairo-xlib-surface.c line 1954
  • #5 gdk_x11_ref_cairo_surface
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gdk/x11/gdkdrawable-x11.c line 1453
  • #6 _gdk_drawable_ref_cairo_surface
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gdk/gdkdraw.c line 1263
  • #7 gdk_pixmap_ref_cairo_surface
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gdk/gdkpixmap.c line 515
  • #8 _gdk_drawable_ref_cairo_surface
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gdk/gdkdraw.c line 1263
  • #9 gdk_window_begin_paint_region
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gdk/gdkwindow.c line 1001
  • #10 gtk_main_do_event
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gtk/gtkmain.c line 1378
  • #11 gdk_window_process_updates_internal
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gdk/gdkwindow.c line 2324
  • #12 gdk_window_process_all_updates
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gdk/gdkwindow.c line 2387
  • #13 gtk_container_idle_sizer
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gtk/gtkcontainer.c line 1113
  • #14 g_idle_dispatch
    at /soft/gtk/gtk2/gtk+-2.10/glib-2.12.1/glib-2.12.1/glib/gmain.c line 3924
  • #15 g_main_dispatch
    at /soft/gtk/gtk2/gtk+-2.10/glib-2.12.1/glib-2.12.1/glib/gmain.c line 2043
  • #16 g_main_context_dispatch
    at /soft/gtk/gtk2/gtk+-2.10/glib-2.12.1/glib-2.12.1/glib/gmain.c line 2594
  • #17 g_main_context_iterate
    at /soft/gtk/gtk2/gtk+-2.10/glib-2.12.1/glib-2.12.1/glib/gmain.c line 2675
  • #18 g_main_loop_run
    at /soft/gtk/gtk2/gtk+-2.10/glib-2.12.1/glib-2.12.1/glib/gmain.c line 2879
  • #19 gtk_main
    at /soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/gtk/gtkmain.c line 1000
  • #20 main
    at soft/gtk/gtk2/gtk+-2.10/gtk+-2.10.1/gtk+-2.10.1/demos/gtk-demo/main.c line 924

Comment 1 j.abt 2006-08-31 10:52:17 UTC
This problem seems to depend on the installed version of Xlib.
Xlib seems to have problems with the choice of visuals:

see https://bugs.freedesktop.org/show_bug.cgi?id=8082
Comment 2 j.abt 2006-08-31 11:30:39 UTC
As https://bugs.freedesktop.org/show_bug.cgi?id=4945 and my
experiences show, cairo does not work for 8bit PseudoColor visuals.


And as you can see in https://bugs.freedesktop.org/show_bug.cgi?id=8082,
cairo on HP-UX 11.00 does not like my HP-UX 11.11 and IRIX X servers
with default visual 0x23 or 0x20 (8bit).
All these X servers know plenty of 24bit DirectColor and TrueColor visuals.


I do not want to reconfigure the default visual of all the HP-UX 
and IRIX workstations. So could GTK+ choose a better visual?



Comment 3 Owen Taylor 2006-09-12 16:27:50 UTC
*** Bug 355601 has been marked as a duplicate of this bug. ***
Comment 4 Jes Sorensen 2006-09-13 11:17:28 UTC
Just to add the valuable info from 355601 - see the same when remotely
displaying from Linux to IRIX.
Comment 5 Timothy Arceri 2013-10-08 21:36:09 UTC
Closing old bugs.

Looks like HP-UX 11.00 reached end of life in Dec 2006 not long after this bug was reported.

Also the Cairo bug link was marked as fixed around 2008/2009.