-
-
Notifications
You must be signed in to change notification settings - Fork 833
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
Unable to start wezterm with brew installed JetBrains Mono font present #475
Comments
That's weird! It seems stuck fairly early on in setting up some background machinery that isn't directly part of wezterm. Can you try starting wezterm again and then use the Activity Monitor to "sample" the wezterm process? (highlight the wezterm process, then use the gear icon to pop up a menu and select "sample process"). That might give some clues as to what is happening. Please share the sample with me! To try to unblock, the only persistent state that wezterm directly, actively maintains is If that doesn't work, macOS maintains its own state information in |
As requested here are the samples for both WezTerm.app and the wezterm-mux-server. Thought I'd give you both just in case. I will proceed to try your other suggestions now. |
Deleting the directory nor the plist file had any effect. Attaching a sample from after removing the |
The sample appears to be focused around font loading. Have you recently changed something with the fonts on your machine? Two possible things feel plausible based on that sample:
I'd expect to see some logging about either of those things happening, so I'm not 100% convinced that we've identified the issue so far. |
I did use
If you want to try it yourself, the font I installed was from here https://github.com/JetBrains/JetBrainsMono |
Hmm, I manually installed JetBrains Mono (brew doesn't work on M1 macs, or didn't when I set this up and I don't need it here), and I can't reproduce this issue. I'll see if I can reproduce it on my intel mac when that next convenient to test. |
I tried reinstalling JetBrains Mono with |
I briefly tried to reproduce this yesterday by manually installing the fonts into fontbook but couldn't with master. I believe that it happened because a couple of people seem to have run into this and because of the sample output above. |
I managed to cause another computer to go into a beachball and lock up wezterm. I installed JetBrainsMono again via
Once I saved the file wezterm changed to I then edited the font setting again, this time changing When I start Font Book and select JetBrains Mono, it tells me:
And that I can resolve this Manually or Automatically. I am not doing anything else to this environment so that if there is any poking about or details you need, I should be able to get them. |
I had a quick look at the entries in Font Book, image attached. This seems like an issue with how brew is installing fonts. However I think wezterm could handle the situation better and not hang. I've left my computer in this state in case there's any more information I can provide, however I am finding Terminal.app severely lacking. |
for fonts located by core text, if they are singular TTF files rather than TTC files, and the font doesn't exactly match the search critiera, we could loop forever re-parsing the same file over and over again. This commit restructures the logic to definitively check the number of contained font entries and constrain the loop to that number. In addition, it adjusts the name matching, as macos can return names like "Cascadia Code Roman" when the underlying font is named "Cascadia Code". refs: #475
While looking at another issue, I ran into an unterminated loop resolving fonts on my mac. I'm pretty sure that it was the cause of the problems you had here! The primary trigger was if macOS decorated the name with a suffix like "Roman" and we couldn't find a font with that name in the underlying file. |
I tested this out on the last Mac I had left that I hadn't installed JetBrains Mono on, and it worked. Conditions on that Mac are the same as listed above and wezterm is running, so I think we can call this issues fixed. Thank you again for the continued awesome support and product! |
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
After changing the font configured in ~/.config/wezterm/wezterm.lua, Wezterm locked up (spinning beachball of death) and I had to force quit it. After which I have not been able to restart Wezterm.
Things I've tried:
I have tried starting using the WezTerm.app and from within Terminal.app to get a better idea of what is going on. In both cases the icon appears in the desktop and shortly after Wezterm shows as Not Responding.
Environment (please complete the following information):
To Reproduce
Steps to reproduce the behavior.
I don't know if someone else can reproduce this. Changing the font on my other systems has had the same lockup/beachball effect if I didn't have the font installed, but wezterm has never failed to start afterwards.
Configuration
Default configuration when there is no configuration.
Expected behavior
New terminal opens.
Screenshots
If applicable, add screenshots to help explain your problem. Screenshots are most
appropriate for rendering issues.
Session Recording
I tried to run wt-record but because wezterm doesn't start, it never gets to run the script to do the recording or dump the output.
Additional context
I'm attaching the results from the Console filtered on wezterm and the output from
env WEZTERM_LOG=trace RUST_BACKTRACE=1 wezterm
, hopefully these can provide some insight.wezterm_trace.txt
wezterm_console_logs.txt
It seems to me that there is a state recorded somewhere and that wezterm is trying to get back to that, but this is outside of my knowledge of how to fix.
The text was updated successfully, but these errors were encountered: