Arch - Wayland - Nvidia - Hyprland | Troubleshooting

AlphaObeisance

Active Member
Joined
Nov 7, 2022
Messages
240
Reaction score
215
Credits
3,107
Alright, before you chime in with any AMD>Nvidia nonsense you should know that A: I don't care, and B: I had it working PERFECTLY until I uninstalled KDE Plasma in hopes to depend fully on Hyprland as my go-to environment.

Now, suddenly applications like signal-desktop, spotify-launcher and even visual-studio-code-bin all fail to launch.

examples:
Code:
$ spotify-launcher
[2024-11-24T15:04:26Z INFO  spotify_launcher::config] Loading configuration file at "/etc/spotify-launcher.conf"
[2024-11-24T15:04:26Z INFO  spotify_launcher] No update needed
Code:
signal-desktop
Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /usr/lib/signal-desktop/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME THERAK
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/obeisance/.config/Signal
config/get: Successfully read user config file
config/get: Successfully read ephemeral config file
making app single instance
[3756400:1124/090456.803354:ERROR:wayland_connection.cc(205)] Failed to connect to Wayland display: No such file or directory (2)
[3756400:1124/090456.803427:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform
[3756400:1124/090456.803435:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
[3756400:1124/090456.807758:ERROR:node_util.cc(45)] Failed to CompileAndCall electron script (electron/js2c/node_init): script execution has been terminated
[3756400:1124/090456.808902:ERROR:node_util.cc(45)] Failed to CompileAndCall electron script (electron/js2c/node_init): script execution has been terminated
[1]    3756400 segmentation fault (core dumped)  signal-desktop
Code:
$ code
as you can see, code has no output at all and simply fails to launch.

Let me first start off by informing you that I've followed these steps, so it's safe to assume I have taken the appropriate measures to ensure comparability with my Nvidia 4090 GPU.

I.e. the appropriate nvidia drivers are installed, and

Code:
/etc/mkinitcpio.conf
MODULES=(... nvidia nvidia_modeset nvidia_uvm nvidia_drm ...)
Code:
options nvidia_drm modeset=1 fbdev=1
are all set as well as

Code:
env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
being set in the ~/.config/hypr/hyperland.conf


rebuilt initramfs with sudo mkinitcpio -P


I installed hyprland using the hyprland-git

Yes, I do have xorg-xwayland installed.

All packages have been updated using
yay -Syu --devel

I have export WAYLAND_DISPLAY=wayland-0 but this didn't resolve anything either, even when put into my .zshrc file.

Code:
╰$ echo $WAYLAND_DISPLAY

wayland-0
Code:
╰$ ps aux | grep hyprland

obeisan+  221750  0.0  0.0   6640  2560 pts/0    S+   10:00   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv hyprland

╰$ pacman -Q xorg-xwayland
Code:
╰$ sudo pacman -Qs nvidia

local/cuda 12.6.3-1
    NVIDIA's GPU programming toolkit
local/egl-gbm 1.1.2-1
    The GBM EGL external platform library
local/egl-wayland 4:1.1.16-1
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 565.57.01-1
    NVIDIA drivers utilities (32-bit)
local/libnvidia-container 1.17.2-1
    NVIDIA container runtime library
local/libvdpau 1.5-3
    Nvidia VDPAU library
local/libxnvctrl 565.57.01-1
    NVIDIA NV-CONTROL X extension
local/nvidia-container-toolkit 1.17.2-1
    NVIDIA container toolkit
local/nvidia-dkms 565.57.01-2
    NVIDIA kernel modules - module sources
local/nvidia-settings 565.57.01-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 565.57.01-2
    NVIDIA drivers utilities
local/opencl-nvidia 565.57.01-2
    OpenCL implemention for NVIDIA
local/python-cuda 12.4.0-2
    Python interface for CUDA provided by NVIDIA.

Code:
╰$ lsmod | grep nvidia

nvidia_drm            135168  22
nvidia_uvm           3825664  2
nvidia_modeset       1671168  8 nvidia_drm
video                  77824  2 asus_wmi,nvidia_modeset
nvidia              77524992  172 nvidia_uvm,nvidia_modeset
Code:
╰$ sudo dmesg | grep nvidia

[    2.075127] nvidia: loading out-of-tree module taints kernel.
[    2.075132] nvidia: module license 'NVIDIA' taints kernel.
[    2.075136] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    2.075137] nvidia: module license taints kernel.
[    2.486691] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[    2.488109] nvidia 0000:0b:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    2.569531] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  565.57.01  Thu Oct 10 12:02:00 UTC 2024
[    2.592340] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    2.681437] nvidia-uvm: Loaded the UVM driver, major device number 235.
[    2.684397] [drm] [nvidia-drm] [GPU ID 0x00000b00] Loading driver
[    4.317003] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:0b:00.0 on minor 1
[    4.350810] nvidia 0000:0b:00.0: vgaarb: deactivate vga console
[    4.515491] fbcon: nvidia-drmdrmfb (fb0) is primary device
[    4.515494] nvidia 0000:0b:00.0: [drm] fb0: nvidia-drmdrmfb frame buffer device

Signal Log
Code:
╰$ journalctl -xe | grep signal

Nov 24 09:11:17 THERAK kernel: traps: signal-desktop[7821] general protection fault ip:61111d017c2e sp:7ffc07be5e50 error:0 in signal-desktop[61111cc01000+898a000]
Nov 24 09:11:17 THERAK systemd-coredump[7872]: Process 7821 (signal-desktop) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Nov 24 09:11:18 THERAK systemd-coredump[7873]: Process 7821 (signal-desktop) of user 1000 dumped core.
                                               #0  0x000061111d017c2e n/a (signal-desktop + 0x24bfc2e)
                                               #1  0x000061111d011369 uv_async_send (signal-desktop + 0x24b9369)
                                               #2  0x000061111d1a82c9 n/a (signal-desktop + 0x26502c9)
                                               #3  0x000061111d1e746e n/a (signal-desktop + 0x268f46e)
                                               #4  0x000061111d1057ae n/a (signal-desktop + 0x25ad7ae)
                                               #5  0x000061111d10586e n/a (signal-desktop + 0x25ad86e)
                                               #6  0x000061111f741413 n/a (signal-desktop + 0x4be9413)
                                               #7  0x000061111f74157e n/a (signal-desktop + 0x4be957e)
                                               #8  0x000061111f745534 n/a (signal-desktop + 0x4bed534)
                                               #9  0x000061111f745118 n/a (signal-desktop + 0x4bed118)
                                               #10 0x000061111f74103b n/a (signal-desktop + 0x4be903b)
                                               #11 0x000061111d377cc0 n/a (signal-desktop + 0x281fcc0)
                                               #12 0x000061111d3791ce n/a (signal-desktop + 0x28211ce)
                                               #13 0x000061111d379028 n/a (signal-desktop + 0x2821028)
                                               #14 0x000061111d376cea n/a (signal-desktop + 0x281ecea)
                                               #15 0x000061111d376dd0 n/a (signal-desktop + 0x281edd0)
                                               #16 0x000061111d024f27 n/a (signal-desktop + 0x24ccf27)
                                               #19 0x000061111cc0102a _start (signal-desktop + 0x20a902a)
                                               #2  0x0000611120c4e148 n/a (signal-desktop + 0x60f6148)
                                               #3  0x0000611120c73a13 n/a (signal-desktop + 0x611ba13)
                                               #4  0x0000611120bf53ed n/a (signal-desktop + 0x609d3ed)
                                               #5  0x0000611120c3282d n/a (signal-desktop + 0x60da82d)
                                               #6  0x0000611120c3286b n/a (signal-desktop + 0x60da86b)
                                               #7  0x0000611120c33533 n/a (signal-desktop + 0x60db533)
                                               #8  0x0000611120c331fd n/a (signal-desktop + 0x60db1fd)
                                               #9  0x0000611120c33113 n/a (signal-desktop + 0x60db113)
                                               #10 0x0000611120c4e8cc n/a (signal-desktop + 0x60f68cc)
                                               #1  0x0000611120c6f4a4 n/a (signal-desktop + 0x61174a4)
                                               #2  0x0000611120c6f230 n/a (signal-desktop + 0x6117230)
                                               #3  0x0000611120c1a251 n/a (signal-desktop + 0x60c2251)
                                               #4  0x0000611120bd935e n/a (signal-desktop + 0x608135e)
                                               #5  0x0000611120c3b458 n/a (signal-desktop + 0x60e3458)
                                               #6  0x0000611120c2690d n/a (signal-desktop + 0x60ce90d)
                                               #7  0x0000611120c3b652 n/a (signal-desktop + 0x60e3652)
                                               #8  0x0000611120c4e8cc n/a (signal-desktop + 0x60f68cc)
                                               #2  0x0000611120c4e148 n/a (signal-desktop + 0x60f6148)
                                               #3  0x0000611120c73a13 n/a (signal-desktop + 0x611ba13)
                                               #4  0x0000611120bf53ed n/a (signal-desktop + 0x609d3ed)
                                               #5  0x0000611120c3282d n/a (signal-desktop + 0x60da82d)
                                               #6  0x0000611120c3286b n/a (signal-desktop + 0x60da86b)
                                               #7  0x0000611120c33533 n/a (signal-desktop + 0x60db533)
                                               #8  0x0000611120c331fd n/a (signal-desktop + 0x60db1fd)
                                               #9  0x0000611120c33113 n/a (signal-desktop + 0x60db113)
                                               #10 0x0000611120c4e8cc n/a (signal-desktop + 0x60f68cc)
                                               #2  0x0000611120c4e148 n/a (signal-desktop + 0x60f6148)
                                               #3  0x0000611120c73a13 n/a (signal-desktop + 0x611ba13)
                                               #4  0x0000611120bf53ed n/a (signal-desktop + 0x609d3ed)
                                               #5  0x0000611120c3282d n/a (signal-desktop + 0x60da82d)
                                               #6  0x0000611120c3286b n/a (signal-desktop + 0x60da86b)
                                               #7  0x0000611120c33533 n/a (signal-desktop + 0x60db533)
                                               #8  0x0000611120c3322d n/a (signal-desktop + 0x60db22d)
                                               #9  0x0000611120c33127 n/a (signal-desktop + 0x60db127)
                                               #10 0x0000611120c4e8cc n/a (signal-desktop + 0x60f68cc)
                                               #2  0x0000611120c4e026 n/a (signal-desktop + 0x60f6026)
                                               #3  0x0000611120c73a7c n/a (signal-desktop + 0x611ba7c)
                                               #4  0x0000611120bf52b5 n/a (signal-desktop + 0x609d2b5)
                                               #5  0x0000611120bb173b n/a (signal-desktop + 0x605973b)
                                               #6  0x0000611120c1a251 n/a (signal-desktop + 0x60c2251)
                                               #7  0x0000611120bd935e n/a (signal-desktop + 0x608135e)
                                               #8  0x0000611120c3b458 n/a (signal-desktop + 0x60e3458)
                                               #9  0x0000611120c3b652 n/a (signal-desktop + 0x60e3652)
                                               #10 0x0000611120c4e8cc n/a (signal-desktop + 0x60f68cc)
                                               #1  0x0000611120c67a34 n/a (signal-desktop + 0x610fa34)
                                               #2  0x0000611120c67822 n/a (signal-desktop + 0x610f822)
                                               #3  0x0000611120c69250 n/a (signal-desktop + 0x6111250)
                                               #4  0x0000611120c4e8cc n/a (signal-desktop + 0x60f68cc)
                                               #1  0x000061111fe4e100 n/a (signal-desktop + 0x52f6100)
                                               #2  0x0000611120c4e8cc n/a (signal-desktop + 0x60f68cc)
░░ Subject: Process 7821 (signal-desktop) dumped core
░░ Process 7821 (signal-desktop) crashed and dumped core.
Nov 24 09:13:54 THERAK systemd-coredump[20235]: Process 20224 (kate) of user 1000 terminated abnormally with signal 6/ABRT, processing...


I'm not sure what was removed/done when uninstalling KDE plasma to break my system but it's become so aggravating that I have no choice but to ask the community for help. Either I'm too close to the problem, or it's above my pay grade as I've seemingly run out of ideas. I was going to share the xorg log but it's rather lengthy and figured I'd spare you.

I appreciate any input you may have, and the time you take to share it in the event you chose to do so.
Thank you.

EDIT: Tilix (terminal) and Firefox, Nemo and such all work as expected. I'm using the rig as we speak; so it's semi-functional.
 
Last edited:


Alright, before you chime in with any AMD>Nvidia nonsense you should know that A: I don't care, and B: I had it working PERFECTLY until I uninstalled KDE Plasma in hopes to depend fully on Hyprland as my go-to environment.

Uninstalling KDE Plasma might have removed some dependencies or configurations that other applications rely on. Here are a few steps you can try to resolve this:

  1. Check for Missing Dependencies: Some applications might depend on libraries or services that were removed with KDE Plasma. You can try reinstalling the applications to ensure all dependencies are met:
    sudo pacman -S signal-desktop spotify-launcher visual-studio-code-bin

  2. Reinstall D-Bus: Since many applications rely on D-Bus for inter-process communication, reinstalling it might help:
    sudo pacman -S dbus
    sudo systemctl restart dbus

  3. Check for Configuration Files: Sometimes, old configuration files can cause issues. Try moving or renaming the configuration directories for the problematic applications:
    mv ~/.config/Signal ~/.config/Signal.bak
    mv ~/.config/spotify ~/.config/spotify.bak
    mv ~/.config/Code ~/.config/Code.bak

  4. Log Files: Check the log files for any error messages that might give a clue about what's going wrong. You can find logs in /var/log or by running the applications from the terminal to see the output.
  5. Reinstall KDE Plasma: If the above steps don't work, you might consider reinstalling KDE Plasma to restore any missing dependencies, and then carefully remove it again if you still prefer Hyprland.
 
I'd actually attempted most of those suggestions (thank you for taking the time to read all this nonsense btw).

I ended up getting so frustrated that I just did a fresh install; things are seemingly running smoothly now! Will report back later this evening once I've had a chance to try and configure; maybe share my first "rice" on hyprland lol.

So far, Steam, Signal, Spotify, and Code all launching as to be expected!
 
Well, it only took me most the day to get up to speed. Lil bit of tidying up to do in terms of color theming to do yet but overall she's functional!
 

Attachments

  • 2024-11-24-184147_hyprshot.png
    2024-11-24-184147_hyprshot.png
    525.2 KB · Views: 29

Members online


Top