[g-a-devel]idle focus ref counting issue ...



	It looks like we're keeping a pointer to a widget around until idle
without holding a ref on it:


glade-2 (pid:29518): GLib-GObject-WARNING **: invalid uninstantiatable
type `<invalid>' in cast to `GtkWidget'

glade-2 (pid:29518): Gtk-CRITICAL **: file gtkwidget.c: line 6413
(gtk_widget_get_accessible): assertion `GTK_IS_WIDGET (widget)' failed

glade-2 (pid:29518): GLib-GObject-WARNING **: invalid cast from (NULL)
pointer to `GObject'

glade-2 (pid:29518): GLib-GObject-CRITICAL **: file gobject.c: line 1372
(g_object_get_data): assertion `G_IS_OBJECT (object)' failed

glade-2 (pid:29518): ** ERROR **: file accessible.c: line 454
(spi_accessible_construct): assertion failed: (o)
aborting...

#0  0x406a169e in g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR,
format=0x40fa1d00 "file %s: line %d (%s): assertion failed: (%s)", 
    args1=0xbffff45c) at gmessages.c:551
#1  0x406a1747 in g_log (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR,
format=0x40fa1d00 "file %s: line %d (%s): assertion failed: (%s)")
    at gmessages.c:574
#2  0x40f88886 in spi_accessible_construct (type=135458840, o=0x0) at
accessible.c:454
#3  0x40f88829 in spi_accessible_new (o=0x0) at accessible.c:443
#4  0x40fb5d3b in spi_atk_bridge_focus_tracker (object=0x0) at
bridge.c:311
#5  0x40544533 in atk_focus_tracker_notify (object=0x0) at atkutil.c:186
#6  0x40fd72d8 in gail_focus_notify (widget=0x8275008) at gail.c:325
#7  0x40fd7264 in gail_focus_idle_handler (data=0x8275008) at gail.c:301
#8  0x4069ccc8 in g_idle_dispatch (source=0x829c780, callback=0x40fd722c
<gail_focus_idle_handler>, user_data=0x8275008) at gmain.c:3129
#9  0x4069a696 in g_main_dispatch (context=0x810b040) at gmain.c:1617
#10 0x4069b4ad in g_main_context_dispatch (context=0x810b040) at
gmain.c:2161
#11 0x4069b840 in g_main_context_iterate (context=0x810b040, block=1,
dispatch=1, self=0x80fdf90) at gmain.c:2242
#12 0x4069bee6 in g_main_loop_run (loop=0x81c42d8) at gmain.c:2462
#13 0x4018edba in bonobo_main () at bonobo-main.c:290
#14 0x0807e7b8 in main (argc=2, argv=0xbffff744) at main.c:127
#15 0x40ba8306 in __libc_start_main (main=0x807e6d0 <main>, argc=2,
ubp_av=0xbffff744, init=0x8055430 <_init>, fini=0x80bffa0 <_fini>, 
    rtld_fini=0x4000d2dc <_dl_fini>, stack_end=0xbffff73c) at
../sysdeps/generic/libc-start.c:129

...
focus_widget is full of 0xaa - ie. it's been finalized already

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




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