Seg Fault using offscreen patch



hi
  i am trying to use the offscreen patch that is  available at 
http://bugzilla.gnome.org/show_bug.cgi?id=318807
http://bugzilla.gnome.org/show_bug.cgi?id=318807 
 
some times i get segfault while pressing a button or checking a check box (i
have tried with these two widgets till now)

Actually i am trying to use a clutter-stage embedded in a GtkWindow and than
i take snapshot of the window and try to display it on clutter stage. 

heres is the gdb o/p

Continuing.

Breakpoint 2, gdk_event_translate (display=0x3c, event=0x0,
xevent=0xbebb1c38, return_exposes=12582937) at gdkevents-x11.c:894
894       if (_gdk_default_filters)
(gdb) s
873     {
(gdb) n
894       if (_gdk_default_filters)
(gdb) 
878       GdkWindowImplX11 *window_impl = NULL;
(gdb) 
873     {
(gdb) 
890       window = NULL;
(gdb) 
894       if (_gdk_default_filters)
(gdb) 
873     {
(gdb) 
894       if (_gdk_default_filters)
(gdb) 
887       return_val = FALSE;
(gdb) 
873     {
(gdb) 
883       GdkToplevelX11 *toplevel = NULL;
(gdb) 
873     {
(gdb) 
892       event->any.window = NULL;
(gdb) 
881       GdkScreen *screen = NULL;
(gdb) 
882       GdkScreenX11 *screen_x11 = NULL;
(gdb) 
894       if (_gdk_default_filters)
(gdb) 
763       if (event->type >= KeyPress &&
(gdb) 
811           for (tmp_list = display_x11->event_types;
(gdb) 
759     {
(gdb) 
811           for (tmp_list = display_x11->event_types;
(gdb) 
763       if (event->type >= KeyPress &&
(gdb) 
766           *filter_window = event->xany.window;
(gdb) 
767           switch (event->type)
(gdb) 
766           *filter_window = event->xany.window;
(gdb) 
767           switch (event->type)
(gdb) 
803               *event_window = event->xany.window;
(gdb) 
914       window = gdk_window_lookup_for_display (display, xwindow);
(gdb) 
918       if (window && !GDK_IS_WINDOW (window))
(gdb) 
914       window = gdk_window_lookup_for_display (display, xwindow);
(gdb) 
918       if (window && !GDK_IS_WINDOW (window))
(gdb) 

925       if (filter_xwindow == xwindow)
(gdb) 
926         filter_window = window;
(gdb) 
925       if (filter_xwindow == xwindow)
(gdb) 
934       if (window)
(gdb) 
936           screen = GDK_WINDOW_SCREEN (window);
(gdb) 
938           toplevel = _gdk_x11_window_get_toplevel (window);
(gdb) 
936           screen = GDK_WINDOW_SCREEN (window);
(gdb) 
938           toplevel = _gdk_x11_window_get_toplevel (window);
(gdb) 
944           if ((xevent->type == KeyPress ||
(gdb) 
937           screen_x11 = GDK_SCREEN_X11 (screen);
(gdb) 
944           if ((xevent->type == KeyPress ||
(gdb) 
937           screen_x11 = GDK_SCREEN_X11 (screen);
(gdb) 
944           if ((xevent->type == KeyPress ||
(gdb) 
948               window_private = display_x11->keyboard_xgrab_window;
(gdb) 
958           if (toplevel && xwindow == toplevel->focus_window)
(gdb) 
953           window_impl = GDK_WINDOW_IMPL_X11 (window_private->impl);
(gdb) 

Program received signal SIGSEGV, Segmentation fault.
gdk_event_translate (display=0x310088, event=0x312240, xevent=0xbebb1c38,
return_exposes=0) at gdkevents-x11.c:953
953           window_impl = GDK_WINDOW_IMPL_X11 (window_private->impl);
(gdb) bt
#0  gdk_event_translate (display=0x310088, event=0x312240,
xevent=0xbebb1c38, return_exposes=0) at gdkevents-x11.c:953
#1  0x404b9d60 in _gdk_events_queue (display=0x310088) at
gdkevents-x11.c:2297
#2  0x404b9f58 in gdk_event_dispatch (source=0x3, callback=0xc00019,
user_data=0x313a20) at gdkevents-x11.c:2358
#3  0x4079b750 in IA__g_main_context_dispatch (context=0x305338) at
gmain.c:2061
#4  0x4079d4f4 in g_main_context_iterate (context=0x305338, block=1,
dispatch=1, self=0x3dfcd8) at gmain.c:2694
#5  0x4079d854 in IA__g_main_loop_run (loop=0x492c58) at gmain.c:2898
#6  0x4024b7e0 in IA__gtk_main () at gtkmain.c:1144
#7  0x0000a7b8 in main (argc=1, argv=0xbebb1e34) at theme_main.c:318
(gdb) p window_impl
$1 = (GdkWindowImplX11 *) 0x0

-- 
View this message in context: http://www.nabble.com/Seg-Fault-using-offscreen-patch-tp15035647p15035647.html
Sent from the Gtk+ - Dev - General mailing list archive at Nabble.com.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]