Text Editor crashes when double-click selecting a line
System information
What is your operating system and version? Debian Sid + (GNOME from Experimental)
What is the version of GNOME Text Editor? 44.0
Have you tested Nightly to see if the issue has been fixed? If not, why?
- Testing, it's a little random to reproduce
Bug information
Steps to reproduce
- Double-click a line to select it
- Crash (sometimes, it seems a little random)
Current behaviour
What happened that made it evident there was a problem?
- The program crashed
From memory, it normally happens when the window is out of focus, and I go to select a line by double clicking, grabbing focus at the same time. It also doesn't happen reliably.
From the logs:
Jul 07 23:59:47 snakeroot gnome-text-edit[33618]: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/paintables/widgets in the buffer have been modified since the iterator was>
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
Jul 07 23:59:47 snakeroot kernel: show_signal: 2 callbacks suppressed
Jul 07 23:59:47 snakeroot kernel: traps: gnome-text-edit[33618] general protection fault ip:7fc24a33b2c4 sp:7ffd7a2e2160 error:0 in libgtk-4.so.1.1000.3[7fc24a0b8000+43d000]
Jul 07 23:59:47 snakeroot gnome-text-edit[33618]: real_set_mark: assertion '_gtk_text_iter_get_btree (where) == tree' failed
Jul 07 23:59:47 snakeroot gnome-text-edit[33618]: real_set_mark: assertion '_gtk_text_iter_get_btree (where) == tree' failed
Jul 07 23:59:47 snakeroot gnome-text-edit[33618]: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/paintables/widgets in the buffer have been modified since the iterator was>
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
Jul 07 23:59:47 snakeroot gnome-text-edit[33618]: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/paintables/widgets in the buffer have been modified since the iterator was>
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
Jul 07 23:59:47 snakeroot systemd[1928]: dbus-:1.6-org.gnome.TextEditor@1.service: Main process exited, code=exited, status=139/n/a