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 565958 - crashes when using transparent background
crashes when using transparent background
Status: RESOLVED DUPLICATE of bug 392860
Product: xchat-gnome
Classification: Other
Component: general
0.24.x
Other Linux
: Normal critical
: ---
Assigned To: xchat-gnome maintainers
xchat-gnome maintainers
: 565544 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-29 19:08 UTC by Baptiste Mille-Mathias
Modified: 2009-11-18 19:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Baptiste Mille-Mathias 2008-12-29 19:08:14 UTC
Nothing spews in console

(gdb) run --sync
Starting program: /usr/bin/xchat-gnome --sync
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb6bba750 (LWP 7233)]
The program 'xchat-gnome' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
  (Details: serial 1003 error_code 17 request_code 140 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Program exited with code 01.
Comment 1 Baptiste Mille-Mathias 2008-12-29 19:14:17 UTC
perhaps a more useful stracktrace, if not don't hesitate to ping me. (in the meantime I'll build it from source to have full debug stacktrace)

Breakpoint 1 (gdk_x_error) pending.
(gdb) run --sync
Starting program: /usr/bin/xchat-gnome --sync
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb6af0750 (LWP 7841)]

Thread 3064923984 (LWP 7841)

  • #0 gdk_x_error
    at /build/buildd/gtk+2.0-2.14.5/gdk/x11/gdkmain-x11.c line 614
  • #1 ??
    from /usr/lib/libbonoboui-2.so.0
  • #2 _XError
    from /usr/lib/libX11.so.6
  • #3 ??
    from /usr/lib/libX11.so.6
  • #4 _XReply
    from /usr/lib/libX11.so.6
  • #5 XSync
    from /usr/lib/libX11.so.6
  • #6 ??
    from /usr/lib/libX11.so.6
  • #7 ??
    from /usr/lib/libX11.so.6
  • #8 XShmCreatePixmap
    from /usr/lib/libXext.so.6
  • #9 ??
  • #10 gtk_xtext_set_background
  • #11 ??
  • #12 ??
  • #13 ??
    from /usr/lib/libgconf-2.so.4
  • #14 gconf_listeners_notify
    from /usr/lib/libgconf-2.so.4
  • #15 ??
    from /usr/lib/libgconf-2.so.4
  • #16 ??
    from /usr/lib/libgconf-2.so.4
  • #17 g_idle_dispatch
    at /build/buildd/glib2.0-2.19.3/glib/gmain.c line 3924
  • #18 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.19.3/glib/gmain.c line 1814
  • #19 g_main_context_iterate
    at /build/buildd/glib2.0-2.19.3/glib/gmain.c line 2448
  • #20 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.19.3/glib/gmain.c line 2656
  • #21 IA__gtk_main
    at /build/buildd/gtk+2.0-2.14.5/gtk/gtkmain.c line 1200
  • #22 fe_main
  • #23 main

Comment 2 Baptiste Mille-Mathias 2008-12-29 19:23:20 UTC
This one should be better

baptiste@oak:~$ gdb xchat-gnome 
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) break gdk_x_error
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error) pending.
(gdb) run --sync
Starting program: /opt/gnome/bin/xchat-gnome --sync
[Thread debugging using libthread_db enabled]
[New Thread 0xb6ddc960 (LWP 23778)]
[Switching to Thread 0xb6ddc960 (LWP 23778)]

Breakpoint 1, gdk_x_error (display=0x9f8c680, error=0xbfd6eba8) at gdkmain-x11.c:614
614	  if (error->error_code)
(gdb) thread apply all bt

Thread 1 (Thread 0xb6ddc960 (LWP 23778))

  • #0 gdk_x_error
    at gdkmain-x11.c line 614
  • #1 bonobo_x_error_handler
    at bonobo-ui-main.c line 58
  • #2 _XError
    from /usr/lib/libX11.so.6
  • #3 ??
    from /usr/lib/libX11.so.6
  • #4 _XReply
    from /usr/lib/libX11.so.6
  • #5 XSync
    from /usr/lib/libX11.so.6
  • #6 ??
    from /usr/lib/libX11.so.6
  • #7 ??
    from /usr/lib/libX11.so.6
  • #8 XShmCreatePixmap
    from /usr/lib/libXext.so.6
  • #9 gtk_xtext_load_trans
    at xtext.c line 3558
  • #10 gtk_xtext_set_background
    at xtext.c line 4257
  • #11 conversation_panel_set_background
    at conversation-panel.c line 602
  • #12 conversation_panel_realize
    at conversation-panel.c line 306
  • #13 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #14 g_type_class_meta_marshal
    at gclosure.c line 878
  • #15 IA__g_closure_invoke
    at gclosure.c line 767
  • #16 signal_emit_unlocked_R
    at gsignal.c line 3174
  • #17 IA__g_signal_emit_valist
    at gsignal.c line 2977
  • #18 IA__g_signal_emit
    at gsignal.c line 3034
  • #19 IA__gtk_widget_realize
    at gtkwidget.c line 3318
  • #20 IA__gtk_widget_map
    at gtkwidget.c line 3192
  • #21 gtk_box_forall
    at gtkbox.c line 1249
  • #22 IA__gtk_container_forall
    at gtkcontainer.c line 1499
  • #23 gtk_container_map
    at gtkcontainer.c line 2665
  • #24 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #25 g_type_class_meta_marshal
    at gclosure.c line 878
  • #26 IA__g_closure_invoke
    at gclosure.c line 767
  • #27 signal_emit_unlocked_R
  • #28 IA__g_signal_emit_valist
    at gsignal.c line 2977
  • #29 IA__g_signal_emit
    at gsignal.c line 3034
  • #30 IA__gtk_widget_map
    at gtkwidget.c line 3194
  • #31 gtk_paned_forall
    at gtkpaned.c line 1461
  • #32 IA__gtk_container_forall
    at gtkcontainer.c line 1499
  • #33 gtk_container_map
    at gtkcontainer.c line 2665
  • #34 gtk_paned_map
    at gtkpaned.c line 1053
  • #35 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #36 g_type_class_meta_marshal
    at gclosure.c line 878
  • #37 IA__g_closure_invoke
    at gclosure.c line 767
  • #38 signal_emit_unlocked_R
    at gsignal.c line 3174
  • #39 IA__g_signal_emit_valist
    at gsignal.c line 2977
  • #40 IA__g_signal_emit
    at gsignal.c line 3034
  • #41 IA__gtk_widget_map
    at gtkwidget.c line 3194
  • #42 gtk_box_forall
    at gtkbox.c line 1249
  • #43 IA__gtk_container_forall
    at gtkcontainer.c line 1499
  • #44 gtk_container_map
    at gtkcontainer.c line 2665
  • #45 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #46 g_type_class_meta_marshal
    at gclosure.c line 878
  • #47 IA__g_closure_invoke
    at gclosure.c line 767
  • #48 signal_emit_unlocked_R
    at gsignal.c line 3174
  • #49 IA__g_signal_emit_valist
    at gsignal.c line 2977
  • #50 IA__g_signal_emit
    at gsignal.c line 3034
  • #51 IA__gtk_widget_map
    at gtkwidget.c line 3194
  • #52 gtk_window_map
    at gtkwindow.c line 4493
  • #53 IA__g_cclosure_marshal_VOID__VOID
  • #54 g_type_class_meta_marshal
    at gclosure.c line 878
  • #55 IA__g_closure_invoke
    at gclosure.c line 767
  • #56 signal_emit_unlocked_R
    at gsignal.c line 3174
  • #57 IA__g_signal_emit_valist
    at gsignal.c line 2977
  • #58 IA__g_signal_emit
    at gsignal.c line 3034
  • #59 IA__gtk_widget_map
    at gtkwidget.c line 3194
  • #60 gtk_window_show
    at gtkwindow.c line 4458
  • #61 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #62 g_type_class_meta_marshal
    at gclosure.c line 878
  • #63 IA__g_closure_invoke
    at gclosure.c line 767
  • #64 signal_emit_unlocked_R
    at gsignal.c line 3174
  • #65 IA__g_signal_emit_valist
    at gsignal.c line 2977
  • #66 IA__g_signal_emit
    at gsignal.c line 3034
  • #67 IA__gtk_widget_show
    at gtkwidget.c line 3002
  • #68 run_main_window
    at main-window.c line 279
  • #69 fe_init
    at fe-gnome.c line 152
  • #70 main
    at xchat.c line 1061

Comment 3 Christian Persch 2008-12-29 19:37:36 UTC
Can you try this: in src/fe-gnome/xtext.c about line 90, insert this line:

#undef USE_SHM

and see if it works then?
Comment 4 Baptiste Mille-Mathias 2008-12-29 19:44:16 UTC
it fixes the problem apparently :).

thanks
Comment 5 Christian Persch 2008-12-29 19:45:43 UTC
I don't feel like fixing the mess that is xtext.c, so I think I'll just uncomment the shm code in configure, so we never set the USE_SHM define.
Comment 6 Christian Persch 2009-01-01 22:21:40 UTC
Configure.ac changed accordingly.

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 7 David Trowbridge 2009-01-01 22:24:20 UTC
You just made "transparency" really slow for people running uncomposited.  The solution here is to avoid using the SHM method when a compositing manager is running.
Comment 8 Christian Persch 2009-01-01 22:43:07 UTC
Re-opening so this doesn't get forgotten.

I freely admit that the commit is only a band-aid, but I think not crashing takes precedence over speed. So unless someone invests the time to produce a better patch, IMHO shm should stay disabled.
Comment 9 Ritesh Khadgaray ( irc:ritz) 2009-05-06 18:56:58 UTC
*** Bug 565544 has been marked as a duplicate of this bug. ***
Comment 10 Ritesh Khadgaray ( irc:ritz) 2009-11-18 19:17:33 UTC

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