GNOME Bugzilla – Bug 325074
Crashes when double clicking on text box
Last modified: 2006-03-20 14:27:18 UTC
If I load up gcalctool (5.7.18, ubuntu dapper), and double click the 0 in the text box, it crashes with: Gtk-ERROR **: file gtktextview.c: line 5685 (gtk_text_view_start_selection_drag): assertion failed: (text_view->selection_drag_handler == 0) aborting...
+ Trace 64831
Confirming
+ Trace 64832
Yup, I see it too. Here's my stack trace: Gtk-CRITICAL **: file gtktextview.c: line 5699: assertion `text_view->selection_ drag_handler == 0' failed aborting... t@1 (l@1) signal ABRT (Abort) in _lwp_kill at 0xcfd55805 0xcfd55805: _lwp_kill+0x0015: jae _lwp_kill+0x23 [ 0xcfd55813, .+0xe ] Current function is start_tool 3383 gtk_main(); (dbx) where current thread: t@1 [1] _lwp_kill(0x1, 0x6), at 0xcfd55805 [2] pthread_kill(0x1, 0x6), at 0xcfd52477 [3] raise(0x6), at 0xcfd1d3d3 [4] abort(0x82b0788, 0x81903d0, 0xd0ef03e8, 0x8229338, 0xcf7f2000, 0x8045e7c), at 0xcfd00e00 [5] g_log(0xd0ed0bc0, 0x8, 0xd0ed1c90, 0xd0ed1c80, 0x1643, 0xd0ed1148), at 0xc fdf56c9 [6] gtk_text_view_start_selection_drag(0x81903d0, 0x8046408, 0x82b0788), at 0x d0dd1f34 [7] gtk_text_view_button_press_event(0x81903d0, 0x82b0788, 0x80d1628), at 0xd0 dcf0e1 [8] _gtk_marshal_BOOLEAN__BOXED(0x80dce50, 0x8046640, 0x2, 0x80466fc, 0x804665 c, 0xd0dced1c), at 0xd0d2e697 [9] g_type_class_meta_marshal(0x80dce50, 0x8046640, 0x2, 0x80466fc, 0x804665c, 0xb0), at 0xd0029fd4 [10] g_closure_invoke(0x80dce50, 0x8046640, 0x2, 0x80466fc, 0x804665c), at 0xd 0029912 [11] signal_emit_unlocked_R(0x80dc7a0, 0x0, 0x81903d0, 0x804687c, 0x80466fc), at 0xd003f028 [12] g_signal_emit_valist(0x81903d0, 0x21, 0x0, 0x8046980), at 0xd003e226 [13] g_signal_emit(0x81903d0, 0x21, 0x0, 0x82b0788, 0x80469a0), at 0xd003e560 [14] gtk_widget_event(0x81903d0, 0x82b0788), at 0xd0e2fb90 [15] gtk_propagate_event(0x81903d0, 0x82b0788), at 0xd0d2d2d7 [16] gtk_main_do_event(0x82b0788, 0x0), at 0xd0d2c2af [17] gdk_event_dispatch(0x80d09a8, 0x0, 0x0), at 0xd0ba29a6 [18] g_main_dispatch(0x80d09f0), at 0xcfdebe09 [19] g_main_context_dispatch(0x80d09f0), at 0xcfded0ca [20] g_main_context_iterate(0x80d09f0, 0x1, 0x1, 0x80b3000), at 0xcfded5c3 [21] g_main_loop_run(0x836a000), at 0xcfdedbcd [22] gtk_main(0x8046ea8, 0x8046d54, 0x80aa138, 0x80aa138, 0x8046d48, 0x8063ee5 ), at 0xd0d2bb54 =>[23] start_tool(), line 3383 in "gtk.c" [24] do_calctool(argc = 2, argv = 0x8046d98), line 1215 in "calctool.c" [25] main(argc = 2, argv = 0x8046d98), line 493 in "gtk.c" (dbx) Looks like I need to work out how to assign a default selection_drag_handler. I'll investigate further when I return from vacation on 9th January 2006.
Problem is with the return value in the mouse_button_cb() routine in gtk.c. It should return FALSE not TRUE.
*** Bug 325332 has been marked as a duplicate of this bug. ***
*** Bug 326146 has been marked as a duplicate of this bug. ***
Created attachment 57042 [details] Fix for the problem.
Change checked into CVS HEAD. Bumped the version number in configure.in to 5.7.19.
*** Bug 326317 has been marked as a duplicate of this bug. ***
*** Bug 326591 has been marked as a duplicate of this bug. ***
*** Bug 335202 has been marked as a duplicate of this bug. ***