I am using ubuntu mate 18.04 and I installed gedit in it alongside pluma (mate default text editor) so I can manage my text notes with gedit. I was also using this setup in ubuntu 16.04, ubuntu mate 16.04 and even in ubuntu mate 18.04 and it works really great. A few days ago I reinstalled my ubuntu mate, install gedit and some necessary plugins and now gedit is crashing in almost in all sessions. I used gedit to manage all my notes and journal entries but this problem is making it impossible. I removed and install gedit multiple time, check with and without plugins but nothing is working. Can anyone help?
update: when I launch this program in the terminal, it crashes after some time with the following error.
(gedit:26250): Gdk-ERROR **: 01:25:37.372: The program 'gedit' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
(Details: serial 2911131 error_code 16 request_code 18 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap
From the comments...
We renamed
~/.config/gedit
to~/.config/gedit.HOLD
, then retry gedit and see if it works. It worked. So something is wrong with this prefs folder. It's owned by root.You probably started gedit in the terminal using
sudo gedit
, and you should be usingsudo -H gedit
. All GUI apps should be started this way from the terminal.