zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.61k stars 3.14k forks source link

Fedora 39: Crashes on second startup when font family is Cozette #11323

Open airtonix opened 6 months ago

airtonix commented 6 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

  1. download https://github.com/zed-industries/zed/releases/download/v0.134.1-pre/zed-linux-x86_64.tar.gz
  2. unpack it
  3. cd zed-linux-x86_64/zed-preview.app/bin
  4. ./zed
  5. Download Cozette font: https://github.com/slavfox/Cozette
  6. Set font family to Cozette
  7. exit
  8. ./zed

Some times you don't even have to exit and relaunch, Zed would crash shortly after setting the font and saving the settings file.

Environment

zed-linux-x86_64/zed-preview.app/bin took 6s 
x inxi -S           
System:
  Host: brass Kernel: 6.8.6-200.fc39.x86_64 arch: x86_64 bits: 64
  Desktop: Xfce v: 4.18.1 Distro: Fedora Linux 39 (Workstation Edition)

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

zed-linux-x86_64/zed-preview.app/bin 
> ./zed 
[2024-05-03T08:20:16+09:30 ERROR util] crates/zed/src/main.rs:192: could not find git binary path

Caused by:
    Platform<LinuxPlatform>::path_for_auxiliary_executable is not implemented yet
[2024-05-03T08:20:16+09:30 ERROR util] crates/zed/src/zed.rs:661: EOF while parsing a value at line 1 column 0
[2024-05-03T08:20:16+09:30 ERROR Zed::reliability] Error uploading panic to server: 404 Not Found
[2024-05-03T08:20:17+09:30 ERROR Zed::reliability] {
  "thread": "main",
  "payload": "called `Option::unwrap()` on a `None` value",
  "location_data": {
    "file": "crates/gpui/src/platform/cosmic_text/text_system.rs",
    "line": 308
  },
  "backtrace": [
    "__libc_start_call_main",
    "__libc_start_main_alias_2"
  ],
  "app_version": "1.0.0",
  "release_channel": "Zed Preview",
  "os_name": "Linux",
  "os_version": "1.0.0",
  "architecture": "x86_64",
  "panicked_on": 1714690217100,
  "installation_id": "3bda6b45-f0fc-4be9-b831-f5be0545d8c0",
  "session_id": "482be5fb-32e7-4095-ab94-464fb8692e85"
}
zsh: IOT instruction (core dumped)  ./zed

or

> ./zed
[2024-05-03T08:27:46+09:30 ERROR util] crates/zed/src/main.rs:192: could not find git binary path

Caused by:
    Platform<LinuxPlatform>::path_for_auxiliary_executable is not implemented yet
[2024-05-03T08:27:46+09:30 ERROR util] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:46+09:30 ERROR util] crates/zed/src/zed.rs:661: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:50+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:50+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:50+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:52+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:53+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:54+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:54+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:54+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:54+09:30 ERROR util] crates/settings/src/settings_file.rs:83: EOF while parsing a value at line 1 column 0
[2024-05-03T08:27:56+09:30 ERROR util] crates/lsp/src/lsp.rs:768: oneshot canceled
airtonix commented 6 months ago

If i remove the configuration then zed starts up again.

rm -rf ~/.config/zed
airtonix commented 6 months ago

setting the ui font to CozetteVector doesn't cause a crash.

{
  "ui_font_family": "CozetteVector",
  "ui_font_size": 16,
  "buffer_font_size": 16
}