Skip to content
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

Zed crashing consistently on first or second UI interaction #21223

Open
1 task done
gsmaverick opened this issue Nov 26, 2024 · 5 comments
Open
1 task done

Zed crashing consistently on first or second UI interaction #21223

gsmaverick opened this issue Nov 26, 2024 · 5 comments
Labels
bug [core label] macOS Platform-specific feedback for macOS behaviors, features, design, etc needs info / awaiting response Issue that needs more information from the user panic / crash [core label]

Comments

@gsmaverick
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Open Zed from Applications folder on Mac or via terminal (e.g. zed [folder or file to open]) and then trying to interact with any part of the editor. Either the first or second click interaction with any part of the UI causes the editor to freeze and then I need to force quit.

This start in the last few days although I don't remember the last good version number. I am unable to use Zed for anything right now.

Environment

Zed: v0.162.5 (Zed)
OS: macOS 14.1.1
Memory: 8 GiB
Architecture: aarch64

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

Zed.log
2024-11-26T13:37:53.506446-08:00 [INFO] ========== starting zed ==========
2024-11-26T13:37:53.592352-08:00 [INFO] Opening main db
2024-11-26T13:37:53.600675-08:00 [INFO] Opening main db
2024-11-26T13:37:53.722553-08:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-11-26T13:37:54.116156-08:00 [INFO] No prompt template overrides directory found at /Users/gavin/.config/zed/prompt_overrides. Using built-in prompts.
2024-11-26T13:37:54.129291-08:00 [INFO] extensions updated. loading 2, reloading 0, unloading 0
2024-11-26T13:37:54.222006-08:00 [INFO] Opening main db
2024-11-26T13:37:54.249497-08:00 [INFO] building git repository, `.git` path in the worktree: ".git"
2024-11-26T13:37:54.677723-08:00 [INFO] set status on client 0: Authenticating
2024-11-26T13:37:54.687162-08:00 [INFO] Opening main db
2024-11-26T13:37:54.697424-08:00 [INFO] set status on client 217177: Connecting
2024-11-26T13:37:54.709673-08:00 [INFO] Opening main db
2024-11-26T13:37:54.763166-08:00 [WARN] unhandled message: Metadata(SupermavenMetadataMessage { dust_strings: None })
2024-11-26T13:37:54.766776-08:00 [INFO] attempting to start language server "yaml-language-server", path: "/Users/gavin/Code/adhd-calendar", id: 1
2024-11-26T13:37:54.767055-08:00 [INFO] Initializing default prettier with plugins {}
2024-11-26T13:37:54.767234-08:00 [INFO] Initializing default prettier with plugins {}
2024-11-26T13:37:54.77132-08:00 [WARN] unhandled message: Set(SupermavenSetMessage { key: "disabled", value: Bool(false) })
2024-11-26T13:37:54.772511-08:00 [INFO] fetching latest version of language server "yaml-language-server"
2024-11-26T13:37:54.772967-08:00 [INFO] Node runtime install_if_needed
2024-11-26T13:37:54.80757-08:00 [INFO] Initializing default prettier with plugins {}
2024-11-26T13:37:54.832284-08:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-11-26T13:37:54.857042-08:00 [INFO] Initializing default prettier with plugins {}
2024-11-26T13:37:55.384043-08:00 [INFO] add_connection;
2024-11-26T13:37:55.402461-08:00 [INFO] set status on client 217177: Connected { peer_id: PeerId { owner_id: 616, id: 1072935 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-11-26T13:37:59.909255-08:00 [INFO] set environment variables from shell:/bin/zsh, path:/Users/gavin/.rye/shims:/Users/gavin/.rbenv/shims:/Users/gavin/.nvm/versions/node/v20.5.1/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.4/shims:/Users/gavin/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin
2024-11-26T13:38:02.438435-08:00 [INFO] downloading language server "yaml-language-server"
2024-11-26T13:38:03.960434-08:00 [INFO] using project environment variables shell launched in "/Users/gavin/Code/adhd-calendar". PATH="/Users/gavin/.rye/shims:/Users/gavin/.rbenv/shims:/Users/gavin/.nvm/versions/node/v20.5.1/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.4/shims:/Users/gavin/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/Applications/Sublime Text.app/Contents/SharedSupport/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin"
@gsmaverick gsmaverick added admin read Pending admin review bug [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Nov 26, 2024
@notpeter
Copy link
Member

notpeter commented Nov 27, 2024

I wonder whether it might be related to your macOS version. macOS 14.1.1 was released November 7, 2023. We recently introduced some changes to support international keyboards which rely on some macOS APIs that may have been subtly broken but fixed in subsequent releases. Could you try updating to the current macOS 14.x and see if that helps? You don't have to update to Sequoia, you can stay with Sonoma, Apple just makes it harder to see those updates are also available:
Screenshot 2024-11-27 at 9 38 17

I would be eternally grateful if you, or someone else seeing this would be willing to do the git bisect and zero-in on the broken commit, but even without that, would you see if you can narrow down the release version where this regression was introduced? This will also allow you to pin to the previous release as a workaround in the meantime.

Add "auto_update": false to your settings.json and then download older releases from here: https://github.com/zed-industries/zed/releases

Thanks

@notpeter notpeter added needs info / awaiting response Issue that needs more information from the user macOS Platform-specific feedback for macOS behaviors, features, design, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 27, 2024
@gsmaverick
Copy link
Author

There wasn't any reason I was avoiding the upgrade to Sequoia so I went ahead and upgraded but the behaviour is still the same. Going to work back through the versions and see what I can do to narrow down the set of changes that may be responsible.

@gsmaverick
Copy link
Author

gsmaverick commented Nov 30, 2024

Using v0.158.2 everything works fine with the following terminal commands:

$> zed [folder name]
$> zed [file name]

The folder I try to open is a collection of HTML + Javascript files and the file I try to open second is a Python file.

When I try the same two commands using v0.159.5 Zed locks up and I have to force quite after running the second command. This is on Sequoia btw.

@jabedzaman
Copy link

any solution?? it asks me for “Zed” would like to access data from other apps. and then stops responding...

image image

@jabedzaman
Copy link

My temporary fix was to clean ~/Library/Application Support/Zed/db/ and then open zed via launchpad/finder and then open the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] macOS Platform-specific feedback for macOS behaviors, features, design, etc needs info / awaiting response Issue that needs more information from the user panic / crash [core label]
Projects
None yet
Development

No branches or pull requests

3 participants