Segmentation fault while pasting into a GtkSourceView
Glade version 3.22.1
Gtk logs just before the crash:
(glade:21498): GtkSourceView-CRITICAL **: 03:04:15.477: gtk_source_buffer_get_source_marks_at_iter: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed
(glade:21498): GLib-GObject-WARNING **: 03:04:15.794: invalid cast from 'GtkTextBuffer' to 'GtkSourceBuffer'
(glade:21498): GtkSourceView-CRITICAL **: 03:04:15.795: gtk_source_buffer_get_source_marks_at_iter: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed
(glade:21498): GLib-GObject-WARNING **: 03:04:16.195: invalid cast from 'GtkTextBuffer' to 'GtkSourceBuffer'
(glade:21498): GtkSourceView-CRITICAL **: 03:04:16.195: gtk_source_buffer_get_source_marks_at_iter: assertion 'GTK_SOURCE_IS_BUFFER (buffer)' failed
(glade:21498): Gtk-CRITICAL **: 03:04:16.226: gtk_text_buffer_get_selection_bounds: assertion 'GTK_IS_TEXT_BUFFER (buffer)' failed
(glade:21498): Gtk-WARNING **: 03:04:16.226: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators
(glade:21498): Gtk-WARNING **: 03:04:16.226: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators
Backtrace:
Thread 1 "glade" received signal SIGSEGV, Segmentation fault.
0x00007ffff750772b in ?? () from /usr/lib/libgtk-3.so.0
(gdb) backtrace
#0 0x00007ffff750772b in () at /usr/lib/libgtk-3.so.0
#1 0x00007ffff7509c93 in gtk_text_iter_get_char () at /usr/lib/libgtk-3.so.0
#2 0x00007ffff750acef in gtk_text_iter_ends_line () at /usr/lib/libgtk-3.so.0
#3 0x00007fffd9fa0ff7 in () at /usr/lib/libgtksourceview-3.0.so
#4 0x00007fffd9f8eb58 in () at /usr/lib/libgtksourceview-3.0.so
#5 0x00007ffff7431cf8 in () at /usr/lib/libgtk-3.so.0
#6 0x00007ffff63bcba1 in () at /usr/lib/libgobject-2.0.so.0
#7 0x00007ffff63d83a4 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#8 0x00007ffff63d9130 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#9 0x00007ffff7581ae5 in () at /usr/lib/libgtk-3.so.0
#10 0x00007ffff75a2d14 in gtk_window_propagate_key_event () at /usr/lib/libgtk-3.so.0
#11 0x00007ffff75a68bc in () at /usr/lib/libgtk-3.so.0
#12 0x00007ffff7431bfc in () at /usr/lib/libgtk-3.so.0
#13 0x00007ffff63bca4d in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff63cfbca in () at /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff63d8081 in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#16 0x00007ffff63d9130 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff7581ae5 in () at /usr/lib/libgtk-3.so.0
#18 0x00007ffff742ec22 in () at /usr/lib/libgtk-3.so.0
#19 0x00007ffff7430d03 in gtk_main_do_event () at /usr/lib/libgtk-3.so.0
#20 0x00007ffff6f40526 in () at /usr/lib/libgdk-3.so.0
#21 0x00007ffff6f9cd05 in () at /usr/lib/libgdk-3.so.0
#22 0x00007ffff5ede368 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#23 0x00007ffff5ede5b1 in () at /usr/lib/libglib-2.0.so.0
#24 0x00007ffff5ede8e2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#25 0x00007ffff742fdcf in gtk_main () at /usr/lib/libgtk-3.so.0
#26 0x000055555555d1f4 in main ()
(gdb)
Also, I'm getting constant segmentation faults rendering the program unusable, that's why I happened to run glade under gdb. I can't seem to find any information on it, but am I the only one experiencing crashes constantly or is that normal with the current version? Is it not fully supported on Wayland? Is there a more stable version I can roll back to?
Here are some more critical warnings that I get a lot from Glade:
(glade:21498): GLib-CRITICAL **: 02:16:04.571: g_hash_table_lookup: assertion 'hash_table != NULL' failed
(glade:21498): Gdk-CRITICAL **: 02:17:09.100: gdk_wayland_window_handle_configure_popup: assertion 'impl->transient_for' failed
(glade:21498): Gtk-CRITICAL **: 02:19:45.842: gtk_window_set_default: assertion 'GTK_IS_WINDOW (window)' failed
Those assertions seem to fail non stop.
Thanks in advance.