Xorg crash intermitently

Hi! I’m helping a friend who h installed i3 recently. Sometimes i3 doesn’t start correctly because of Xorg crashing randomly while lightdm is starting.

The output of inxi -F is

System:    Host: ***-pc Kernel: 5.13.12-1-MANJARO x86_64 bits: 64 Desktop: i3 4.19.1 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: LG product: 13Z990-U.AAW5U1 v: 0.1 serial: <superuser required> 
           Mobo: LG model: 13Z990 v: FAB1 serial: <superuser required> UEFI: Phoenix 
           v: W1ZD1220 X64 date: 04/04/2019 
Battery:   ID-1: CMB0 charge: 51.2 Wh (80.3%) condition: 63.8/72.8 Wh (87.6%) volts: 8.1 min: 7.7 
CPU:       Info: Quad Core model: Intel Core i5-8265U bits: 64 type: MT MCP cache: L2: 6 MiB 
           Speed: 900 MHz min/max: 400/3900 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 
           5: 900 6: 900 7: 901 8: 899 
Graphics:  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] driver: i915 v: kernel 
           Device-2: Chicony LG Camera type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.1 
Audio:     Device-1: Intel Cannon Point-LP High Definition Audio driver: snd_hda_intel 
           Sound Server-1: ALSA v: k5.13.12-1-MANJARO running: yes 
           Sound Server-2: PipeWire v: 0.3.33 running: yes 
Network:   Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi 
           IF: wlp0s20f3 state: up mac: 3c:f0:11:25:d3:d9 
Bluetooth: Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb 
           Report: rfkill ID: hci0 state: up address: see --recommends 
Drives:    Local Storage: total: 1.14 TiB used: 553.64 GiB (47.3%) 
           ID-1: /dev/sda vendor: Samsung model: MZNLN256HAJQ-00000 size: 238.47 GiB 
Partition: ID-1: / size: 56.31 GiB used: 7.99 GiB (14.2%) fs: ext4 dev: /dev/sda5 
           ID-2: /boot/efi size: 256 MiB used: 44.1 MiB (17.2%) fs: vfat dev: /dev/sda1 
Swap:      Alert: No swap data was found. 
Sensors:   System Temperatures: cpu: 34.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 228 Uptime: 57m Memory: 7.48 GiB used: 1.3 GiB (17.4%) Shell: Bash 
           inxi: 3.3.06

The error that journalctl shows (last crash) is the next

Aug 28 08:43:00 ***-pc systemd-coredump[932]: [🡕] Process 456 (Xorg) of user 0 dumped core.

    Stack trace of thread 456:
    #0  0x00007fabb3b89d22 raise (libc.so.6 + 0x3cd22)
    #1  0x00007fabb3b73862 abort (libc.so.6 + 0x26862)
    #2  0x0000564cbd33bd50 OsAbort (Xorg + 0x14dd50)
    #3  0x0000564cbd33d865 FatalError (Xorg + 0x14f865)
    #4  0x0000564cbd34351a n/a (Xorg + 0x15551a)
    #5  0x00007fabb3b89da0 __restore_rt (libc.so.6 + 0x3cda0)
    #6  0x00007fabb3b89d22 raise (libc.so.6 + 0x3cd22)
    #7  0x00007fabb3b73862 abort (libc.so.6 + 0x26862)
    #8  0x00007fabb3b73747 __assert_fail_base.cold (libc.so.6 + 0x26747)
    #9  0x00007fabb3b82616 __assert_fail (libc.so.6 + 0x35616)
    #10 0x0000564cbd2856b9 n/a (Xorg + 0x976b9)
    #11 0x00007faba7c3892d glamor_init (libglamoregl.so + 0xd92d)
    #12 0x00007fabb408c7a7 n/a (modesetting_drv.so + 0x147a7)
    #13 0x0000564cbd268fce AddGPUScreen (Xorg + 0x7afce)
    #14 0x0000564cbd377857 n/a (Xorg + 0x189857)
    #15 0x0000564cbd3ad8c8 n/a (Xorg + 0x1bf8c8)
    #16 0x0000564cbd3ae14b n/a (Xorg + 0x1c014b)
    #17 0x0000564cbd33b991 n/a (Xorg + 0x14d991)
    #18 0x0000564cbd337270 WaitForSomething (Xorg + 0x149270)
    #19 0x0000564cbd228fe3 n/a (Xorg + 0x3afe3)
    #20 0x00007fabb3b74b25 __libc_start_main (libc.so.6 + 0x27b25)
    #21 0x0000564cbd229cbe _start (Xorg + 0x3bcbe)

    Stack trace of thread 845:
    #0  0x00007fabb3a478ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007fabb3a41270 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf270)
    #2  0x00007fabb04604ec n/a (swrast_dri.so + 0x1c84ec)
    #3  0x00007fabb0459bc8 n/a (swrast_dri.so + 0x1c1bc8)
    #4  0x00007fabb3a3b259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007fabb3c4b5e3 __clone (libc.so.6 + 0xfe5e3)

    Stack trace of thread 856:
    #0  0x00007fabb3a478ca __futex_abstimed_wait_common64 (libpthread.so.0 + 0x158ca)
    #1  0x00007fabb3a41270 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf270)
    #2  0x00007fabb04604ec n/a (swrast_dri.so + 0x1c84ec)
    #3  0x00007fabb0459bc8 n/a (swrast_dri.so + 0x1c1bc8)
    #4  0x00007fabb3a3b259 start_thread (libpthread.so.0 + 0x9259)
    #5  0x00007fabb3c4b5e3 __clone (libc.so.6 + 0xfe5e3)
Aug 28 08:43:00 ***-pc systemd[1]: systemd-coredump@0-910-0.service: Deactivated successfully

Help pwease. :3

Update: Chacking more in journalctl I noticed that all the times the Xorg server fails it generates the same Stack Trace as in the post.

I would like to post /var/log/Xorg.0.log but it has rotated the last boot, so it contains no failures.

:+1: Welcome to Manjaro! :+1:

Does this also happen when your friend creates a new user and logs in there?

:thinking:

xorg-server and xorg-server-common were part of the 8/27/2021 stable update. Try downgrading to see if your problem disappears.