You are not logged in.

#1 2018-08-10 21:42:18

Saitohs
Member
Registered: 2016-12-17
Posts: 29

i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

Hi.
I'm using arch with xorg and i3wm in an omen hp laptop with an i7 and a nvidia gtx 1050.
I had a lot of troubles in the installation but i can make it works. Now i'm having a strange error:
When i'm in i3, after a while, one cpu turns to 100% of usage and i'm unable to use the mouse neither the i3wm bindings (like to open a terminal). I have to change of tty and kill my user session. After this, i can't execute startx again, i get something with the /run/user/1000 permissions. I have to reboot and then it works.

My kernel:
Linux SaitoPC 4.17.13-arch1-1-ARCH #1 SMP PREEMPT Mon Aug 6 23:06:31 UTC 2018 x86_64 GNU/Linux
Xorg:
xorg-server-1.20.0-9

I'm using the "nvidia" and "nvidia-utils" packages and this https://wiki.archlinux.org/index.php/NV … ing_nvidia


PD: I apologize if I bother you with my level of English

Last edited by Saitohs (2018-08-10 21:47:39)

Offline

#2 2018-08-10 21:50:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

Instead of killing your session, check which process actually causes the cpu load to narrow the issue.
Also elaborate why you "can't execute startx again" - do you get error messages, an immediately stopping X11 server, …?

Offline

#3 2018-08-10 21:54:50

Saitohs
Member
Registered: 2016-12-17
Posts: 29

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

seth wrote:

Instead of killing your session, check which process actually causes the cpu load to narrow the issue.
Also elaborate why you "can't execute startx again" - do you get error messages, an immediately stopping X11 server, …?

The process is i3 and it tries to start but inmediatly close.
I get:

i3: Check permissiones of $ XDG_RUNTIME_DIR = "run/user/1000" xinit: connection to X server lost

Offline

#4 2018-08-10 22:02:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

After killing the session, try

ps aux | grep i3
stat /run/user/1000

Offline

#5 2018-08-10 22:17:54

Saitohs
Member
Registered: 2016-12-17
Posts: 29

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

Hi-

This is before crash:

ps aux | grep i3
saito      552  0.0  0.0 111592 11620 tty1     S    16:22   0:00 i3
saito      576  0.0  0.0  88848 10264 ?        S    16:22   0:00 i3bar --bar_id=bar-0 --socket$
saito      577  0.0  0.0  88344  9780 ?        S    16:22   0:00 i3bar --bar_id=bar-1 --socket$
saito      578  0.0  0.1 1036916 19356 ?       Tl   16:22   0:00 python /usr/share/powerline/b$
saito      579  0.0  0.0 473684  6056 ?        Sl   16:22   0:01 i3status
saito     3926  0.0  0.0  11044  2324 pts/1    S+   17:06   0:00 grep i3

 stat /run/user/1000
  Fichero: /run/user/1000
  Tamaño: 200           Bloques: 0          Bloque E/S: 4096   directorio
Dispositivo: 2fh/47d    Nodo-i: 16922       Enlaces: 8
Acceso: (0700/drwx------)  Uid: ( 1000/   saito)   Gid: (  985/   users)
      Acceso: 2018-08-10 16:22:01.756113775 -0500
Modificación: 2018-08-10 16:22:57.089446526 -0500
      Cambio: 2018-08-10 16:22:57.089446526 -0500
    Creación: -

This while crash:

saito      552  1.7  0.0 111592 11712 tty1     R    16:22   0:49 i3
saito      576  0.0  0.0  88848 10264 ?        S    16:22   0:01 i3bar --bar_id=bar-0 --socket$
saito      577  0.0  0.0  88344  9780 ?        S    16:22   0:00 i3bar --bar_id=bar-1 --socket$
saito      578  0.0  0.1 1036916 19356 ?       Tl   16:22   0:00 python /usr/share/powerline/b$
saito      579  0.0  0.0 473684  6056 ?        Sl   16:22   0:01 i3status
saito     4452  0.0  0.0  11044  2388 tty2     S+   17:10   0:00 grep i3
  Fichero: /run/user/1000/
  Tamaño: 260           Bloques: 0          Bloque E/S: 4096   directorio
Dispositivo: 2fh/47d    Nodo-i: 16922       Enlaces: 8
Acceso: (0700/drwx------)  Uid: ( 1000/   saito)   Gid: (  985/   users)
      Acceso: 2018-08-10 16:22:01.756113775 -0500
Modificación: 2018-08-10 17:09:21.969417379 -0500
      Cambio: 2018-08-10 17:09:21.969417379 -0500
    Creación: -

This time, i can execute startx again, but here is an after close i3:

saito     4595  0.0  0.0  11044  2324 tty2     S+   17:14   0:00 grep i3
  Fichero: /run/user/1000/
  Tamaño: 240           Bloques: 0          Bloque E/S: 4096   directorio
Dispositivo: 2fh/47d    Nodo-i: 16922       Enlaces: 8
Acceso: (0700/drwx------)  Uid: ( 1000/   saito)   Gid: (  985/   users)
      Acceso: 2018-08-10 16:22:01.756113775 -0500
Modificación: 2018-08-10 17:12:29.452748715 -0500
      Cambio: 2018-08-10 17:12:29.452748715 -0500
    Creación: -

Offline

#6 2018-08-10 22:32:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

Are you sure i3 is responsible for the high CPU load? (The cpu column in "ps" doesn't indicate this)

The tests only make sense if startx fails (basically to figure whether the i3 process is dormant, (or) fails to (cleanly) terminate and you cannot run a second instance or so.

Offline

#7 2018-08-10 22:52:08

Saitohs
Member
Registered: 2016-12-17
Posts: 29

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

Hi-

In tty i run htop and i see 100% of cpu there.
another thing happen:
I switch bewteen virtual desktops and it fires the error. Then when i kill my session and try to execute startx again i just get a black screen.

i'm thinking about test another wm and see if it is the problem.

Offline

#8 2018-08-10 23:10:35

Saitohs
Member
Registered: 2016-12-17
Posts: 29

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

It definitely gets 100% on one of the 8 cpu's in htop
I don't know what to do, i supose i'm gonna try another wm.

Offline

#9 2018-08-11 05:59:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: i3wm/Xorg - 100% of cpu use and crash the wm (unable to use mouse)

The question is not whether you see it  in htop, but whether htop says that i3 is the process that causes the lion share of load (or whether it's rather eg. the Xorg PID)
The follow-up question is whether there's still an i3 process (and in what state it is) after you killed your session but before you attempt to re-startx again.

If i3 is the troublemaker, you could attach strace or gdb to it (for the latter, you'll have to "echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope" or gdb will complain that the ptrace operation isn't allowed)

Offline

Board footer

Powered by FluxBB