Bug#678457: gedit: crashes on setting highlight mode to default

Michel Casabona michel.casabona at free.fr
Thu Jun 21 21:59:49 UTC 2012


Package: gedit
Version: 3.4.2-1
Severity: normal

To reproduce, edit a text file and set the highlight mode
View -> Highlight Mode -> Others -> Defaults

~$ LANG=C gedit tmp/test.txt
**
GtkSourceView:ERROR:gtksourcecontextengine.c:5487:update_syntax: 
assertion failed: (state->context != NULL)
Abandon

In some cases under Gnome the problem persists because the highlight
mode has been saved in the file's metadata

~$ gvfs-info tmp/test.txt | tail -2
   metadata::gedit-language: def
   metadata::gedit-position: 0

To make the file geditable again, the attribute has to be reset
~$ gvfs-set-attribute tmp/test.txt metadata::gedit-language ''


I'm reporting the bug against gedit because it is the application that
crashed, but it could be libgtksourceview as well.

Thanks


-- Package-specific info:
Active plugins:
   - 'spell'
   -  'docinfo'
   -  'filebrowser'
   -  'time'
   -  'modelines'

No plugin installed in $HOME.

Module versions:
   - glib                  2.32.3
   - gtk+
   - gtksourceview
   - pygobject
   - enchant
   - iso-codes             3.36


-- System Information:
Debian Release: wheezy/sid
   APT prefers testing
   APT policy: (990, 'testing'), (100, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.20 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gedit depends on:
ii  gedit-common               3.4.2-1
ii  gir1.2-atk-1.0             2.4.0-2
ii  gir1.2-freedesktop         1.32.1-1
ii  gir1.2-gdkpixbuf-2.0       2.26.1-1
ii  gir1.2-glib-2.0            1.32.1-1
ii  gir1.2-gtk-3.0             3.4.2-1
ii  gir1.2-gtksource-3.0       3.4.2-1
ii  gir1.2-pango-1.0           1.30.0-1
ii  gir1.2-peas-1.0            1.4.0-2
ii  gsettings-desktop-schemas  3.4.2-1
ii  iso-codes                  3.36-1
ii  libatk1.0-0                2.4.0-2
ii  libc6                      2.13-33
ii  libcairo-gobject2          1.12.2-1
ii  libcairo2                  1.12.2-1
ii  libenchant1c2a             1.6.0-7
ii  libffi5                    3.0.10-3
ii  libgdk-pixbuf2.0-0         2.26.1-1
ii  libgirepository-1.0-1      1.32.1-1
ii  libglib2.0-0               2.32.3-1
ii  libgtk-3-0                 3.4.2-1
ii  libgtksourceview-3.0-0     3.4.2-1
ii  libice6                    2:1.0.8-2
ii  libpango1.0-0              1.30.0-1
ii  libpeas-1.0-0              1.4.0-2
ii  libsm6                     2:1.2.1-2
ii  libx11-6                   2:1.4.99.901-2
ii  libxml2                    2.8.0+dfsg1-3
ii  python                     2.7.3~rc2-1
ii  python-gi                  3.2.2-1
ii  python-gi-cairo            3.2.2-1
ii  python2.7                  2.7.3~rc2-2.1

Versions of packages gedit recommends:
ii  yelp    3.4.2-1
ii  zenity  3.4.0-2

Versions of packages gedit suggests:
ii  gedit-plugins  3.4.0-1

-- no debconf information







More information about the pkg-gnome-maintainers mailing list