Howto really debug gdk_x_error?
- From: Wojciech Kromer <wojciech kromer dgt com pl>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Howto really debug gdk_x_error?
- Date: Wed, 19 Apr 2006 10:02:28 +0200
After 2-3 hours of running my application runs into gdk_x_error.
I'm using :
gtk+2.8.16, pango-1.12.0, glib-2.10.1, cairo-1.0.2, atk-1.11.3,
glibc-2.3.2, pthreads
compiled with gcc 3.3.4 (from scratchbox)
I found only one thing:
- removing call to gtk_label_set_markup inside timer funcion (setup
with g_timeout_add) fixes the problem,
but i need to change label text very often.
Here is backtrace from gdk_x_error, there is no my own functions in there:
#0 gdk_x_error (display=0xbf96e360, error=0xbf96e360) at gdkmain-x11.c:599
#1 0xb775f4e4 in _XError () from /usr/X11R6/lib/libX11.so.6
#2 0xb775da43 in _XReply () from /usr/X11R6/lib/libX11.so.6
#3 0xb775d27a in _XSend () from /usr/X11R6/lib/libX11.so.6
#4 0xb775d2ec in _XSend () from /usr/X11R6/lib/libX11.so.6
#5 0xb773f555 in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
#6 0xb7a23256 in _cairo_xlib_surface_create_similar
(abstract_src=0x820db28,
content=3214336864, width=1, height=1) at cairo-xlib-surface.c:219
#7 0xb7a172a1 in _cairo_surface_create_similar_scratch (other=0x820db28,
content=CAIRO_CONTENT_COLOR_ALPHA, width=1, height=1)
at cairo-surface.c:171
#8 0xb7a1737a in _cairo_surface_create_similar_solid (other=0xbf96e360,
content=3214336864, width=1, height=1, color=0xbf96e360)
at cairo-surface.c:224
#9 0xb7a1bb8c in _cairo_pattern_acquire_surface_for_solid (
pattern=0xbf96fa00, dst=0xbf96e360, x=81, y=22, width=54, height=55,
out=0x80a2080, attribs=0xbf96f710) at cairo-pattern.c:1307
#10 0xb7a1be1c in _cairo_pattern_acquire_surface (pattern=0xbf96e360,
dst=0x820db28, x=81, y=22, width=54, height=55, surface_out=0xbf96e6bc,
attributes=0xbf96f710) at cairo-pattern.c:1461
#11 0xb7a26c93 in _cairo_xlib_surface_show_glyphs (scaled_font=0x8207a40,
operator=CAIRO_OPERATOR_OVER, pattern=0xbf96fa00,
abstract_surface=0x820db28, source_x=81, source_y=22, dest_x=81,
dest_y=22, width=54, height=55, glyphs=0x820fd38, num_glyphs=2)
at cairo-xlib-surface.c:2724
#12 0xb7a189c7 in _cairo_surface_show_glyphs (scaled_font=0xbf96e360,
operator=3214336864, pattern=0xbf96e360, dst=0x80a2080,
source_x=-1080630432, source_y=-1080630432, dest_x=-1080630432,
dest_y=-1080630432, width=3214336864, height=3214336864,
glyphs=0xbf96e360, num_glyphs=-1080630432) at cairo-surface.c:1494
#13 0xb7a0cec2 in _cairo_scaled_font_show_glyphs (scaled_font=0x8207a40,
operator=CAIRO_OPERATOR_OVER, pattern=0xbf96fa00, surface=0x820db28,
source_x=81, source_y=22, dest_x=81, dest_y=22, width=54, height=55,
glyphs=0x820fd38, num_glyphs=2) at cairo-font.c:930
#14 0xb7a1071d in _cairo_gstate_show_glyphs_draw_func (closure=0xbf96f9e0,
operator=3214336864, src=0xbf96fa00, dst=0xbf96e360, dst_x=0, dst_y=0,
extents=0xbf96f9d8) at cairo-gstate.c:2053
#15 0xb7a0f0b8 in _cairo_gstate_clip_and_composite (clip=0x81faeec,
operator=CAIRO_OPERATOR_OVER, src=0xbf96fa00,
draw_func=0xb7a10640 <_cairo_gstate_show_glyphs_draw_func>,
draw_closure=0xbf96f9e0, dst=0x820db28, extents=0xbf96f9d8)
at cairo-gstate.c:1094
#16 0xb7a1094e in _cairo_gstate_show_glyphs (gstate=0x81fae68,
glyphs=0xbf96fae0, num_glyphs=2) at cairo-gstate.c:2131
#17 0xb7a09a23 in cairo_show_glyphs (cr=0x820dce0, glyphs=0x80a2080,
num_glyphs=-1080630432) at cairo.c:2158
#18 0xb7ae0512 in pango_cairo_renderer_draw_glyphs (renderer=0x820ea60,
font=0xbf96e360, glyphs=0x81fbb28, x=0, y=0) at pangocairo-render.c:110
#19 0xb7ab8509 in pango_renderer_draw_glyphs (renderer=0x820ea60,
font=0xbf96e360, glyphs=0xbf96e360, x=-1080630432, y=-1080630432)
at pango-renderer.c:597#20 0xb7ae0a07 in
pango_cairo_show_glyph_string (cr=0x820dce0,
font=0x8207dc8, glyphs=0x81fbb28) at pangocairo-render.c:314
#21 0xb7ba7379 in gdk_pango_renderer_draw_glyphs (renderer=0xbf96e360,
font=0x8207dc8, glyphs=0x81fbb28, x=369664, y=270336) at gdkpango.c:245
#22 0xb7ab8509 in pango_renderer_draw_glyphs (renderer=0x820e4e8,
font=0xbf96e360, glyphs=0xbf96e360, x=-1080630432, y=-1080630432)
at pango-renderer.c:597
#23 0xb7ab83d0 in pango_renderer_draw_layout_line (renderer=0x820e4e8,
line=0x820e628, x=369664, y=270336) at pango-renderer.c:528
#24 0xb7ab7adb in pango_renderer_draw_layout (renderer=0x820e4e8,
layout=0x820e628, x=369664, y=192512) at pango-renderer.c:182
#25 0xb7ba8a45 in IA__gdk_draw_layout_with_colors (drawable=0x0,
gc=0x81f3408, x=369664, y=192512, layout=0x820f830,
foreground=0xbf96e360, background=0xbf96e360) at gdkpango.c:1027
#26 0xb7ba8c51 in IA__gdk_draw_layout (drawable=0x8207ce0, gc=0x81f3408,
x=-1080630432, y=-1080630432, layout=0x820f830) at gdkpango.c:1089
#27 0xb7d8d16e in gtk_default_draw_layout (style=0x80e8518,
window=0x8207ce0,
state_type=GTK_STATE_NORMAL, use_text=0, area=0x81f5a8c,
widget=0x80d6c80, detail=0xb7ed24a5 "label", x=361, y=188,
layout=0x820f830) at gtkstyle.c:5088
#28 0xb7d8f3a7 in IA__gtk_paint_layout (style=0x80e8518, window=0x8207ce0,
state_type=3214336864, use_text=-1080630432, area=0xbf96e360,
widget=0xbf96e360, detail=0xbf96e360 "", x=-1080630432, y=-1080630432,
layout=0xbf96e360) at gtkstyle.c:6365
#29 0xb7d1a641 in gtk_label_expose (widget=0x80d6c80, event=0x81f5a80)
at gtklabel.c:2356
#30 0xb7d2c700 in _gtk_marshal_BOOLEAN__BOXED (closure=0x80c4b88,
return_value=0xbf9702c0, n_param_values=2, param_values=0xbf970400,
invocation_hint=0xbf9702e8, marshal_data=0xb7d1a560) at
gtkmarshalers.c:83
#31 0xb79c36b9 in g_type_class_meta_marshal (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf970400, invocation_hint=0xbf96e360,
marshal_data=0xbf96e360) at gclosure.c:569
#32 0xb79c33e5 in IA__g_closure_invoke (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf96e360, invocation_hint=0xbf96e360) at gclosure.c:492
#33 0xb79d4ab5 in signal_emit_unlocked_R (node=0x80c4bd8, detail=0,
instance=0x80d6c80, emission_return=0xbf970390,
instance_and_params=0xbf970400) at gsignal.c:2523
#34 0xb79d3eca in IA__g_signal_emit_valist (instance=0x80d6c80, signal_id=0,
detail=0, var_args=0xbf970590 "\230\005\227ż\230\005\227ż")
at gsignal.c:2254
#35 0xb79d4376 in IA__g_signal_emit (instance=0xbf96e360,
signal_id=3214336864, detail=3214336864) at gsignal.c:2288
#36 0xb7e23317 in gtk_widget_event_internal (widget=0x80d6c80,
event=0x81f5a80) at gtkwidget.c:3732
#37 0xb7c9bbfc in IA__gtk_container_propagate_expose (container=0x81f5a80,
child=0x80d6c80, event=0x81f5a34) at gtkcontainer.c:2464
#38 0xb7c9b8d1 in gtk_container_expose_child (child=0xbf96e360,
client_data=0x80a2080) at gtkcontainer.c:2352
#39 0xb7ce4793 in gtk_fixed_forall (container=0xbf96e360,
include_internals=1, callback=0xb7c9b8b0 <gtk_container_expose_child>,
callback_data=0xbf970660) at gtkfixed.c:486#40 0xb7c99dcd in
IA__gtk_container_forall (container=0x80d4478,
callback=0xb7c9b8b0 <gtk_container_expose_child>,
callback_data=0xbf96e360) at gtkcontainer.c:1265
#41 0xb7c9b964 in gtk_container_expose (widget=0x80d4478, event=0x81f5a34)
at gtkcontainer.c:2375
#42 0xb7d2c700 in _gtk_marshal_BOOLEAN__BOXED (closure=0x80c4b88,
return_value=0xbf9707c0, n_param_values=2, param_values=0xbf970900,
invocation_hint=0xbf9707e8, marshal_data=0xb7c9b8e0) at
gtkmarshalers.c:83
#43 0xb79c36b9 in g_type_class_meta_marshal (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf970900, invocation_hint=0xbf96e360,
marshal_data=0xbf96e360) at gclosure.c:569
#44 0xb79c33e5 in IA__g_closure_invoke (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf96e360, invocation_hint=0xbf96e360) at gclosure.c:492
#45 0xb79d4ab5 in signal_emit_unlocked_R (node=0x80c4bd8, detail=0,
instance=0x80d4478, emission_return=0xbf970890,
instance_and_params=0xbf970900) at gsignal.c:2523
#46 0xb79d3eca in IA__g_signal_emit_valist (instance=0x80d4478, signal_id=0,
detail=0, var_args=0xbf970a90 "\230\n\227ż\230\n\227ż") at
gsignal.c:2254
#47 0xb79d4376 in IA__g_signal_emit (instance=0xbf96e360,
signal_id=3214336864, detail=3214336864) at gsignal.c:2288
#48 0xb7e23317 in gtk_widget_event_internal (widget=0x80d4478,
event=0x81f5a34) at gtkwidget.c:3732
#49 0xb7c9bbfc in IA__gtk_container_propagate_expose (container=0x81f5a34,
child=0x80d4478, event=0x81f59e8) at gtkcontainer.c:2464
#50 0xb7c9b8d1 in gtk_container_expose_child (child=0xbf96e360,
client_data=0x80a2080) at gtkcontainer.c:2352
#51 0xb7ce4793 in gtk_fixed_forall (container=0xbf96e360,
include_internals=1, callback=0xb7c9b8b0 <gtk_container_expose_child>,
callback_data=0xbf970b60) at gtkfixed.c:486
#52 0xb7c99dcd in IA__gtk_container_forall (container=0x80d2310,
callback=0xb7c9b8b0 <gtk_container_expose_child>,
callback_data=0xbf96e360) at gtkcontainer.c:1265
#53 0xb7c9b964 in gtk_container_expose (widget=0x80d2310, event=0x81f59e8)
at gtkcontainer.c:2375
#54 0xb7d2c700 in _gtk_marshal_BOOLEAN__BOXED (closure=0x80c4b88,
return_value=0xbf970cc0, n_param_values=2, param_values=0xbf970e00,
invocation_hint=0xbf970ce8, marshal_data=0xb7c9b8e0) at
gtkmarshalers.c:83
#55 0xb79c36b9 in g_type_class_meta_marshal (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf970e00, invocation_hint=0xbf96e360,
marshal_data=0xbf96e360) at gclosure.c:569
#56 0xb79c33e5 in IA__g_closure_invoke (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf96e360, invocation_hint=0xbf96e360) at gclosure.c:492
#57 0xb79d4ab5 in signal_emit_unlocked_R (node=0x80c4bd8, detail=0,
instance=0x80d2310, emission_return=0xbf970d90,
instance_and_params=0xbf970e00) at gsignal.c:2523
#58 0xb79d3eca in IA__g_signal_emit_valist (instance=0x80d2310, signal_id=0,
detail=0, var_args=0xbf970f90 "\230\017\227ż\230\017\227ż")
at gsignal.c:2254#59 0xb79d4376 in IA__g_signal_emit
(instance=0xbf96e360,
signal_id=3214336864, detail=3214336864) at gsignal.c:2288
#60 0xb7e23317 in gtk_widget_event_internal (widget=0x80d2310,
event=0x81f59e8) at gtkwidget.c:3732
#61 0xb7c9bbfc in IA__gtk_container_propagate_expose (container=0x81f59e8,
child=0x80d2310, event=0xbf971540) at gtkcontainer.c:2464
#62 0xb7c9b8d1 in gtk_container_expose_child (child=0xbf96e360,
client_data=0x80a2080) at gtkcontainer.c:2352
#63 0xb7c599ec in gtk_bin_forall (container=0xbf96e360, include_internals=1,
callback=0x80a2080, callback_data=0xbf96e360) at gtkbin.c:166
#64 0xb7c99dcd in IA__gtk_container_forall (container=0x80cfa78,
callback=0xb7c9b8b0 <gtk_container_expose_child>,
callback_data=0xbf96e360) at gtkcontainer.c:1265
#65 0xb7c9b964 in gtk_container_expose (widget=0x80cfa78, event=0xbf971540)
at gtkcontainer.c:2375
#66 0xb7e31ba2 in gtk_window_expose (widget=0x80cfa78, event=0xbf971540)
at gtkwindow.c:5906
#67 0xb7d2c700 in _gtk_marshal_BOOLEAN__BOXED (closure=0x80c4b88,
return_value=0xbf9711e0, n_param_values=2, param_values=0xbf971320,
invocation_hint=0xbf971208, marshal_data=0xb7e31b50) at
gtkmarshalers.c:83
#68 0xb79c36b9 in g_type_class_meta_marshal (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf971320, invocation_hint=0xbf96e360,
marshal_data=0xbf96e360) at gclosure.c:569
#69 0xb79c33e5 in IA__g_closure_invoke (closure=0x80c4b88,
return_value=0xbf96e360, n_param_values=3214336864,
param_values=0xbf96e360, invocation_hint=0xbf96e360) at gclosure.c:492
#70 0xb79d4ab5 in signal_emit_unlocked_R (node=0x80c4bd8, detail=0,
instance=0x80cfa78, emission_return=0xbf9712b0,
instance_and_params=0xbf971320) at gsignal.c:2523
#71 0xb79d3eca in IA__g_signal_emit_valist (instance=0x80cfa78, signal_id=0,
detail=0, var_args=0xbf9714b0 ".\024\227ż.\024\227ż") at gsignal.c:2254
#72 0xb79d4376 in IA__g_signal_emit (instance=0xbf96e360,
signal_id=3214336864, detail=3214336864) at gsignal.c:2288
#73 0xb7e23317 in gtk_widget_event_internal (widget=0x80cfa78,
event=0xbf971540) at gtkwidget.c:3732
#74 0xb7d29fcd in IA__gtk_main_do_event (event=0xbf971540) at gtkmain.c:1380
#75 0xb7bb893d in gdk_window_process_updates_internal (window=0x8207ce0)
at gdkwindow.c:2292
#76 0xb7bb8a8e in IA__gdk_window_process_all_updates () at gdkwindow.c:2345
#77 0xb7c999de in gtk_container_idle_sizer (data=0x0) at gtkcontainer.c:1117
#78 0xb7959013 in g_idle_dispatch (source=0x820ebb8, callback=0x80a2080,
user_data=0xbf96e360) at gmain.c:3817
#79 0xb7956012 in g_main_dispatch (context=0x80bea20) at gmain.c:1934
#80 0xb7957098 in IA__g_main_context_dispatch (context=0x80bea20)
at gmain.c:2484
#81 0xb79573d0 in g_main_context_iterate (context=0x80bea20, block=1,
dispatch=1, self=0x80bf3c8) at gmain.c:2565
#82 0xb7957973 in IA__g_main_loop_run (loop=0x8201e08) at gmain.c:2769
#83 0xb7d298a3 in IA__gtk_main () at gtkmain.c:1001
#84 0x0804aa0d in main (argc=1, argv=0xbf971cf4) at main.c:232
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]