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 609232 - autocompletion crash
autocompletion crash
Status: RESOLVED NOTABUG
Product: gtksourceview
Classification: Platform
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2010-02-07 13:32 UTC by Carl-Anton Ingmarsson
Modified: 2010-08-31 20:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carl-Anton Ingmarsson 2010-02-07 13:32:36 UTC
When typing static in the editor anjuta crashes.

(anjuta:24682): GLib-CRITICAL **: g_list_insert_before: assertion `sibling == list' failed

(anjuta:24682): Gtk-CRITICAL **: gtk_tree_row_reference_new: assertion `path != NULL' failed

(anjuta:24682): Gtk-CRITICAL **: gtk_tree_model_row_inserted: assertion `path != NULL' failed

(anjuta:24682): Gtk-CRITICAL **: gtk_tree_path_next: assertion `path != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff40c4e2f in IA__g_list_insert_before (list=0x286dfa0, 
    sibling=0x2870860, data=0x236f610) at glist.c:383
383		  node->prev->next = node;
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-6.fc12.x86_64 freetype-2.3.11-3.fc12.x86_64 glibc-2.11.1-1.x86_64 libX11-1.3-1.fc12.x86_64 libXau-1.0.5-1.fc12.x86_64 libXcomposite-0.4.1-2.fc12.x86_64 libXcursor-1.1.10-1.fc12.x86_64 libXdamage-1.1.2-1.fc12.x86_64 libXext-1.1-2.fc12.x86_64 libXfixes-4.0.4-1.fc12.x86_64 libXinerama-1.1-1.fc12.x86_64 libXrandr-1.3.0-5.fc12.x86_64 libXrender-0.9.5-1.fc12.x86_64 libgcc-4.4.2-20.fc12.x86_64 libogg-1.1.4-2.fc12.x86_64 libpng-1.2.39-1.fc12.x86_64 libselinux-2.0.87-1.fc12.x86_64 libstdc++-4.4.2-20.fc12.x86_64 libvorbis-1.2.3-4.fc12.x86_64 libxcb-1.5-1.fc12.x86_64 ncurses-libs-5.7-3.20090207.fc12.x86_64 zlib-1.2.3-23.fc12.x86_64
(gdb) bt
  • #0 IA__g_list_insert_before
    at glist.c line 383
  • #1 insert_node
    at gtksourcecompletionmodel.c line 753
  • #2 gtk_source_completion_model_append
    at gtksourcecompletionmodel.c line 1209
  • #3 _gtk_source_completion_add_proposals
    at gtksourcecompletion.c line 3234
  • #4 gtk_source_completion_context_add_proposals
    at gtksourcecompletioncontext.c line 237
  • #5 iassist_proposals
    at /home/c-a/Programmering/anjuta/plugins/sourceview/sourceview.c line 2179
  • #6 ianjuta_editor_assist_proposals
    at /home/c-a/Programmering/anjuta/libanjuta/interfaces/ianjuta-editor-assist.c line 112
  • #7 cpp_java_assist_update_autocomplete
    at /home/c-a/Programmering/anjuta/plugins/language-support-cpp-java/cpp-java---Type <return> to continue, or q <return> to quit--- -assist.c line 396
  • #8 cpp_java_assist_populate
    at /home/c-a/Programmering/anjuta/plugins/language-support-cpp-java/cpp-java-assist.c line 964
  • #9 ianjuta_provider_populate
    at /home/c-a/Programmering/anjuta/libanjuta/interfaces/ianjuta-provider.c line 153
  • #10 sourceview_provider_populate
    at /home/c-a/Programmering/anjuta/plugins/sourceview/sourceview-provider.c line 54
  • #11 gtk_source_completion_provider_populate
    at gtksourcecompletionprovider.c line 219
  • #12 update_completion
    at gtksourcecompletion.c line 3174
  • #13 update_interactive_completion
    at gtksourcecompletion.c line 1686
  • #14 buffer_insert_text_cb
    at gtksourcecompletion.c line 1709
  • #15 _gtk_marshal_VOID__BOXED_STRING_INT
    at gtkmarshalers.c line 1423
  • #16 IA__g_closure_invoke
    at gclosure.c line 767
  • #17 signal_emit_unlocked_R
    at gsignal.c line 3313
  • #18 IA__g_signal_emit_valist
    at gsignal.c line 2976
  • #19 IA__g_signal_emit
    at gsignal.c line 3033
  • #20 gtk_text_buffer_emit_insert
    at gtktextbuffer.c line 891
  • #21 IA__gtk_text_buffer_insert_interactive
    at gtktextbuffer.c line 983
  • #22 IA__gtk_text_buffer_insert_interactive_at_cursor
    at gtktextbuffer.c line 1021
  • #23 gtk_text_view_commit_text
  • #24 gtk_text_view_commit_handler
    at gtktextview.c line 7324
  • #25 IA__g_cclosure_marshal_VOID__STRING
    at gmarshal.c line 496
  • #26 IA__g_closure_invoke
    at gclosure.c line 767
  • #27 signal_emit_unlocked_R
    at gsignal.c line 3243
  • #28 IA__g_signal_emit_valist
    at gsignal.c line 2976
  • #29 IA__g_signal_emit_by_name
    at gsignal.c line 3070
  • #30 gtk_im_multicontext_commit_cb
    at gtkimmulticontext.c line 458
  • #31 IA__g_cclosure_marshal_VOID__STRING
    at gmarshal.c line 496
  • #32 IA__g_closure_invoke
    at gclosure.c line 767
  • #33 signal_emit_unlocked_R
    at gsignal.c line 3243
  • #34 IA__g_signal_emit_valist
    at gsignal.c line 2976
  • #35 IA__g_signal_emit_by_name
    at gsignal.c line 3070
  • #36 gtk_im_context_simple_commit_char
    at gtkimcontextsimple.c line 168
  • #37 no_sequence_matches
    at gtkimcontextsimple.c line 728
  • #38 gtk_im_context_simple_filter_keypress
    at gtkimcontextsimple.c line 1037
  • #39 IA__gtk_im_context_filter_keypress
    at gtkimcontext.c line 473
  • #40 gtk_im_multicontext_filter_keypress
    at gtkimmulticontext.c line 325
  • #41 IA__gtk_im_context_filter_keypress
    at gtkimcontext.c line 473
  • #42 gtk_text_view_key_press_event
  • #43 gtk_source_view_key_press_event
    at gtksourceview.c line 4192
  • #44 anjuta_view_key_press_event
    at /home/c-a/Programmering/anjuta/plugins/sourceview/anjuta-view.c line 692
  • #45 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #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 3281
  • #49 IA__g_signal_emit_valist
    at gsignal.c line 2986
  • #50 IA__g_signal_emit
    at gsignal.c line 3033
  • #51 gtk_widget_event_internal
    at gtkwidget.c line 4941
  • #52 IA__gtk_widget_event
    at gtkwidget.c line 4738
  • #53 IA__gtk_window_propagate_key_event
    at gtkwindow.c line 5177
  • #54 gtk_window_key_press_event
    at gtkwindow.c line 5207
  • #55 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 84
  • #56 g_type_class_meta_marshal
    at gclosure.c line 878
  • #57 IA__g_closure_invoke
    at gclosure.c line 767
  • #58 signal_emit_unlocked_R
    at gsignal.c line 3281
  • #59 IA__g_signal_emit_valist
    at gsignal.c line 2986
  • #60 IA__g_signal_emit
    at gsignal.c line 3033
  • #61 gtk_widget_event_internal
    at gtkwidget.c line 4941
  • #62 IA__gtk_widget_event
    at gtkwidget.c line 4738
  • #63 IA__gtk_propagate_event
    at gtkmain.c line 2416
  • #64 IA__gtk_main_do_event
    at gtkmain.c line 1647
  • #65 gdk_event_dispatch
    at gdkevents-x11.c line 2372
  • #66 g_main_dispatch
    at gmain.c line 1960
  • #67 IA__g_main_context_dispatch
    at gmain.c line 2513
  • #68 g_main_context_iterate
    at gmain.c line 2591
  • #69 IA__g_main_loop_run
    at gmain.c line 2799
  • #70 IA__gtk_main
    at gtkmain.c line 1219
  • #71 main
    at /home/c-a/Programmering/anjuta/src/main.c line 248

Comment 1 Johannes Schmid 2010-02-07 14:21:27 UTC
Hmm, which version of gtksourceview do you have installed? There have been some bugs in the completion engines that have been fixed recently.

Last question, do you have "word autocompletion" enabled in the sourceview preferences? That caused some trouble for me but I haven't checked back if they fixed it in gtksourceview now.
Comment 2 Carl-Anton Ingmarsson 2010-02-07 14:32:29 UTC
I've got gtksourceview from trunk. Turning off "word autocompletion" seems to get rid of the crash.
Comment 3 Johannes Schmid 2010-02-07 16:08:22 UTC
Hmm, I think this is a gtksourceview bug then.
Comment 4 Ignacio Casal Quinteiro (nacho) 2010-03-30 22:27:22 UTC
Can you guys confirm that this has been fixed?
Comment 5 Dimitri John Ledkov 2010-04-12 09:18:57 UTC
I think I still observe this in Ubuntu Lucid - Anjuta 2.30.0

Original report with loads apport generated info here: https://bugs.launchpad.net/bugs/560902

Dependencies:
libgtksourceview2.0-0 2.10.0-0ubuntu1
libgtksourceview2.0-common 2.10.0-0ubuntu1
anjuta-common 2:2.30.0.0-0ubuntu1

StacktraceTop:
 g_list_insert_before () from /lib/libglib-2.0.so.0
 insert_node (model=<value optimized out>, info=0xacfcba0,
 gtk_source_completion_model_append (model=0xa899550,
 _gtk_source_completion_add_proposals (completion=0x9242d90,
 gtk_source_completion_context_add_proposals (
Comment 6 Dimitri John Ledkov 2010-04-12 09:35:12 UTC
Is this related to Bug 610394? (that one kind of transformed into an unrelated discussion)
Comment 7 Johannes Schmid 2010-08-31 20:37:32 UTC
Should be fixed in anjuta master now. Seems unrelated to gtksourceview.