I created a snippet that inserts some after text (ending in a newline).
Once in a while, using the snippet fails with something like:
(bluefish:146224): GLib-CRITICAL : 09:50:12.869: g_utf8_strlen: assertion 'p != NULL || max == 0' failed
(bluefish:146224): Gtk-CRITICAL : 09:50:12.869: gtk_text_buffer_insert: assertion 'text != NULL' failed
doc_insert_two_strings, about to call doc_set_modified(0x557c2e569490,1)
(bluefish:146224): GLib-CRITICAL : 09:50:31.067: g_utf8_strlen: assertion 'p != NULL || max == 0' failed
(bluefish:146224): Gtk-CRITICAL : 09:50:31.067: gtk_text_buffer_insert: assertion 'text != NULL' failed
I go to the snippet editor, click forward twice and then I can use the snippet again, and I get:
doc_insert_two_strings, about to call doc_set_modified(0x557c2e569490,1)
doc_insert_two_strings, about to call doc_set_modified(0x557c2e569490,1)
can you send me the snippets file that causes this behavior?
it is stored in ~/.bluefish/snippets
does the snippet fail, or does bluefish crash completely?
Here it is. I've only added the snippet at the end.
There is no crash, the cursor moves up a line or two (can't recall exactly now) and no text is inserted.
hi,
it works… if you have some character Before, not a space or nl, or if you select something.
as this it works without selection or character before :
Regards
it works sometimes, sometimes it fails (with assertion fail error),
Once it fails, it doesn't work again, but it will work again if I go through the Edit Snippet process and click Forward, changing nothing.
Hi,
in my .bluefich/snippets file I have 56 items as
I have 56 <after>, 79 <after> , 0 <before>, 0 <before></before></before></after></after>
Thank you. I'll use that.
I found the problem, it is fixed in revision 8892
Fixed, hence this ticket will be closed.