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

Wezterm crashing on main #4806

Closed
MariaSolOs opened this issue Feb 23, 2024 · 19 comments
Closed

Wezterm crashing on main #4806

MariaSolOs opened this issue Feb 23, 2024 · 19 comments
Labels
bug Something isn't working stale Not much going on

Comments

@MariaSolOs
Copy link

MariaSolOs commented Feb 23, 2024

Hyprland Version

System/Version info
<Paste the output of the command here>

Sorry but given that I cannot even open a terminal, I can’t check this :(
According to dnf list —installed I have hyprland-git.aarch64 version 0.35.0^39.git8c36136-1.fc39 from the solopasha:hyprland copr.

Bug or Regression?

Bug

Description

After updating Hyprland to the latest git release, I’m not able to open Wezterm anymore.

How to reproduce

  1. Install Wezterm.
  2. Add a keybind like bind = SUPER, T, exec, wezterm in hyprland.conf
  3. Using the main branch, notice how the terminal won’t open.

Crash reports, logs, images, videos

Before crashing, all I can see from Wezterm is a notification saying “running message loop: Protocol error 3 on object xdg_surface@23: “

EDIT: Kitty is working fine. My issues were caused by a .bashrc misconfiguration. I've updated this description accordingly.

@MariaSolOs MariaSolOs added the bug Something isn't working label Feb 23, 2024
@MariaSolOs
Copy link
Author

Hmm this looks like a duplicate of #4798?

@vaxerski
Copy link
Member

no, it's not a duplicate. Post WAYLAND_DEBUG=1 logs of a crashing app.

@MariaSolOs
Copy link
Author

Of course. Here's the log file from Wezterm:
wezterm.log

@vaxerski
Copy link
Member

that's... odd. I am on latest and kitty definitely launches for me, and the surface there seems to have been configured...

@MariaSolOs
Copy link
Author

I know, it's quite strange... It's not happening with the stable image, which gives me the following hyprctl systeminfo output:

Hyprland, built from branch HEAD at commit 84ab8d1 (props: bump ver to 0.35.0). Date: Mon Feb 5 01:59:02 2024 Tag: v0.35.0

flags: (if any)

System Information:
System name: Linux
Node name: prettygirl
Release: 6.6.3-413.asahi.fc39.aarch64+16k
Version: #1 SMP PREEMPT_DYNAMIC Sat Jan 27 17:19:54 UTC 2024

GPU information:

os-release: NAME="Fedora Linux Asahi Remix"
VERSION="39 (Thirty Nine)"
ID=fedora-asahi-remix
ID_LIKE=fedora
VERSION_ID=39
VERSION_CODENAME=""
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Linux Asahi Remix 39 (Thirty Nine)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora-asahi-remix:39"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedora-asahi-remix.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
SUPPORT_URL="https://discussion.fedoraproject.org/c/neighbors/asahi/asahi-help/94"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=39
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=39

plugins:

Here's some more information that might help:

@vaxerski
Copy link
Member

It's wezterm's fault.

Can you add wayland_debug kitty logs?

@MariaSolOs
Copy link
Author

I will be adding the kitty logs in a bit, currently AFK.

For my own knowledge, why do you say it's wezterm's fault? @vaxerski

@vaxerski
Copy link
Member

vaxerski commented Feb 23, 2024

because the protocol error is raised because wezterm violated the protocol. It looks like it accidentally unmaps its surface and doesn't go through the map process before trying to use it.

edit: fwiw, wezterm crashes on wayland all the time. I believe this is the third time wezterm does something wrong in wl.

@MariaSolOs
Copy link
Author

I see. I had never had issues with Wezterm until now :(

As promised, here are the kitty logs:
kitty.log

@vaxerski
Copy link
Member

no errors here in the log

@MariaSolOs
Copy link
Author

no errors here in the log

But kitty is still not opening.

@vaxerski
Copy link
Member

yeah idk inside kitty it looks like it just doesn't want to, it closes out of its own will it seems. Anyways, it might be a misconfiguration? It works just fine on my end

@MariaSolOs
Copy link
Author

@vaxerski Even with an empty kitty.conf I have this behaviour...

It seems like this isn't Hyprland's fault, and the last thing I want is to make you more busy than you already are, but do you have any tips on what I can do to diagnose the problem? Without a terminal emulator my Linux setup is quite useless. Wezterm-nightly and Hyprland 0.35.0 work fine, so I can stick with those versions for now, but I don't want to miss important fixes/features because of this.

@vaxerski
Copy link
Member

I wish I knew what's up.

one thing I remember is when I once broke my kitty by setting it to an XD size that would make it crash on launch. IIRC it'd store the "last state" somewhere. But that doesn't seem like the case here.

Have you tried e.g. foot? if that launches?

@MariaSolOs
Copy link
Author

I haven't tried foot yet (I'm not that desperate since I still have a working setup lol) but I'll try that.

I will continue investigating. In the meantime, I think that some related issues are being created (e.g. #4813). Since I have an environment where I can consistently reproduce the problem, feel free to let me know if you want me to try out stuff to ease your investigation.

Also I take advantage of the opportunity to say that I truly admire and appreciate your work <3

@vaxerski
Copy link
Member

4813 is unrelated, it's about hyprland crashing not the apps. It's a separate issue, most likely on their end

thanks for the kind words :)

@MariaSolOs MariaSolOs changed the title Wezterm and Kitty crashing on main Wezterm crashing on main Feb 25, 2024
@sjcobb2022
Copy link

Would like to add that this only occurs after after 9a6956f...2841092 trying to update wlroots.

Most likely the updated spec caught wezterm's incorrect usage of wl.

Wezterm is undergoing a large wayland rewrite atm, lots of stuff still unimplemented. I believe that the core-issue is that the wayland seat has not been properly implemented yet for wezterm, which causes the surface to not be configured, which causes it to violate a wl protocol.

af0c8e2 is the latest commit to hyprland that runs wezterm.

@vaxerski
Copy link
Member

is this still a thing? if it's just wez, it's not a hl issue

@MariaSolOs
Copy link
Author

@vaxerski yeah we can close this and let wez/wezterm#5067 track the problem with wezterm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Not much going on
Projects
None yet
Development

No branches or pull requests

3 participants