Crashed on windows 10 under MSYS2
Steps to reproduce
- Create an GtkSourceView / GtkTextView
- Insert lines quickly
- then crashed
Current behavior
Crashed while open text view with text
The main break point seems like: iter_init_from_char_offset gtk_text_layout_invalidate
Expected outcome
work normally like GTK3
Version information
GTK 4.5.1
GLib 2.70.2
Pango: 1.50.3
GtkSourceView: 5.2.0
Windows: Windows 10 21H1(19043.1415)
Additional information
Gtk-CRITICAL **: 10:44:02.996: gtk_widget_measure: assertion 'for_size >= minimum opposite size' failed: 122 >= 638
Gtk-CRITICAL **: 10:44:04.617: gtk_widget_measure: assertion 'for_size >= minimum opposite size' failed: 512 >= 1168
GLib-WARNING **: 10:46:17.510: Accessing a sequence while it is being sorted or searched is not allowed
GLib-WARNING **: 10:46:17.667: corrupted double-linked list detected
Gtk-CRITICAL **: 10:44:06.722: gtk_text_layout_invalidate: assertion 'layout->wrap_loop_count == 0' failed
.......<many lines>
Gtk-CRITICAL **: 10:44:07.324: gtk_text_layout_invalidate: assertion 'layout->wrap_loop_count == 0' failed
(kangaroo.exe:2400): GLib-WARNING **: 10:47:15.178: Accessing a sequence while it is being sorted or searched is not allowed
Gtk-WARNING **: 10:47:15.180: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/paintables/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
Gtk-WARNING **: 10:47:15.180: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/paintables/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
Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffb2c2144e8 in ?? () from C:\msys\mingw64\bin\libglib-2.0-0.dll
(gdb) bt
#0 0x00007ffb2c2144e8 in ?? () from C:\msys\mingw64\bin\libglib-2.0-0.dll
#1 0x00007ffb2c212876 in ?? () from C:\msys\mingw64\bin\libglib-2.0-0.dll
#2 0x00007ffb2c213a52 in ?? () from C:\msys\mingw64\bin\libglib-2.0-0.dll
#3 0x00007ffb0e21bcd2 in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#4 0x00007ffb0e21eece in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#5 0x00007ffb0e21a3cf in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#6 0x00007ffb0e307c44 in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#7 0x00007ffb0e307e06 in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#8 0x00007ffb0e30b1f9 in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#9 0x00007ffb0e21a313 in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#10 0x00007ffb0e22e749 in ?? () from C:\msys\mingw64\bin\libgtk-4-1.dll
#11 0x00007ffb2c208d47 in ?? () from C:\msys\mingw64\bin\libglib-2.0-0.dll
#12 0x00007ffb2c20bede in ?? () from C:\msys\mingw64\bin\libglib-2.0-0.dll
#13 0x00007ffb2c20c201 in ?? () from C:\msys\mingw64\bin\libglib-2.0-0.dll
#14 0x00007ffb1ef9db7d in ?? () from C:\msys\mingw64\bin\libgio-2.0-0.dll
#15 0x00007ff6bd9015ea in _vala_main (args=0x18fff52db10, args_length1=1)
at ../src/main.vala:22
#16 0x00007ff6bd90162d in main (argc=1, argv=0x18fff52db10)
at ../src/main.vala:13
Edited by TAO ZUHONG