Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE plasma fails to start properly: black screen + cursor
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Sun Mar 12, 2023 7:25 pm    Post subject: Reply with quote

ukky wrote:

Please upload output of xrandr.


http://0x0.st/HigP.txt
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Sun Mar 12, 2023 7:40 pm    Post subject: Reply with quote

Please add this line to /usr/share/sddm/scripts/Xsetup:
Code:
xrandr --output HDMI-1 --primary

And test with SDDM enabled.
Use the same video output as when you ran 'xrandr --query'.
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Sun Mar 12, 2023 7:55 pm    Post subject: Reply with quote

just tried it, didn't help.
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Sun Mar 12, 2023 8:40 pm    Post subject: Reply with quote

Shadow_Fury,

Could you add another, temporary, user via SSH session? Add that user to 'video' and 'input' group. Then reboot and login with temporary user credentials via SDDM.
This is a test to check if there are any bad KDE/Qt/Plasma settings in your main user account, i.e. in ~/.config/ directory.
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Sun Mar 12, 2023 9:13 pm    Post subject: Reply with quote

added new user, added said user to video and input groups,

same as usual, black screen with cursor
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Sun Mar 12, 2023 9:42 pm    Post subject: Reply with quote

I will prepare a minimal xorg.conf for you, just be patient.

I'm still analyzing your strace log and so far, I do not see any fatal event happening when you have a black screen.
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Mon Mar 13, 2023 12:16 am    Post subject: Reply with quote

Please save this X config as /etc/X11/xorg.conf.d/99-my-server-layout.conf
Code:
Section "ServerLayout"
        Identifier      "MyServerLayout"
        Screen          0 "MainScreen" 0 0
        Option          "AutoAddGPU"        "off"
        Option          "Xinerama"          "off"
EndSection

Section "Screen"
        Identifier      "MainScreen"
        Device          "RTX_2080_Ti_Head_3"
        Monitor         "Samsung_S24D330"
        DefaultDepth    24
        SubSection      "Display"
                Depth           24
                Modes           "1920x1080" "1680x1050" "1600x900" "1440x900" "1280x1024" "1280x800" "1280x720" "1152x864" "1024x768" "800x600" "720x576" "720x480" "640x480"
        EndSubsection
EndSection

Section "Device"
        Identifier      "RTX_2080_Ti_Head_3"
        Driver          "nvidia"
        VendorName      "nVidia Corporation"
        BoardName       "GeForce RTX 2080 Ti"
        BusID           "PCI:1:0:0"
        Screen          2
EndSection

Section "Monitor"
        Identifier      "Samsung_S24D330"
        Option          "PreferedMode"      "1920x1080"
        Option          "DPMS"              "off"
EndSection

Then reboot and re-test with SDDM+Plasma.
Please upload Xorg.log for fixing issues if this config has errors.
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Mon Mar 13, 2023 12:51 am    Post subject: Reply with quote

this config has caused a regression: SDDM fails to start at all

from a cursory examination of the logvfiles, X is failing to start because it can't find the screen.

here are the full logfiles:

sddm.log
Code:

[00:41:07.240] (II) DAEMON: Initializing...
[00:41:07.242] (II) DAEMON: Starting...
[00:41:07.242] (II) DAEMON: Logind interface found
[00:41:07.242] (II) DAEMON: Adding new display on vt 7 ...
[00:41:07.242] (II) DAEMON: Loading theme configuration from ""
[00:41:07.242] (II) DAEMON: Display server starting...
[00:41:07.242] (II) DAEMON: Adding cookie to "/var/run/sddm/{12c8ccee-8257-4712-a4d3-1c62160813ab}"
[00:41:07.244] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{12c8ccee-8257-4712-a4d3-1c62160813ab} -background none -noreset -displayfd 17 -seat seat0 vt7
[00:41:07.260] (EE) DAEMON: Failed to read display number from pipe
[00:41:07.260] (EE) DAEMON: Display server failed to start. Exiting


Xorg.0.log
Code:

[   292.708] (--) Log file renamed from "/var/log/Xorg.pid-2725.log" to "/var/log/Xorg.0.log"
[   292.708]
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[   292.708] Current Operating System: Linux dragon 6.2.2-gentoo #10 SMP PREEMPT_DYNAMIC Sat Mar 11 20:40:20 GMT 2023 x86_64
[   292.708] Kernel command line: BOOT_IMAGE=/vmlinuz root=/dev/mapper/vg0-root ro rootflags=subvol=@root iommu=1 intel_iommu=on lsm=selinux,integrity ima_appraise=fix ima_policy=appraise_tcb cryptdevice=/dev/nvme0n1:crypt_0 root=/dev/mapper/vg0-root nvidia_drm.modeset=1 rcutree.rcu_idle_gp_delay=1
[   292.708] 
[   292.708] Current version of pixman: 0.42.2
[   292.708]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   292.708] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   292.708] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 13 00:41:07 2023
[   292.708] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   292.708] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   292.709] (==) ServerLayout "MyServerLayout"
[   292.709] (**) |-->Screen "MainScreen" (0)
[   292.709] (**) |   |-->Monitor "Samsung_S24D330"
[   292.709] (**) |   |-->Device "RTX_2080_Ti_Head_3"
[   292.709] (**) Option "Xinerama" "off"
[   292.709] (**) Option "AutoAddGPU" "off"
[   292.709] (==) Automatically adding devices
[   292.709] (==) Automatically enabling devices
[   292.709] (**) Not automatically adding GPU devices
[   292.709] (==) Automatically binding GPU devices
[   292.709] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   292.709] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   292.709]    Entry deleted from font path.
[   292.709] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   292.709]    Entry deleted from font path.
[   292.709] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   292.709]    Entry deleted from font path.
[   292.709] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[   292.709]    Entry deleted from font path.
[   292.709]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[   292.709] (==) FontPath set to:
   /usr/share/fonts/misc,
   /usr/share/fonts/75dpi
[   292.709] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   292.709] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   292.709] (II) Module ABI versions:
[   292.709]    X.Org ANSI C Emulation: 0.4
[   292.709]    X.Org Video Driver: 25.2
[   292.709]    X.Org XInput driver : 24.4
[   292.709]    X.Org Server Extension : 10.0
[   292.709] (++) using VT number 7

[   292.709] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   292.710] (II) xfree86: Adding drm device (/dev/dri/card0)
[   292.710] (II) Platform probe for /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0
[   292.715] (--) PCI:*(1@0:0:0) 10de:1e07:1458:37be rev 161, Mem @ 0xfa000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[   292.715] (II) LoadModule: "glx"
[   292.715] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   292.716] (II) Module glx: vendor="X.Org Foundation"
[   292.716]    compiled for 1.21.1.7, module version = 1.0.0
[   292.716]    ABI class: X.Org Server Extension, version 10.0
[   292.716] (II) LoadModule: "nvidia"
[   292.716] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   292.716] (II) Module nvidia: vendor="NVIDIA Corporation"
[   292.716]    compiled for 1.6.99.901, module version = 1.0.0
[   292.716]    Module class: X.Org Video Driver
[   292.716] (II) NVIDIA dlloader X Driver  525.89.02  Wed Feb  1 23:14:37 UTC 2023
[   292.716] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   292.718] (II) Loading sub module "fb"
[   292.718] (II) LoadModule: "fb"
[   292.718] (II) Module "fb" already built-in
[   292.718] (II) Loading sub module "wfb"
[   292.718] (II) LoadModule: "wfb"
[   292.718] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[   292.718] (II) Module wfb: vendor="X.Org Foundation"
[   292.718]    compiled for 1.21.1.7, module version = 1.0.0
[   292.718]    ABI class: X.Org ANSI C Emulation, version 0.4
[   292.718] (II) Loading sub module "ramdac"
[   292.718] (II) LoadModule: "ramdac"
[   292.718] (II) Module "ramdac" already built-in
[   292.718] (EE) Screen 0 deleted because of no matching config section.
[   292.718] (II) UnloadModule: "nvidia"
[   292.718] (II) UnloadSubModule: "wfb"
[   292.718] (EE) Device(s) detected, but none match those in the config file.
[   292.718] (EE)
Fatal server error:
[   292.718] (EE) no screens found(EE)
[   292.718] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[   292.718] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   292.718] (EE)
[   292.720] (EE) Server terminated with error (1). Closing log file.


for reference, the only thing i had previously in xorg.conf.d was a file called nvidia.conf (manually made by me) containing the following, a per the wiki article on nvidia cards:
Code:

Section "Device"
        Identifier      "nvidia"
        Driver          "nvidia"
EndSection


i moved it out to test the new config provided bt ukky
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Mon Mar 13, 2023 1:20 am    Post subject: Reply with quote

Shadow_Fury wrote:
for reference, the only thing i had previously in xorg.conf.d was a file called nvidia.conf

That's correct, you don't need that section if you added file 99-my-server-layout.conf.
Shadow_Fury wrote:
X is failing to start because it can't find the screen.

You are right.

Please comment-out this line:
Code:
Option          "AutoAddGPU"        "off"

and then re-test
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Mon Mar 13, 2023 1:34 am    Post subject: Reply with quote

ukky wrote:

Please comment-out this line:
Code:
Option          "AutoAddGPU"        "off"

and then re-test


didn't help.

exactly the same errors in Xorg.0.log, and sddm.log,

SDDM fails to start X, because X can't find any displays
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Mon Mar 13, 2023 2:14 am    Post subject: Reply with quote

Comment-out:
Code:
Screen          2

Unfortunately, removing this line defeats the purpose of this config, i.e. define exact output for your monitor.
I'm using 'nouveau' driver and I can use 'Screen N' in my config.

Unless the error is in:
Code:
BusID           "PCI:1:0:0"

you can try changing it to
Code:
BusID           "PCI:1@0:0:0"

'@0' is PCI domain.

Thus, with all changes it should look like this:
Code:
Section "ServerLayout"
        Identifier      "MyServerLayout"
        Screen          0 "MainScreen" 0 0
        Option          "Xinerama"          "off"
EndSection

Section "Screen"
        Identifier      "MainScreen"
        Device          "RTX_2080_Ti_Head_3"
        Monitor         "Samsung_S24D330"
        DefaultDepth    24
        SubSection      "Display"
                Depth           24
                Modes           "1920x1080" "1680x1050" "1600x900" "1440x900" "1280x1024" "1280x800" "1280x720" "1152x864" "1024x768" "800x600" "720x576" "720x480" "640x480"
        EndSubsection
EndSection

Section "Device"
        Identifier      "RTX_2080_Ti_Head_3"
        Driver          "nvidia"
        VendorName      "nVidia Corporation"
        BoardName       "GeForce RTX 2080 Ti"
        BusID           "PCI:1@0:0:0"
EndSection

Section "Monitor"
        Identifier      "Samsung_S24D330"
        Option          "PreferedMode"      "1920x1080"
        Option          "DPMS"              "off"
EndSection
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Mon Mar 13, 2023 11:59 am    Post subject: Reply with quote

back to a black screen with a mouse pointer now.

i also found this logfile in

/home/test/.local/share/sddm/xorg-session.log:

Code:

kdeinit5: preparing to launch '/usr/lib64/libexec/kf5/klauncher'
kdeinit5: Launched KLauncher, pid = 2835, result = 0
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit5: opened connection to :0
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_style.so"
kdeinit5: Got SETENV 'GTK_RC_FILES=/etc/gtk/gtkrc:/home/test/.gtkrc:/home/test/.config/gtkrc' from launcher.
kdeinit5: Got SETENV 'GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/test/.gtkrc-2.0:/home/test/.config/gtkrc-2.0' from launcher.
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_mouse.so"
kdeinit5: Got SETENV 'XCURSOR_THEME=breeze_cursors' from launcher.
kdeinit5: Got SETENV 'XCURSOR_SIZE=24' from launcher.
org.kde.plasma.session: process job  "kcminit_startup" finished with exit code  0
org.kde.kscreen.dpms: DPMS extension not available
Installing the delayed initialization callback.
kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
kcm_touchpad: Using X11 backend
Delayed initialization.
Reloading the khotkeys configuration
Version 2 File!
true
Imported file "/usr/share/khotkeys/defaults.khotkeys"
Imported file "/usr/share/khotkeys/kde32b1.khotkeys"
Imported file "/usr/share/khotkeys/konqueror_gestures_kde321.khotkeys"
Qt: Session management error: networkIdsList argument is NULL
kdeinit5: Got SETENV 'SESSION_MANAGER=local/dragon:@/tmp/.ICE-unix/2892,unix/dragon:/tmp/.ICE-unix/2892' from launcher.
kdeinit5: Got SETENV 'SESSION_MANAGER=local/dragon:@/tmp/.ICE-unix/2892,unix/dragon:/tmp/.ICE-unix/2892' from launcher.
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_kgamma.so"
Xlib XKB extension major= 1  minor= 0
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_touchpad.so"
kcm_touchpad: Using X11 backend
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
OpenGL version string:                  3.1.0 NVIDIA 525.89.02
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         525.89.2
GPU class:                              Unknown
OpenGL version:                         3.1
GLSL version:                           1.40
X server version:                       1.21.1
Linux kernel version:                   6.2.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.22'
New PolkitAgentListener  0x55c394852600
Adding new listener  PolkitQt1::Agent::Listener(0x7fcc9000bd50) for  0x55c394852600
Listener online
Authentication agent result: true
X server XKB extension major= 1  minor= 0
No such schema “org.gnome.desktop.a11y.applications”
org.kde.kscreen.dpms: DPMS extension not available
/usr/include/c++/v1/optional:975: assertion this->has_value() failed: optional operator* called on a disengaged valueQDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
Known activities: ("5944668d-66de-42f7-ad95-9461fe657b9a")
kscreen.kded: PowerDevil SuspendSession action not available!
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasma-welcome path = /usr/bin pid = 2983
KCrash: Arguments: /usr/bin/plasma-welcome
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
kf.plasma.quick: Applet preload policy set to 1
KCrash: Attempting to start /usr/lib64/libexec/org_kde_powerdevil
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = org_kde_powerdevil path = /usr/lib64/libexec pid = 2918
KCrash: Arguments: /usr/lib64/libexec/org_kde_powerdevil
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
org.kde.kscreen.dpms: DPMS extension not available
/usr/include/c++/v1/optional:975: assertion this->has_value() failed: optional operator* called on a disengaged valueKCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3025
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname plasma-welcome --apppath /usr/bin --signal 11 --pid 2983 --appversion 5.27.2 --programname Welcome to KDE Plasma --bugaddress submit@bugs.kde.org
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
Registering ":1.25/StatusNotifierItem" to system tray
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3073
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname drkonqi --apppath /usr/lib64/libexec --signal 11 --pid 3025 --appversion 5.27.2 --programname The KDE Crash Handler --bugaddress submit@bugs.kde.org
KCrash: Attempting to start /usr/bin/plasmashell
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/bin pid = 2907
KCrash: Arguments: /usr/bin/plasmashell
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
Registering ":1.28/StatusNotifierItem" to system tray
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
QSocketNotifier: Invalid socket 24 and type 'Read', disabling...
QSocketNotifier: Invalid socket 26 and type 'Read', disabling...
Checking screens: available: (QScreen(0x55ab8e4db700, name="HDMI-1")) redundant: QHash() fake: QSet() all: (QScreen(0x55ab8e4db700, name="HDMI-1"))
kf.plasma.quick: Applet preload policy set to 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3036
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname org_kde_powerdevil --apppath /usr/lib64/libexec --signal 6 --pid 2918 --appversion 5.27.2 --programname KDE Power Management System --bugaddress submit@bugs.kde.org --productname Powerdevil --restarted
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3100
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname drkonqi --apppath /usr/lib64/libexec --signal 11 --pid 3036 --appversion 5.27.2 --programname The KDE Crash Handler --bugaddress submit@bugs.kde.org
Service  ":1.25" unregistered
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3084
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname plasmashell --apppath /usr/bin --signal 11 --pid 2907 --appversion 5.27.2 --programname Plasma --bugaddress submit@bugs.kde.org --restarted
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3108
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname drkonqi --apppath /usr/lib64/libexec --signal 11 --pid 3084 --appversion 5.27.2 --programname The KDE Crash Handler --bugaddress submit@bugs.kde.org
Service  ":1.28" unregistered
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/pcm/pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
kf.notifications: Failed to play sound with canberra: File or data not found
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
kdeinit5: Fatal IO error: client killed
kdeinit5: sending SIGHUP to children.
klauncher: Exiting on signal 1
kf.notifications: Had queued notifications on destruction. Was the eventloop running?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
The X11 connection broke (error 1). Did the X11 server die?
kdeinit5: sending SIGTERM to children.
kdeinit5: Exit.


it seems to show several kde things crashing.
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Mon Mar 13, 2023 1:25 pm    Post subject: Reply with quote

Shadow_Fury,

For KDE/Qt/Plasma crashes you would need help from someone with experience on those packages.
Maybe those crashes are normal, or expected, or not important.

But I see that your log contains reference to "HDMI-1".
And in the strace log there are HDMI outputs:
Code:
/sys/class/drm/card0-HDMI-A-1   ->  ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-HDMI-A-1
/sys/class/drm/card0-HDMI-A-2   ->  ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-HDMI-A-2
/sys/class/drm/card0-HDMI-A-3   ->  ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-HDMI-A-3
/sys/class/drm/card0-DP-1       ->  ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-DP-1
/sys/class/drm/card0-Unknown-1  ->  ../../devices/pci0000:00/0000:00:03.0/0000:01:00.0/drm/card0/card0-Unknown-1

nVidia driver reports 6 DFP outputs: "DFP-0" to "DFP-6", with "DFP-3" being a 'boot' output.
It is difficult to say whether KDE monitor "HDMI-1" is related to nVidia "DFP-3" monitor, or not.
What you can do is to test plugging your HDMI monitor into every HDMI output on your nVidia board, reboot, test SDDM login, save Xorg.log, make notes which HDMI output you used and which "DFP" output becomes 'boot' connection in Xorg.log.
It is also strange that nVidia driver exposes device '/sys/class/drm/card0-Unknown-1'. It is definitely related to nVidia PCI device, but it seems like nVidia proprietary driver does not know what it is.

TLDR: Find which nVidia HDMI output corresponds to 'HDMI-1' in KDE.

EDIT: Typo in symlink direction character.
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Tue Mar 14, 2023 1:10 am    Post subject: Reply with quote

as far as i can tell, the ports map like so:

DFP2 --> HDMI-0
DFP3 --> HDMI-1
DPF4 --> HDMI-2

also the "(boot)" thing seems to be whichever display happens to be plugged in when the system boots. it changes to whichever DFP represents the currently plugged in port.

i'm concerned about the fact that all of the kde applications seem to be crashing. the fact that i don't have a (functional) GUI is probably explained by the fact that plasma-welcome is crashing, but drkonqi (KDE error reporting) and plasmashell are also crashing on launch.

in case it's relevant, here are the straces of plasmashell and plasma-welcome, as well as the error output for plasma shell when run from the command line with DISPLAY=":0" :

plasma-welcome strace

plasmashell strace

plasmashell error output:

Code:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-shadow'
kf.plasma.quick: Applet preload policy set to 1
KCrash: Attempting to start /usr/bin/plasmashell
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/bin pid = 3365
KCrash: Arguments: /usr/bin/plasmashell
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-shadow'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-shadow'
QSystemTrayIcon::setVisible: No Icon set
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
QSocketNotifier: Invalid socket 19 and type 'Read', disabling...
Checking screens: available: (QScreen(0x5568c58bbe30, name="HDMI-2")) redundant: QHash() fake: QSet() all: (QScreen(0x5568c58bbe30, name="HDMI-2"))
kf.plasma.quick: Applet preload policy set to 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3374
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname plasmashell --apppath /usr/bin --signal 11 --pid 3365 --appversion 5.27.2 --programname Plasma --bugaddress submit@bugs.kde.org --restarted
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-shadow'
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3391
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname drkonqi --apppath /usr/lib64/libexec --signal 11 --pid 3374 --appversion 5.27.2 --programname The KDE Crash Handler --bugaddress submit@bugs.kde.org
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Tue Mar 14, 2023 2:03 am    Post subject: Reply with quote

Shadow_Fury wrote:
DFP2 --> HDMI-0
DFP3 --> HDMI-1
DPF4 --> HDMI-2

Missing DisplayPort output would be probably DFP1.
Shadow_Fury wrote:
also the "(boot)" thing seems to be whichever display happens to be plugged in when the system boots. it changes to whichever DFP represents the currently plugged in port.

That is correct and expected. nVidia auto-detects monitor when system starts, that output becomes 'boot' device.

All KDE apps crashing is indeed alarming.

I would like you to do yet another test.
Please disable SDDM auto-start, rename ~/.xinitrc, reboot, login into text console as non-root, and run xinit like you already tested before:
Code:
$ xinit $(which xterm) -geometry =80x65+10+10 -fn 8x13 -j -fg white -bg navy -- :$(tty | sed 's|^.*\([0-9]\+\)$|\1|') vt$(tty | sed 's|^.*\([0-9]\+\)$|\1|')

When you see navy terminal, you have to click inside that blue window to assign keyboard focus.
Once your kbd focus is in the terminal, run command:
Code:
$ /usr/bin/startplasma-x11 &

You can try also running Plasma without forking into background.
If it complains that display is not defined, run it like this:
Code:
$ export DISPLAY=":$(tty | sed 's|^.*\([0-9]\+\)$|\1|')"; /usr/bin/startplasma-x11 &


Both strace logs you provided have similar crash signatures. It seems like both apps crashed while waiting/taking fast mutex (futex).
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Tue Mar 14, 2023 2:56 am    Post subject: Reply with quote

this has yielded some interesting, if confusing results:

launching plasma this way led to a black screen, cursor... and Xterm window!

the window that was opened by xinit carried over into the plasma "session", becoming a plasma window, and even being able to drag it around.

once the process was killed, the border around the window disappeared, but the window kept in the same loacation as it was left when dragged in the plasma "session".

when trying to run "startplasma-x11 &", it fails with this error: "QObject: cannot create children for a parent that is in a different thread"

plasma shell and hello still crash in this plasma "instance", when attempted to run through tmux in the xterm window.

here is the full std output of startplasma-x11 (gotten by "startplasma-x11 &> stpl.log"):
Code:

kdeinit5: Shutting down running client.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is SplashApp(0x7fffb00bc8b0), parent's thread is QThread(0x5636b145b2e0), current thread is QThread(0x5636b1518040)
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
kdeinit5: preparing to launch '/usr/lib64/libexec/kf5/klauncher'
kdeinit5: Launched KLauncher, pid = 3347, result = 0
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit5: opened connection to :1
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_style.so"
kdeinit5: Got SETENV 'GTK_RC_FILES=/etc/gtk/gtkrc:/home/shadow/.gtkrc:/home/shadow/.config/gtkrc' from launcher.
kdeinit5: Got SETENV 'GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/shadow/.gtkrc-2.0:/home/shadow/.config/gtkrc-2.0' from launcher.
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_mouse.so"
kdeinit5: Got SETENV 'XCURSOR_THEME=breeze_cursors' from launcher.
kdeinit5: Got SETENV 'XCURSOR_SIZE=24' from launcher.
org.kde.plasma.session: process job  "kcminit_startup" finished with exit code  0
org.kde.kscreen.dpms: DPMS extension not available
Installing the delayed initialization callback.
kcm_touchpad: Using X11 backend
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.8'
Delayed initialization.
Reloading the khotkeys configuration
Version 2 File!
true
Imported file "/usr/share/khotkeys/defaults.khotkeys"
Imported file "/usr/share/khotkeys/kde32b1.khotkeys"
Imported file "/usr/share/khotkeys/konqueror_gestures_kde321.khotkeys"
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
Known activities: ("f2de37f3-1f4a-4acd-81ee-93e74052ab9e")
kscreen.kded: PowerDevil SuspendSession action not available!
kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
Qt: Session management error: networkIdsList argument is NULL
kdeinit5: Got SETENV 'SESSION_MANAGER=local/dragon:@/tmp/.ICE-unix/3417,unix/dragon:/tmp/.ICE-unix/3417' from launcher.
kdeinit5: Got SETENV 'SESSION_MANAGER=local/dragon:@/tmp/.ICE-unix/3417,unix/dragon:/tmp/.ICE-unix/3417' from launcher.
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_kgamma.so"
Xlib XKB extension major= 1  minor= 0
Initializing  "/usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_touchpad.so"
kcm_touchpad: Using X11 backend
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
OpenGL version string:                  3.1.0 NVIDIA 525.89.02
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         525.89.2
GPU class:                              Unknown
OpenGL version:                         3.1
GLSL version:                           1.40
X server version:                       1.21.1
Linux kernel version:                   6.2.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
New PolkitAgentListener  0x5639f7f35200
Adding new listener  PolkitQt1::Agent::Listener(0x5639f8438db0) for  0x5639f7f35200
Listener online
Authentication agent result: true
X server XKB extension major= 1  minor= 0
No such schema “org.gnome.desktop.a11y.applications”
org.kde.kscreen.dpms: DPMS extension not available
/usr/include/c++/v1/optional:975: assertion this->has_value() failed: optional operator* called on a disengaged valuekf.plasma.quick: Applet preload policy set to 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasma-welcome path = /usr/bin pid = 3492
KCrash: Arguments: /usr/bin/plasma-welcome
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3503
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname plasma-welcome --apppath /usr/bin --signal 11 --pid 3492 --appversion 5.27.2 --programname Welcome to KDE Plasma --bugaddress submit@bugs.kde.org
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
KCrash: Attempting to start /usr/lib64/libexec/org_kde_powerdevil
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = org_kde_powerdevil path = /usr/lib64/libexec pid = 3434
KCrash: Arguments: /usr/lib64/libexec/org_kde_powerdevil
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
org.kde.kscreen.dpms: DPMS extension not available
/usr/include/c++/v1/optional:975: assertion this->has_value() failed: optional operator* called on a disengaged valueKCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3511
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname drkonqi --apppath /usr/lib64/libexec --signal 11 --pid 3503 --appversion 5.27.2 --programname The KDE Crash Handler --bugaddress submit@bugs.kde.org
KCrash: Attempting to start /usr/bin/plasmashell
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasmashell path = /usr/bin pid = 3430
KCrash: Arguments: /usr/bin/plasmashell
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
Registering ":1.24/StatusNotifierItem" to system tray
Registering ":1.27/StatusNotifierItem" to system tray
QSocketNotifier: Invalid socket 22 and type 'Read', disabling...
QSocketNotifier: Invalid socket 25 and type 'Read', disabling...
Checking screens: available: (QScreen(0x562efde38ad0, name="HDMI-2")) redundant: QHash() fake: QSet() all: (QScreen(0x562efde38ad0, name="HDMI-2"))
kf.plasma.quick: Applet preload policy set to 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3553
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname plasmashell --apppath /usr/bin --signal 11 --pid 3430 --appversion 5.27.2 --programname Plasma --bugaddress submit@bugs.kde.org --restarted
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3514
KCrash: Arguments: /usr/lib64/libexec/drkonqi --appname org_kde_powerdevil --apppath /usr/lib64/libexec --signal 6 --pid 3434 --appversion 5.27.2 --programname KDE Power Management System --bugaddress submit@bugs.kde.org --productname Powerdevil --restarted
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
KCrash: Attempting to start /usr/lib64/libexec/drkonqi
KCrash: crashing... crashRecursionCounter = 2
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3584
KCrash: Application Name = drkonqi path = /usr/lib64/libexec pid = 3585
KCrash: Arguments: KCrash: Arguments: /usr/lib64/libexec/drkonqi /usr/lib64/libexec/drkonqi --appname --appname drkonqi drkonqi --apppath --apppath /usr/lib64/libexec /usr/lib64/libexec --signal --signal 11 11 --pid --pid 3553 3514 --appversion --appversion 5.27.2 5.27.2 --programname --programname The KDE Crash Handler The KDE Crash Handler --bugaddress --bugaddress submit@bugs.kde.org submit@bugs.kde.org

Service  ":1.24" unregistered
Service  ":1.27" unregistered
kdeinit5: Got termination request (PID 3343).
klauncher: Exiting on signal 15
Back to top
View user's profile Send private message
ukky
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2023
Posts: 109
Location: Montreal, Canada

PostPosted: Tue Mar 14, 2023 1:37 pm    Post subject: Reply with quote

Shadow_Fury,

Maybe this bug is related to your issue: NixOS: Qt/KDE applications segfault on start due to stale qmlcache #177720

I have no experience debugging KDE/Qt/Plasma/D-Bus/ATK/QDBus issues, and it seems like the bug is related to these packages/projects.
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Tue Mar 14, 2023 7:58 pm    Post subject: Reply with quote

ukky wrote:
Shadow_Fury,

Maybe this bug is related to your issue: NixOS: Qt/KDE applications segfault on start due to stale qmlcache #177720

I have no experience debugging KDE/Qt/Plasma/D-Bus/ATK/QDBus issues, and it seems like the bug is related to these packages/projects.


as mentioned in the github issue, i tried wiping the QML cach. this didn't help, so i don't think that that is the issue.

i remember it being mentioned that, from the straces, the packages are crashing when attempting to use futexes. how would i go about trying to debug said futex-reltated crashed?

i know futexes are a kernel feature, but are there any specific config flags that govern them?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum