Package: gtkspell3 Version: 3.0.7-2 Severity: normal Tags: upstream patch Hi,
when using gtkspell3 I often see CRITICAL **: enchant_dict_check: assertion 'len' failed It mostly happens after hitting return. Upstream already fixed the bug, I attached the patch. The communication upstream can be found here: https://sourceforge.net/p/gtkspell/mailman/message/33494688/ Best, Philip -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
Author: Sandro Mani --- a/gtkspell/gtkspell.c +++ b/gtkspell/gtkspell.c @@ -223,6 +223,11 @@ /* move wend to the end of the current word. */ wend = wstart; gtk_text_iter_forward_word_end (&wend); + + /* make sure we've actually advanced + * (we don't advance in some corner cases, such as after punctuation) */ + if (gtk_text_iter_equal (&wstart, &wend)) + break; inword = (gtk_text_iter_compare (&wstart, &cursor) < 0) && (gtk_text_iter_compare (&cursor, &wend) <= 0);