JaKooLit / Debian-Hyprland

Automated Hyprland installer for Debian 13 Trixie and Debian SID (unstable)
GNU General Public License v3.0
719 stars 67 forks source link

[Bug]: Kitty, vscode and some apps not launching #118

Closed phr3nzy closed 3 months ago

phr3nzy commented 3 months ago

Bug Report

Before submitting report

[Kindly review the log files in Install-Logs directory. Some apps may have not installed properly.]

Description

When I try to open kitty or vscode, they don't launch.

Steps to Reproduce

  1. On Ubuntu 24.04, use install script of this repo
  2. Follow steps
  3. Reboot and login
  4. Open vscode or kitty

Expected Behavior

To open

Actual Behavior

Error messages

Screenshots

No screen shots

Environment

Ubuntu 24.04

show output of inxi -CGIsSMnr install package inxi if not exist

System:
  Host: rip Kernel: 6.8.0-36-generic arch: x86_64 bits: 64
  Desktop: Hyprland v: 0.39.1 Distro: Ubuntu 24.04 LTS (Noble Numbat)
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Dash F15 FX517ZR_FX517ZR
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX517ZR v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FX517ZR.317 date: 05/03/2023
CPU:
  Info: 10-core (6-mt/4-st) model: 12th Gen Intel Core i7-12650H bits: 64
    type: MST AMCP cache: L2: 9.5 MiB
  Speed (MHz): avg: 761 min/max: 400/4600:4700:3500 cores: 1: 647 2: 400
    3: 1852 4: 966 5: 1680 6: 400 7: 1950 8: 400 9: 400 10: 400 11: 400 12: 400
    13: 1087 14: 400 15: 400 16: 400
Graphics:
  Device-1: Intel Alder Lake-P GT1 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] driver: nvidia
    v: 535.183.01
  Device-3: Microdia UGREEN Camera driver: snd-usb-audio,uvcvideo type: USB
  Device-4: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
    compositor: Hyprland v: 0.39.1 driver: X: loaded: modesetting,nouveau,nvidia
    unloaded: fbdev,vesa dri: iris gpu: nvidia,nvidia-nvswitch
    resolution: 3440x1440~100Hz
  API: EGL v: N/A drivers: N/A platforms: N/A
  API: OpenGL v: 4.6.0 vendor: nvidia v: 535.183.01 renderer: NVIDIA
    GeForce RTX 3070 Laptop GPU/PCIe/SSE2
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi
  IF: wlo1 state: down mac: f0:b6:1e:06:48:70
  Device-2: Intel Ethernet I219-LM driver: e1000e
  IF: eno2 state: up speed: 1000 Mbps duplex: full mac: 58:11:22:e4:d1:d0
Sensors:
  System Temperatures: cpu: 51.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 2800
Repos:
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/docker.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/kong-insomnia.list
    1: deb [signed-by=/usr/share/keyrings/kong-insomnia-archive-keyring.gpg] https://packages.konghq.com/public/insomnia/deb/ubuntu focal main
    2: deb-src [signed-by=/usr/share/keyrings/kong-insomnia-archive-keyring.gpg] https://packages.konghq.com/public/insomnia/deb/ubuntu focal main
  No active apt repos in: /etc/apt/sources.list.d/apt-fast-ubuntu-stable-noble.sources
  No active apt repos in: /etc/apt/sources.list.d/gnome3-team-ubuntu-gnome3-noble.sources
  No active apt repos in: /etc/apt/sources.list.d/gnome3-team-ubuntu-gnome3-staging-noble.sources
  Active apt repos in: /etc/apt/sources.list.d/kisak-ubuntu-kisak-mesa-noble.sources
    1: deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu/ noble main
  Active apt repos in: /etc/apt/sources.list.d/oibaf-ubuntu-graphics-drivers-noble.sources
    1: deb https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/ noble main
  Active apt repos in: /etc/apt/sources.list.d/ubuntu.sources
    1: deb http://ae.archive.ubuntu.com/ubuntu/ noble noble-updates noble-backports main restricted universe multiverse
    2: deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
  No active apt repos in: /etc/apt/sources.list.d/vala-team-ubuntu-ppa-noble.sources
Info:
  Memory: total: 16 GiB available: 15.28 GiB used: 3.41 GiB (22.3%)
  Processes: 383 Uptime: 13m Shell: Zsh inxi: 3.3.34

Additional Information

Running kitty --debug-gl gives this:

$ kitty --debug-gl
Creating window at size: 640x400 and scale 1
libEGL fatal: did not find extension DRI_Mesa version 2

Running code --verbose ~/some/dir gives:

MESA-LOADER: failed to open iris: /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /snap/alacritty/130/usr/lib/x86_64-linux-gnu/dri/iris_dri.so) (search paths /snap/alacritty/130/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /snap/alacritty/130/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so) (search paths /snap/alacritty/130/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /snap/alacritty/130/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so) (search paths /snap/alacritty/130/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
failed to load swrast driver
[57871:0703/200803.196640:WARNING:wayland_object.cc(159)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[57871:0703/200803.196686:WARNING:wayland_object.cc(159)] Binding to wl_seat version 8 but version 9 is available.
[57871:0703/200803.196711:WARNING:wayland_object.cc(159)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
(code:57871): GLib-GIO-ERROR **: 20:08:03.200: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
JaKooLit commented 3 months ago

reinstall nvidia driver

phr3nzy commented 3 months ago

Thanks for the reply and amazing work so far!

Just reinstalled, same issues present.

After listing all nvidia packages, this is what I used to reinstall:

sudo apt-fast reinstall libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535 libnvidia-decode-535 libnvidia-encode-535 libnvidia-extra-535 libnvidia-fbc1-535 libnvidia-gl-535 linux-modules-nvidia-535-6.8.0-36-generic linux-modules-nvidia-535-generic-hwe-24.04 linux-objects-nvidia-535-6.8.0-36-generic linux-signatures-nvidia-6.8.0-36-generic nvidia-compute-utils-535 nvidia-driver-535 nvidia-firmware-535-535.183.01 nvidia-kernel-common-535 nvidia-kernel-source-535 nvidia-prime nvidia-settings nvidia-utils-535 xserver-xorg-video-nvidia-535

This is the output of nvidia-smi:

Thu Jul  4 13:15:06 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3070 ...    Off | 00000000:01:00.0  On |                  N/A |
| N/A   45C    P8              16W /  80W |    450MiB /  8192MiB |     29%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      3421      G   Hyprland                                    211MiB |
|    0   N/A  N/A      7067      G   Xwayland                                     49MiB |
|    0   N/A  N/A      7097      G   ...seed-version=20240703-180227.674000      138MiB |
+---------------------------------------------------------------------------------------+
phr3nzy commented 3 months ago

The logs didn't indicate anything failing to install/configure, but I can upload them to gdrive if it helps.

JaKooLit commented 3 months ago

CTRL ALT F3

edit ~/.config/kitty/kitty.conf

add this linux_display_server x11

this will try to launch kitty with x11 instead of wayland

https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.linux_display_server

JaKooLit commented 3 months ago

vscode, try disabling gpu acceleration https://gist.github.com/andriyudatama/fe5d00deb36feeea30ef35a5ea0f7eff

phr3nzy commented 3 months ago

The fix for kitty worked, thanks!

VSCode is still experiencing issues, even when disabling hardware accel.

MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load swrast driver
[111632:0704/175818.871711:WARNING:wayland_object.cc(159)] Binding to zwp_linux_dmabuf_v1 version 3 but version 4 is available.
[111632:0704/175818.871764:WARNING:wayland_object.cc(159)] Binding to wl_seat version 8 but version 9 is available.
[111632:0704/175818.871788:WARNING:wayland_object.cc(159)] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available.
(code:111632): GLib-GIO-ERROR **: 17:58:18.873: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
phr3nzy commented 3 months ago

Could it be related with secure boot? I read that some intel iris drivers don't work well with ubuntu in case secure boot is off. At least for ubuntu 20.04 this happened

JaKooLit commented 3 months ago

I dont know.

I use vscodium and I dont have issue

phr3nzy commented 3 months ago

I'll try to figure it out and post on the discord if i Can get it fixed