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
Crash after font size change #10149
Comments
Interestingly enough, my instance doesn't crash and displays the font size I specified 🤭. As a temporary solution, you can use another program to update |
I cannot repro it when setting When I run my Nightly, I get the following error:
Width and height are a double of ui_font_size; maybe that's a clue? Is it as simple as clamping the ui_font_size at 8192? |
Neither crash my Nightly Zed instance. |
2024-04-05.03.05.05.movthis is what it looks like |
Could you share that crash report that pops up? |
|
Fixed #10149 A user had Zed crash due to invalid font size in settings. It turned out the width/height of glyphs does not pass validation in Metal texture initialization with a large enough font size. All modern Macs have a max texture width/height of 16kB (barring Apple A8, used by iPhone 6 back in 2014, which uses 8kB). This commit clamps texture size at 16kB. Note that while it fixes Zed crash, using a font size that hits the limit is still pretty unusable - the users will still have a pretty unusable editor, but at least it won't crash for them.
Fixed #10149 A user had Zed crash due to invalid font size in settings. It turned out the width/height of glyphs does not pass validation in Metal texture initialization with a large enough font size. All modern Macs have a max texture width/height of 16kB (barring Apple A8, used by iPhone 6 back in 2014, which uses 8kB). This commit clamps texture size at 16kB. Note that while it fixes Zed crash, using a font size that hits the limit is still pretty unusable - the users will still have a pretty unusable editor, but at least it won't crash for them. Release Notes: - Fixed crashes with huge `buffer_font_size` values.
Check for existing issues
Describe the bug / provide steps to reproduce it
After installing the new Zed code editor, I opened the configuration to customize it according to my preferences. While changing the settings, I accidentally set the font size to 13000. Subsequently, the code editor crashed and no longer launches.
Environment
Apple silicon M2, macOS Sonoma 14.4
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
The text was updated successfully, but these errors were encountered: