This explodes on Gedit any time I try to edit a file with sudo under the
/etc/ directory. The entire computer freezes as CPU load average hits
over 4.

gedit --version

3.28.1

uname -a

Linux _ 4.10.0-041000-generic #201702191831 SMP Sun Feb 19 23:33:19 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux


simple way to reproduce:

sudo gedit /etc/hosts

enjoy your computer freezing. To the point even htop can't update except
once every 10 seconds. (Note: My hosts file is almost default and maybe
20 lines long including comments. This is NOT a big file.)

ibus-x11 
  and 
ibus/ui-gtk3

both go wide open with CPU usage.

After ~5 minutes, if you leave it alone, Gedit will then explode and all
text turns into squares (ala font glyph not found).

Soon after that, it'll crash, and Ubuntu will say "system program
problem detected".

In the terminal window, I got the following output upon crash:


sudo gedit /etc/hosts

(gedit:5521): Pango-WARNING **: 00:28:01.739: failed to create cairo
scaled font, expect ugly output. the offending font is 'DejaVu Sans 11'

(gedit:5521): Pango-WARNING **: 00:28:01.748: font_face status is: out
of memory

(gedit:5521): Pango-WARNING **: 00:28:01.748: scaled_font status is: out
of memory

(gedit:5521): Pango-WARNING **: 00:28:01.748: shaping failure, expect
ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans 11',
text='●'

(gedit:5521): Pango-WARNING **: 00:28:01.763: failed to create cairo
scaled font, expect ugly output. the offending font is 'DejaVu Sans Bold
11'

(gedit:5521): Pango-WARNING **: 00:28:01.763: font_face status is: out
of memory

(gedit:5521): Pango-WARNING **: 00:28:01.763: scaled_font status is: out
of memory

(gedit:5521): Pango-WARNING **: 00:28:01.763: shaping failure, expect
ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans Bold
11', text='hosts'

(gedit:5521): Pango-WARNING **: 00:28:01.768: failed to create cairo
scaled font, expect ugly output. the offending font is 'DejaVu Sans
9.1669921875'

(gedit:5521): Pango-WARNING **: 00:28:01.772: font_face status is:
<unknown error status>

(gedit:5521): Pango-WARNING **: 00:28:01.772: scaled_font status is: out
of memory

(gedit:5521): Pango-WARNING **: 00:28:01.772: shaping failure, expect ugly 
output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans 9.1669921875', 
text='/etc'
Fontconfig error: Cannot load default config file

(gedit:5521): Gtk-WARNING **: 00:29:07.962: Could not load a pixbuf from icon 
theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: 
assertion failed (error == NULL): Failed to load 
/usr/share/icons/Humanity/status/16/image-missing.svg: Error opening file 
/usr/share/icons/Humanity/status/16/image-missing.svg: Too many open files 
(g-io-error-quark, 31)
Aborted

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/367372

Title:
  Gedit uses 100% of the CPU while editing files

Status in gedit:
  New
Status in gedit package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: gedit

  Making changes to a file(typing or deleting characters) makes gedit consume 
100% of the CPU power available.
  I noticed this since I've installed Ubuntu 9.04. 

  I was poking in the fonts setting under the appearance preferences and
  I thought I noticed a slight difference if I turn off all processing
  and make the font glyph render without subpixel rendering and hinting.
  However it is merely marginal. To make sure it was not the graphics
  drivers I switched from the ati drivers to vesa but that did not help
  at all.

  I am running on a 5 years old Dell Inspiron 5100 laptop with Radeon Mobility 
7500(details in lspci-vvnn.log provided in link below), with 256MiB of RAM.
  http://launchpadlibrarian.net/21840367/dmesg.log
  http://launchpadlibrarian.net/21840491/lspci-vvnn.log

  uname -a yields:
  Linux lordmetroid-laptop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 
UTC 2009 i686 GNU/Linux

To manage notifications about this bug go to:
https://bugs.launchpad.net/gedit/+bug/367372/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to