wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Very slow startup (>1.5s)

Open murrrda opened this issue 1 year ago • 3 comments

What Operating System(s) are you seeing this problem on?

Linux X11

Which Wayland compositor or X11 Window manager(s) are you using?

i3wm with picom

WezTerm version

20240730-082727-56a27e93

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

The startup speed of WezTerm is inconsistent and appears to be random. It can be either very slow or okay, regardless of whether an existing instance is already running.

To Reproduce

No response

Configuration

-- Pull in the wezterm API local wezterm = require("wezterm")

-- This will hold the configuration. local config = wezterm.config_builder()

-- config config.max_fps = 165

-- font config.font = wezterm.font("JetBrains Mono") config.font_size = 16 config.line_height = 1.1

-- and finally, return the configuration to wezterm return config

Also happens without config

Expected Behavior

No response

Logs

Debug Overlay wezterm version: 20240730-082727-56a27e93 x86_64-unknown-linux-gnu Window Environment: X11 i3 Lua Version: Lua 5.4 OpenGL: Mesa Intel(R) Graphics (ADL GT2) 4.6 (Compatibility Profile) Mesa 24.1.4 Enter lua statements or expressions and hit Enter. Press ESC or CTRL-D to exit 01:01:12.790 WARN window::os::x11::connection > Unable to resolve appearance using xdg-desktop-portal: get_appearance.read_setting: Reading xdg-portal org.freedesktop.appearance color-scheme: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop 01:04:44.592 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)

Anything else?

WEZTERM_LOG=trace wezterm start echo hi

I don't have problems with other terminals (kitty, alacritty). I also have discrete nvidia gpu RTX 3050ti.

My picom.conf: backend = "glx"; glx-no-stencil = true; glx-copy-from-front = false; xrender-sync-fence = true; vsync=true

dbe = false;

murrrda avatar Jul 31 '24 23:07 murrrda

I had a similar issue with a delay around that warning message, but I don't see it anymore if I build from the source (a debug or release build are both fine). Maybe it is related to the fix for #5802?

tekul avatar Oct 01 '24 15:10 tekul

Same issue, switched to wezterm because kitty had font rendering issues, but wezterm is just too slow to start taking at least > 1.5s to spawn.

mksonkar avatar Oct 09 '24 09:10 mksonkar

Same issue, switched to wezterm because kitty had font rendering issues, but wezterm is just too slow to start taking at least > 1.5s to spawn.

I decided to give it another shot. So I removed the wezterm package from extras repo and installed wezterm-git from the AUR as it was more up to date and it starts up just fine now! YAY!!

mksonkar avatar Oct 11 '24 07:10 mksonkar

Can confirm: Release 20240203 slow, HEAD fast. Bisect shows that this was fixed by a0a415d1cb5f4d0e6317535b7a3db09b6a1b9731 (#5923).

mvf avatar Jan 13 '25 16:01 mvf

Yeah, seems like issue is fixed. I will close

murrrda avatar Jan 13 '25 20:01 murrrda

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Feb 13 '25 03:02 github-actions[bot]