Xorg crashes after unlocking with lightdm
Whenever I unlock my desktop using light-locker, Xorg crashes, usually after a few seconds especially when I use applications like firefox. Could be some kind of GPU issue.
Xorg server version: 1.20.9
Kernel: Linux 5.8.7.1
Here are the relevant lines in the logs for Xorg
[ 4139.198] (EE)
[ 4139.198] (EE) Backtrace:
[ 4139.199] (EE) 0: /usr/libexec/Xorg (xorg_backtrace+0x79) [0x55741be76039]
[ 4139.199] (EE) 1: /usr/libexec/Xorg (0x55741bdce000+0xa8168) [0x55741be76168]
[ 4139.199] (EE) 2: /usr/lib/libc.so.6 (0x7f645340b000+0x3b9b0) [0x7f64534469b0]
[ 4139.199] (EE) 3: /usr/libexec/Xorg (WriteToClient+0xb7) [0x55741be76817]
[ 4139.199] (EE) 4: /usr/libexec/Xorg (WriteEventsToClient+0x332) [0x55741bf25212]
[ 4139.199] (EE) 5: /usr/libexec/Xorg (TryClientEvents+0x135) [0x55741bf287d5]
[ 4139.199] (EE) 6: /usr/libexec/Xorg (DeliverEventsToWindow+0x242) [0x55741bf29e32]
[ 4139.199] (EE) 7: /usr/libexec/Xorg (0x55741bdce000+0x156c4d) [0x55741bf24c4d]
[ 4139.199] (EE) 8: /usr/libexec/Xorg (0x55741bdce000+0x14b144) [0x55741bf19144]
[ 4139.199] (EE) 9: /usr/libexec/Xorg (dixChangeWindowProperty+0x2a2) [0x55741bf19a02]
[ 4139.199] (EE) 10: /usr/libexec/Xorg (0x55741bdce000+0x14bd64) [0x55741bf19d64]
[ 4139.199] (EE) 11: /usr/libexec/Xorg (0x55741bdce000+0x3807a) [0x55741be0607a]
[ 4139.199] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0xeb) [0x7f6453431deb]
[ 4139.199] (EE) 13: /usr/libexec/Xorg (_start+0x2a) [0x55741be0637a]
[ 4139.199] (EE)
[ 4139.199] (EE) Segmentation fault at address 0xffffffff00000014
[ 4139.199] (EE)
Fatal server error:
[ 4139.199] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 4139.199] (EE)
[ 4139.199] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 4139.199] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 4139.199] (EE)
[ 4139.315] (EE) Server terminated with error (1). Closing log file.
Also here are the logs in lightdm when the error happens.
[+4074.83s] DEBUG: Seat seat0: Locking
[+4074.83s] DEBUG: Seat seat0: Creating greeter session
[+4074.83s] DEBUG: Seat seat0: Creating display server of type x
[+4074.83s] DEBUG: Using VT 8
[+4074.83s] DEBUG: Seat seat0: Starting local X display on VT 8
[+4074.83s] DEBUG: XServer 1: Logging to /var/log/lightdm/x-1.log
[+4074.83s] DEBUG: XServer 1: Writing X server authority to /var/run/lightdm/root/:1
[+4074.83s] DEBUG: XServer 1: Launching X Server
[+4074.83s] DEBUG: Launching process 15282: /usr/bin/X :1 -seat seat0 -auth /var/run/lightdm/root/:1 -nolisten tcp vt8 -novtswitch
[+4074.83s] DEBUG: XServer 1: Waiting for ready signal from X server :1
[+4075.25s] DEBUG: Seat seat0 changes active session to
[+4075.66s] DEBUG: Got signal 10 from process 15282
[+4075.66s] DEBUG: XServer 1: Got signal from X server :1
[+4075.66s] DEBUG: XServer 1: Connecting to XServer :1
[+4075.66s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+4075.66s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+4075.66s] DEBUG: Session pid=15454: Started with service 'lightdm-greeter', username 'lightdm'
[+4075.68s] DEBUG: Session pid=15454: Authentication complete with return value 0: Success
[+4075.68s] DEBUG: Seat seat0: Session authenticated, running command
[+4075.68s] DEBUG: Session pid=15454: Running command /usr/bin/lightdm-webkit2-greeter
[+4075.68s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+4075.68s] DEBUG: Session pid=15454: Logging to /var/log/lightdm/seat0-greeter.log
[+4075.68s] DEBUG: Activating VT 8
[+4075.68s] DEBUG: Locking login1 session c2
[+4075.68s] DEBUG: Activating login1 session c3
[+4075.68s] DEBUG: Seat seat0 changes active session to c3
[+4075.68s] DEBUG: Session c3 is already active
[+4075.90s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+4076.14s] DEBUG: Greeter requests data directory for user void
[+4076.14s] DEBUG: Creating shared data directory /var/lib/lightdm-data/void
[+4085.34s] DEBUG: Greeter start authentication for void
[+4085.35s] DEBUG: Session pid=15870: Started with service 'lightdm', username 'void'
[+4085.35s] DEBUG: Session pid=15870: Got 1 message(s) from PAM
[+4085.35s] DEBUG: Prompt greeter with 1 message(s)
[+4085.35s] DEBUG: Continue authentication
[+4085.47s] DEBUG: Session pid=15870: Authentication complete with return value 0: Success
[+4085.47s] DEBUG: Authenticate result for user void: Success
[+4085.47s] DEBUG: User void authorized
[+4085.47s] DEBUG: Greeter requests session i3
[+4085.47s] DEBUG: Seat seat0: Returning to existing user session void
[+4085.47s] DEBUG: Unlocking login1 session c2
[+4085.47s] DEBUG: Activating VT 7
[+4085.66s] DEBUG: Seat seat0: Stopping greeter
[+4085.66s] DEBUG: Terminating login1 session c3
[+4085.67s] DEBUG: Session pid=15454: Sending SIGTERM
[+4085.67s] DEBUG: Activating login1 session c2
[+4085.67s] DEBUG: Session pid=15870: Exited with return value 0
[+4085.67s] DEBUG: Seat seat0: Session stopped
[+4085.67s] DEBUG: Seat seat0 changes active session to c2
[+4085.67s] DEBUG: Session c2 is already active
[+4085.68s] DEBUG: Session pid=15454: Exited with return value 0
[+4085.68s] DEBUG: Seat seat0: Session stopped
[+4085.68s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+4085.68s] DEBUG: Sending signal 15 to process 15282
[+4085.86s] DEBUG: Process 15282 exited with return value 0
[+4085.86s] DEBUG: XServer 1: X server stopped
[+4085.86s] DEBUG: Releasing VT 8
[+4085.86s] DEBUG: XServer 1: Removing X server authority /var/run/lightdm/root/:1
[+4085.86s] DEBUG: Seat seat0: Display server stopped
[+4135.23s] DEBUG: Session pid=1365: Exited with return value 1
[+4135.23s] DEBUG: Seat seat0: Session stopped
[+4135.23s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+4135.23s] DEBUG: Sending signal 15 to process 1022
[+4135.24s] DEBUG: Seat seat0 changes active session to
[+4135.39s] DEBUG: Process 1022 terminated with signal 6
[+4135.39s] DEBUG: XServer 0: X server stopped
[+4135.39s] DEBUG: Releasing VT 7
[+4135.39s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+4135.39s] DEBUG: Seat seat0: Display server stopped
[+4135.39s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+4135.39s] DEBUG: Seat seat0: Creating greeter session
[+4135.39s] DEBUG: Seat seat0: Creating display server of type x
[+4135.39s] DEBUG: Using VT 7
[+4135.39s] DEBUG: Seat seat0: Starting local X display on VT 7
[+4135.39s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+4135.39s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+4135.39s] DEBUG: XServer 0: Launching X Server
[+4135.39s] DEBUG: Launching process 17477: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+4135.39s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+4136.35s] DEBUG: Got signal 10 from process 17477
[+4136.35s] DEBUG: XServer 0: Got signal from X server :0
[+4136.35s] DEBUG: XServer 0: Connecting to XServer :0
[+4136.35s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+4136.35s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+4136.35s] DEBUG: Session pid=17552: Started with service 'lightdm-greeter', username 'lightdm'
[+4136.36s] DEBUG: Session pid=17552: Authentication complete with return value 0: Success
[+4136.36s] DEBUG: Seat seat0: Session authenticated, running command
[+4136.36s] DEBUG: Session pid=17552: Running command /usr/bin/lightdm-webkit2-greeter
[+4136.36s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+4136.36s] DEBUG: Session pid=17552: Logging to /var/log/lightdm/seat0-greeter.log
[+4136.37s] DEBUG: Activating VT 7
[+4136.37s] DEBUG: Activating login1 session c4
[+4136.37s] DEBUG: Seat seat0 changes active session to c4
[+4136.37s] DEBUG: Session c4 is already active
[+4136.58s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+4136.80s] DEBUG: Greeter requests data directory for user void
[+4136.80s] DEBUG: Creating shared data directory /var/lib/lightdm-data/void
[+4143.96s] DEBUG: Greeter start authentication for void
[+4143.96s] DEBUG: Session pid=17655: Started with service 'lightdm', username 'void'
[+4143.97s] DEBUG: Session pid=17655: Got 1 message(s) from PAM
[+4143.97s] DEBUG: Prompt greeter with 1 message(s)
[+4143.97s] DEBUG: Continue authentication
[+4144.09s] DEBUG: Session pid=17655: Authentication complete with return value 0: Success
[+4144.09s] DEBUG: Authenticate result for user void: Success
[+4144.09s] DEBUG: User void authorized
[+4144.09s] DEBUG: Greeter requests session i3
[+4144.09s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+4144.09s] DEBUG: Terminating login1 session c4
[+4144.09s] DEBUG: Session pid=17552: Sending SIGTERM
[+4144.10s] DEBUG: Seat seat0 changes active session to
[+4144.11s] DEBUG: Session pid=17552: Exited with return value 0
[+4144.11s] DEBUG: Seat seat0: Session stopped
[+4144.11s] DEBUG: Seat seat0: Greeter stopped, running session
[+4144.11s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+4144.11s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+4144.11s] DEBUG: Session pid=17655: Running command /etc/lightdm/Xsession i3
[+4144.11s] DEBUG: Creating shared data directory /var/lib/lightdm-data/void
[+4144.11s] DEBUG: Session pid=17655: Logging to .xsession-errors
As can be seen from the logs lightdm does recover by restarting Xorg, but that basically closes all my applications and restarts my session, which is a problem.