You are not logged in.

#1 2024-02-28 19:32:26

UndefFox
Member
Registered: 2024-01-02
Posts: 18

[SOLVED] KDE crashes when starting from xorgxrdp session

I'm trying to setup xorgxrdp for my home PC. If i use default xinitrc file and connect, then everything is fine and i can see the simple desktop. But when i trying to start KDE with commands that i took from archwiki:

export DESKTOP_SESSION=plasma
exec /usr/lib/startplasma-x11

or as suggested on other forum

export DESKTOP_SESSION=plasma
/usr/lib/plasma-dbus-run-session-if-needed startplasma-x11

nothing shows up. Checking journalctl during connection via xrdp it seems like x server is starting just fine, but at kde start attempt, a few errors show up:

Feb 28 00:12:56 foxcomputer kded5[902]: ERROR:             ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceCalibrateableTimeDomainsKHR
Feb 28 00:12:56 foxcomputer ksmserver[900]: ERROR:             ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceCalibrateableTimeDomainsKHR
Feb 28 00:12:56 foxcomputer kwin_x11[903]: ERROR:             ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceCalibrateableTimeDomainsKHR

and after them all KDE processes fail by coredump.

I've heard that KDE doesn't work well from the same user loged in twice so i run PC with multi-user.target as default.

Any idea why is this happening?

Whole journalctl -f log after connecting and then disconnecting:
journalctl -f

~/.xinitrc file:

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

export DESKTOP_SESSION=plasma
exec /usr/lib/startplasma-x11

xrdp/xorg.conf

Section "ServerLayout"
    Identifier "X11 Server"
    Screen "Screen (xrdpdev)"
    InputDevice "xrdpMouse" "CorePointer"
    InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection

Section "ServerFlags"
    # This line prevents "ServerLayout" sections in xorg.conf.d files
    # overriding the "X11 Server" layout (xrdp #1784)
    Option "DefaultServerLayout" "X11 Server"
    Option "DontVTSwitch" "on"
    Option "AutoAddDevices" "off"
EndSection

Section "Module"
    Load "dbe"
    Load "ddc"
    Load "extmod"
    Load "glx"
    Load "int10"
    Load "record"
    Load "vbe"
    Load "xorgxrdp"
    Load "fb"
EndSection

Section "InputDevice"
    Identifier "xrdpKeyboard"
    Driver "xrdpkeyb"
EndSection

Section "InputDevice"
    Identifier "xrdpMouse"
    Driver "xrdpmouse"
EndSection

Section "Monitor"
    Identifier "Monitor"
    Option "DPMS"
    HorizSync 30-80
    VertRefresh 60-75
    ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
    ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
    Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
    Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection

Section "Device"
    Identifier "Video Card (xrdpdev)"
    Driver "xrdpdev"
    Option "DRMDevice" "/dev/dri/renderD128"
    Option "DRI3" "1"
EndSection

Section "Screen"
    Identifier "Screen (xrdpdev)"
    Device "Video Card (xrdpdev)"
    Monitor "Monitor"
    GPUDevice ""
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
    EndSubSection
EndSection

Last edited by UndefFox (2024-02-28 21:40:52)

Offline

#2 2024-02-28 20:05:52

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

Re: [SOLVED] KDE crashes when starting from xorgxrdp session

Feb 28 00:12:56 foxcomputer systemd-coredump[957]: Process 900 (ksmserver) of user 1000 dumped core.
                                                   
                                                   Stack trace of thread 900:
                                                   #0  0x000078f277eab32c n/a (libc.so.6 + 0x8d32c)
                                                   #1  0x000078f277e5a6c8 raise (libc.so.6 + 0x3c6c8)
                                                   #2  0x000078f277e424b8 abort (libc.so.6 + 0x244b8)
                                                   #3  0x000078f2719d7f68 n/a (libvulkan.so.1 + 0x11f68)
                                                   #4  0x000078f26a5ed8b1 n/a (zink_dri.so + 0x9ed8b1)
                                                   #5  0x000078f269c3b11e n/a (zink_dri.so + 0x3b11e)
                                                   #6  0x000078f26a21dee8 n/a (zink_dri.so + 0x61dee8)
                                                   #7  0x000078f26a239ad3 n/a (zink_dri.so + 0x639ad3)
                                                   #8  0x000078f269c4aa6e n/a (zink_dri.so + 0x4aa6e)
                                                   #9  0x000078f269c4adb5 n/a (zink_dri.so + 0x4adb5)
                                                   #10 0x000078f271d7fb94 n/a (libGLX_mesa.so.0 + 0x3bb94)
                                                   #11 0x000078f271d78c49 n/a (libGLX_mesa.so.0 + 0x34c49)
                                                   #12 0x000078f271d79460 n/a (libGLX_mesa.so.0 + 0x35460)
                                                   #13 0x000078f271d79d56 n/a (libGLX_mesa.so.0 + 0x35d56)
                                                   #14 0x000078f271d79e38 n/a (libGLX_mesa.so.0 + 0x35e38)
…
                                                   Stack trace of thread 931:
                                                   #0  0x000078f277ea5ebe n/a (libc.so.6 + 0x87ebe)
                                                   #1  0x000078f277ea8a65 pthread_cond_timedwait (libc.so.6 + 0x8aa65)
                                                   #2  0x000078f25a5f065c n/a (libnvidia-glcore.so.545.29.06 + 0x9f065c)
                                                   #3  0x000078f25aa0c471 n/a (libnvidia-glcore.so.545.29.06 + 0xe0c471)
                                                   #4  0x000078f25a5f29e4 n/a (libnvidia-glcore.so.545.29.06 + 0x9f29e4)
                                                   #5  0x000078f277ea955a n/a (libc.so.6 + 0x8b55a)
                                                   #6  0x000078f277f26a3c n/a (libc.so.6 + 0x108a3c)

https://bbs.archlinux.org/viewtopic.php?id=293112

Step #1: update the system
If that doesn't help, step #2: downgrade mesa to the last 23.x version
Step #3 would be to post the complete system journal (sudo journalctl -b)

Offline

#3 2024-02-28 21:40:35

UndefFox
Member
Registered: 2024-01-02
Posts: 18

Re: [SOLVED] KDE crashes when starting from xorgxrdp session

Yep, second step solved KDE crash problem. One question: what the first step in solving such problems?  Is it downgrading the pakage that provides the lib file that caused coredump?

Offline

#4 2024-02-28 21:52:08

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

Re: [SOLVED] KDE crashes when starting from xorgxrdp session

It's being on the forum a lot and having seen the crash pattern in other posts wink
You want this to go away with one of the next mesa updates (I frankly was under the impression it had been solved, but there might be multiple bugs in that release)

Offline

#5 2024-02-28 21:56:15

UndefFox
Member
Registered: 2024-01-02
Posts: 18

Re: [SOLVED] KDE crashes when starting from xorgxrdp session

So one need to spend a lot of time on forums to find common bugs and way to solve them. Then, thanks for help and your time investment into this smile

Offline

Board footer

Powered by FluxBB