Computer slows drastically almost permanantly freezing when using gedit or any text editor

Asked by Kevin Rooyakkers on 2018-12-02

Whenever i use gedit my computer wont respond for for a long time. Everything slows down not just gedit. If i try and move the window it takes a few minutes before it registers and moves. I cant use any other applications like foxfire or email or anything. Its only when i open a script using a text editor. I tried with a different editor like atom and it does the same thing. I dont know what to do and i cant really edit anything like the sources.list file. I was trying to add some lines to add hibernate to my power button.

MOTHERBOARD : MCP61M2MA
GRAPHICS : ATI RADEON HD 6450
HDD : 2 SEAGATE BARRACUDA 7200 80G Not raided
RAM : 4 1GB SUPER TALENT DDR2 6400
OS : Ubuntu 18.04
KERNEL : 4.15.0-42-generic

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2018-12-05
Last reply:
2018-12-05

How are you running gedit, please?

Kevin Rooyakkers (krooyakkers) said : #2

sudo gedit /etc/apt/sources.list

also seen
sudo -H gedit /etc/apt/sources.list
but i dont know what the -H is for

If you install gksudo then run gedit with that is it the same? If you open other text files with gedit (sudo and gksudo) is it the same?

Kevin Rooyakkers (krooyakkers) said : #4

i read you cant use gksudo in 18.04 and i tried to install it but said unable to locate gksudo then it says gksu is obselete.

Ah. Duly noted. Thanks. Do other files opened with or without sudo act the same?

Kevin Rooyakkers (krooyakkers) said : #6

Oh yeah sorry. Yeah it does the same thing

Manfred Hampl (m-hampl) said : #7

For diagnostic purposes I would like to suggest the following:

Open one terminal window and start the command "top". This will permanently list the processes using most CPU.
On an idle system you should see only few processes with CPU usage greater zero.
Open a second terminal window and execute the command "sudo gedit /etc/apt/sources.list" and watch the "top" window.
What changes in CPU usage do you see? Goes CPU usage back to a low level again, or is there a process (or are there processes) eating much CPU now?

Kevin Rooyakkers (krooyakkers) said : #8

Many processes start to use all the cpu. It looks like this

36 - gedit
24 - webcontent
22- firefox
15 - xorg

it switches between programs but none of the programs use that much when gedit is not loaded. i dled atom and its not doing that.

What is the output of:

apt-cache policy gedit

Thanks

apt-cache policy gedit
gedit:
  Installed: 3.28.1-1ubuntu1
  Candidate: 3.28.1-1ubuntu1
  Version table:
 *** 3.28.1-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

I reinstalled ubuntu and it was working fine. I did apt-get upgrade and apt-get dist-upgrade and it started doing it again.

apt-cache policy gedit
gedit:
  Installed: 3.28.1-1ubuntu1
  Candidate: 3.28.1-1ubuntu1
  Version table:
 *** 3.28.1-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

I reinstalled ubuntu and it was working fine. I did apt-get upgrade and apt-get dist-upgrade and it started doing it again.

Can you help with this problem?

Provide an answer of your own, or ask Kevin Rooyakkers for more information if necessary.

To post a message you must log in.