-
-
Notifications
You must be signed in to change notification settings - Fork 801
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 hangs for several seconds after consecutively opening and closing on macOS 11.2 #452
Comments
I can't reproduce this; what I tried was:
Do you have something in your shell rc files that might be contributing to this? (Perhaps try the same experiment with Terminal.app?) |
I did the same thing to reproduce it. Was not able to reproduce it with iTerm2 or Terminal app. I also tried with Notes and Reminder app. As a side note i noticed "Wezterm update available" showed up now, and it did not go away, is there a way to hide it? I built from source. |
The update available banner will be injected into new panes/tabs until you are running on a release >= the most recent github release. There isn't a way to dismiss it or stop it from doing that at the moment. Since you're building from source, you can update and rebuild and it should go away. Note that the default branch was renamed from |
Is there some way i can log what is going on? |
you can |
where can i read the log file? |
it'll log to stderr |
here is the log file. maybe it could be something with:
or all the blocking / polling in the beginning.. |
There is a 10 second gap between those two log lines. You might want to try setting Since this seems to relate to GPU setup: do you have other GPU/Metal using apps open? I wonder if there is some contention on your system for the GPU that might contribute to this. On my M1 mac (still on 11.1) I'm running chrome and wezterm and don't see the same delay, so I'm wondering what's different. |
Ah yes off course. Setting |
Hi! I'm facing the same issue. Wezterm doesn't open and eventually, I need to force close it :( |
@charliesbot Please share some details about your environment and config; right now there no smoking gun, so it would be good to understand more about whether there is a common thread here! |
It is a fresh restored Macbook Air M1 / MacOS 11.2 Wezterm version: 20210203-095643-70a364eb My config is
Although I just delete it to see if that was the problem but looks like it is not. Lemme know if I can provide any more data @wez! |
Ok, I just upgraded my M1 to MacOS 11.2 and I can now reproduce this. |
I've traced the slowdown to the call that initializes NSOpenGLPixelFormat; it literally takes several seconds some times. I don't think there's anything I can do that would impact its performance; here's where it is called: This feels like an issue with macOS 11.2 itself. @charliesbot another issue that might be relevant to you, in case this isn't exactly the issue you're seeing: |
Is this something that should be reported to Apple as a bug? Did you try to figure out if it was a specific flag that caused it? Is Metal not used for rendering now on macOS? |
@wez omg yeah, that was the issue! I uninstalled Jetbrains font from brew, opened wezterm, and then reinstall it again and it worked. Thanks! WezTerm is my favorite terminal by far :D |
Yes, however, since CGL is deprecated, and quickly quitting and restarting an app is an edge case, I don't anticipate that apple will do anything about it.
I did, but those flags are basic things like 8bpc rgba, double buffered. There aren't any options.
CGL uses Metal under the covers in 11.x. I'm looking to see if building an updated MetalANGLE at least gives a consistent start time, but if you recall, that was something that made startup slower for you previously :-/ |
This just makes it easier to see when this is slowing things down. refs: #452
I just installed 11.4 and the problem seem to be solved. Closing |
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. |
Describe the bug
If i open
Wezterm
and close it again. Then open it again shortly (~1 sec) after, it seem to hang for up to ~9 seconds before opening. If i close it and wait for a while (~12 seconds), it opens instantly again.Environment (please complete the following information):
To Reproduce
See above.
Configuration
No config file.
Expected behavior
I would expect it to open instantly even though i just had it open.
Additional context
The text was updated successfully, but these errors were encountered: