Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kitty 0.34.0 causing segfault on Hyprland (unstable) #304662

Closed
meirisoda opened this issue Apr 16, 2024 · 12 comments
Closed

kitty 0.34.0 causing segfault on Hyprland (unstable) #304662

meirisoda opened this issue Apr 16, 2024 · 12 comments
Labels
0.kind: bug Something is broken

Comments

@meirisoda
Copy link

meirisoda commented Apr 16, 2024

Describe the bug

After updating my system, launching kitty results in:
[1] 4976 segmentation fault (core dumped) kitty
Updated to kitty 0.34.0 #304261

Also mentioned in PR above:

This seems to be segfaulting on Hyprland for me. I don't know if I should open a bug report for this or not.

Originally posted by @YaroKasear in #304261 (comment)

Edit:
I am using nixpkgs's Hyprland, which is v0.38.1

Steps To Reproduce

Steps to reproduce the behavior:

  1. Be on unstable branch.
  2. Update packages/flake.
  3. Launch kitty.

Expected behavior

kitty should launch.

Notify maintainers

@tex
@rvolosatovs
@Luflosi
@adamcstephens
@kashw2

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - host os: `Linux 6.8.6, NixOS, 24.05 (Uakari), 24.05.20240416.5672bc9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/3kwj19dbdfxnjbcns4hw307ylhz3wgrm-source`
@meirisoda meirisoda added the 0.kind: bug Something is broken label Apr 16, 2024
@kashw2
Copy link
Contributor

kashw2 commented Apr 17, 2024

I'm unable to reproduce this on Hyprland 0.39.1 @ 79a139c9495568f69dd995bce1ca579247a98a17 and on Kitty 0.34.0

image

Are you able to run strace kitty and post it's output?

@meirisoda
Copy link
Author

It's a bit long so here's a sharetext (exceed pastebin limits): https://sharetext.me/6tns9l93pv

@meirisoda
Copy link
Author

hyprctl version gives me v0.38.1 - I'm using hyprland using wayland.windowManager.hyprland.enable on home-manager.

@JohnRTitor
Copy link
Contributor

JohnRTitor commented Apr 17, 2024

hyprctl version gives me v0.38.1 - I'm using hyprland using wayland.windowManager.hyprland.enable on home-manager.

Can you try with the latest flake?
I can't reproduce with 39.1.
image

The above screenshot is of kitty itself.

@JohnRTitor
Copy link
Contributor

JohnRTitor commented Apr 17, 2024

Can you also try this: #304725

Also pinging @fufexan

@meirisoda
Copy link
Author

I'm having a difficult time getting the flake to work using this - my Hyprland config is in home-manager, and following the instructions on the link above returns error: The option wayland' does not exist. Definition values:`, referencing the Hyprland flake.nix. It seems there was another person with this issue but can't seem to find a way to resolve it smoothly.

@JohnRTitor
Copy link
Contributor

JohnRTitor commented Apr 17, 2024

You can use wayland.windowManager.hyprland.package to ask Home Manager to use Hyprland package from the official flake.

First define it in your flake.nix. Then use it like this. (I don't use Home manager to install Hyprland though)

@meirisoda
Copy link
Author

It's not exactly working, I've tried many different ways (enabling and defining it with just programs.hyprland and disabling home-manager's enable; using both; using just home manager and defining the package etc), but it always reverts back to a default config. There was one time it also mentioned segfault on the bottom text. I was also unable to verify the version.
kitty did not open on any of these times.
It is imported properly into my flake and hyprland.nix file (which includes my home-manager options that I use to configure hyprland).

@Kyesarri
Copy link

I've found using home-manager with

home-manager.users.user.wayland.windowManager.hyprland = {
          extraConfig = ''
          source = /foo/bar.conf
          '';
          };

allows me to have a custom config file elsewhere (in my nix git).

https://github.com/Kyesarri/nixos/blob/master/home/hypr/default.nix#L34

@hweissi
Copy link

hweissi commented Apr 18, 2024

I had the same issue, with kitty 0.34.4 and hyperland from commit 82222342f10a7eff0ec9be972153e740d0f95213.

For me, removing background_blur 1 from my kitty config fixed the issue.
Maybe it's connected to having 2 different blurs (from kitty and hyprland) enabled at the same time.

@meirisoda
Copy link
Author

This solved the issue! I had noise on in my hyprland config.

@YaroKasear
Copy link

Removing background_blur did not work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

6 participants