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 708094 - Crash when using GtkSourceView
Crash when using GtkSourceView
Status: RESOLVED DUPLICATE of bug 643732
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-14 22:36 UTC by Lionel Landwerlin
Modified: 2013-09-15 01:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lionel Landwerlin 2013-09-14 22:36:47 UTC
I'm using a GtkSourceView in one of my UI.
Glade crashes when I turn on the "Show line marks" property in the inspector :


(glade:31989): GLib-GObject-WARNING **: invalid cast from 'GtkTextBuffer' to 'GtkSourceBuffer'

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe4c69a9f in gtk_source_buffer_get_source_marks_at_iter (buffer=0x1499e20, iter=iter@entry=0x19ed1e0, category=category@entry=0x0) at gtksourcebuffer.c:2188
2188		if (buffer->priv->source_marks->len == 0)
(gdb) bt
  • #0 gtk_source_buffer_get_source_marks_at_iter
    at gtksourcebuffer.c line 2188
  • #1 gutter_renderer_query_data
    at gtksourcegutterrenderermarks.c line 190
  • #2 g_closure_invoke
    at gclosure.c line 777
  • #3 signal_emit_unlocked_R
    at gsignal.c line 3624
  • #4 g_signal_emit_valist
    at gsignal.c line 3330
  • #5 g_signal_emit
    at gsignal.c line 3386
  • #6 gtk_source_gutter_renderer_query_data
    at gtksourcegutterrenderer.c line 1003
  • #7 on_view_draw
    at gtksourcegutter.c line 1163
  • #8 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 85
  • #9 gtk_widget_draw_marshaller
    at gtkwidget.c line 980
  • #10 g_closure_invoke
    at gclosure.c line 777
  • #11 signal_emit_unlocked_R
    at gsignal.c line 3586
  • #12 g_signal_emit_valist
    at gsignal.c line 3340
  • #13 g_signal_emit
    at gsignal.c line 3386
  • #14 _gtk_widget_draw_internal
    at gtkwidget.c line 6434
  • #15 _gtk_widget_draw_internal
    at gtkwidget.c line 6413
  • #16 _gtk_widget_draw_windows
    at gtkwidget.c line 6520
  • #17 _gtk_widget_draw_windows
    at gtkwidget.c line 6540
  • #18 _gtk_widget_draw_windows
    at gtkwidget.c line 6540
  • #19 _gtk_widget_draw
    at gtkwidget.c line 6591
  • #20 gtk_container_propagate_draw
    at gtkcontainer.c line 3524
  • #21 gtk_container_draw
    at gtkcontainer.c line 3359
  • #22 gtk_scrolled_window_draw
    at gtkscrolledwindow.c line 1442
  • #23 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #24 gtk_widget_draw_marshallerv
    at gtkwidget.c line 1008
  • #25 _g_closure_invoke_va
    at gclosure.c line 840
  • #26 g_signal_emit_valist
    at gsignal.c line 3238
  • #27 g_signal_emit
    at gsignal.c line 3386
  • #28 _gtk_widget_draw_internal
    at gtkwidget.c line 6434
  • #29 _gtk_widget_draw_internal
    at gtkwidget.c line 6413
  • #30 _gtk_widget_draw_windows
    at gtkwidget.c line 6520
  • #31 _gtk_widget_draw
    at gtkwidget.c line 6616
  • #32 gtk_container_propagate_draw
    at gtkcontainer.c line 3524
  • #33 gtk_notebook_draw
    at gtknotebook.c line 2599
  • #34 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #35 gtk_widget_draw_marshallerv
    at gtkwidget.c line 1008
  • #36 _g_closure_invoke_va
    at gclosure.c line 840
  • #37 g_signal_emit_valist
    at gsignal.c line 3238
  • #38 g_signal_emit
    at gsignal.c line 3386
  • #39 _gtk_widget_draw_internal
    at gtkwidget.c line 6434
  • #40 _gtk_widget_draw_internal
    at gtkwidget.c line 6551
  • #41 _gtk_widget_draw
    at gtkwidget.c line 6597
  • #42 gtk_container_propagate_draw
    at gtkcontainer.c line 3524
  • #43 gtk_container_draw
    at gtkcontainer.c line 3359
  • #44 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #45 gtk_widget_draw_marshallerv
    at gtkwidget.c line 1008
  • #46 _g_closure_invoke_va
    at gclosure.c line 840
  • #47 g_signal_emit_valist
    at gsignal.c line 3238
  • #48 g_signal_emit
    at gsignal.c line 3386
  • #49 _gtk_widget_draw_internal
    at gtkwidget.c line 6434
  • #50 _gtk_widget_draw_internal
    at gtkwidget.c line 6551
  • #51 _gtk_widget_draw
    at gtkwidget.c line 6597
  • #52 gtk_container_propagate_draw
    at gtkcontainer.c line 3524
  • #53 gtk_container_draw
    at gtkcontainer.c line 3359
  • #54 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #55 gtk_widget_draw_marshallerv
    at gtkwidget.c line 1008
  • #56 _g_closure_invoke_va
    at gclosure.c line 840
  • #57 g_signal_emit_valist
    at gsignal.c line 3238
  • #58 g_signal_emit
    at gsignal.c line 3386
  • #59 _gtk_widget_draw_internal
    at gtkwidget.c line 6434
  • #60 _gtk_widget_draw_internal
    at gtkwidget.c line 6551
  • #61 _gtk_widget_draw
    at gtkwidget.c line 6597
  • #62 gtk_container_propagate_draw
    at gtkcontainer.c line 3524
  • #63 gtk_container_draw
    at gtkcontainer.c line 3359
  • #64 gtk_window_draw
    at gtkwindow.c line 9287
  • #65 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #66 gtk_widget_draw_marshallerv
    at gtkwidget.c line 1008
  • #67 _g_closure_invoke_va
    at gclosure.c line 840
  • #68 g_signal_emit_valist
    at gsignal.c line 3238
  • #69 g_signal_emit
    at gsignal.c line 3386
  • #70 _gtk_widget_draw_internal
    at gtkwidget.c line 6434
  • #71 _gtk_widget_draw_internal
    at gtkwidget.c line 6413
  • #72 _gtk_widget_draw_windows
    at gtkwidget.c line 6520
  • #73 _gtk_widget_draw
    at gtkwidget.c line 6591
  • #74 gtk_container_propagate_draw
    at gtkcontainer.c line 3524
  • #75 glade_design_layout_draw
    at glade-design-layout.c line 1578
  • #76 _gtk_marshal_BOOLEAN__BOXEDv
    at gtkmarshalers.c line 130
  • #77 gtk_widget_draw_marshallerv
    at gtkwidget.c line 1008
  • #78 _g_closure_invoke_va
    at gclosure.c line 840
  • #79 g_signal_emit_valist
  • #80 g_signal_emit
    at gsignal.c line 3386
  • #81 _gtk_widget_draw_internal
    at gtkwidget.c line 6434
  • #82 _gtk_widget_draw_internal
    at gtkwidget.c line 6413
  • #83 _gtk_widget_draw_windows
    at gtkwidget.c line 6520
  • #84 gtk_widget_send_expose
    at gtkwidget.c line 6978
  • #85 gtk_main_do_event
    at gtkmain.c line 1628
  • #86 _gdk_window_process_updates_recurse_helper
    at gdkwindow.c line 3382
  • #87 gdk_window_process_updates_internal
    at gdkwindow.c line 3490
  • #88 gdk_window_process_updates_with_mode
    at gdkwindow.c line 3689
  • #89 _g_closure_invoke_va
    at gclosure.c line 840
  • #90 g_signal_emit_valist
    at gsignal.c line 3238
  • #91 g_signal_emit_by_name
    at gsignal.c line 3426
  • #92 gdk_frame_clock_paint_idle
    at gdkframeclockidle.c line 430
  • #93 gdk_threads_dispatch
    at gdk.c line 804
  • #94 g_timeout_dispatch
    at gmain.c line 4539
  • #95 g_main_dispatch
    at gmain.c line 3122
  • #96 g_main_context_dispatch
    at gmain.c line 3730
  • #97 g_main_context_iterate
    at gmain.c line 3801
  • #98 g_main_loop_run
    at gmain.c line 3995
  • #99 gtk_main
    at gtkmain.c line 1158
  • #100 main
    at main.c line 201

Comment 1 Juan Pablo Ugarte 2013-09-14 22:57:27 UTC
Hi, thanks for reporting, this seems like a bug in GtkSourceView and/or its glade plugin. Reassigning it
Comment 2 Sébastien Wilmet 2013-09-15 01:52:33 UTC

*** This bug has been marked as a duplicate of bug 643732 ***