alanhamlett/gedit-folding — Issue #3: gEdit crashes randomly when collapsing
Author: Jemt
Created: 2011-12-17 10:24:02+00:00
State: open

Hi,

Using the collapse feature in larger files (e.g. 600 lines) with multiple PHP class/interface declerations and many functions, randomly - and very frequently - causes gEdit to crash with the following error:

SimpleFolding plugin: create fold by indent
sys:1: GtkWarning: /scratch/build-area/gtk+2.0-2.20.1/gtk/gtktextbtree.c:4019: byte index off the end of the line

Gtk-ERROR **: Byte index 255 is off the end of the line
aborting...
Aborted

Sometimes I can collapse several elements, sometimes it simply crashes the very first time I collapse an element.
I have been testing with the exact same file every time - there seems to be no specific pattern to reproduce the problem.

gEdit version 2.30.4 on Debian 6.
gedit-folding version releated on May 23 2011 (seems to be most recent gEdit 2 compatible version).