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 crashes when I try to view patch suggested by the assistant #24571

Open
micouy opened this issue Feb 10, 2025 · 1 comment
Open

Zed crashes when I try to view patch suggested by the assistant #24571

micouy opened this issue Feb 10, 2025 · 1 comment
Labels
assistant AI feedback for Assistant (inline or panel)

Comments

@micouy
Copy link

micouy commented Feb 10, 2025

Summary

Steps to trigger the problem:

  1. Ask assistant for edit suggestions
  2. Click on the file in the suggestion list

Actual Behavior: crashes

Expected Behavior: opens patch view

Not sure what exactly causes the problem but I've experienced it multiple times already. Please let me know how to help you debug it.

Zed Version and System Specs

Zed: v0.172.10 (Zed)
OS: macOS 15.1.0
Memory: 128 GiB
Architecture: aarch64

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

Zed.log
{
  "thread": "main",
  "payload": "cannot read assistant_context_editor::context_editor::ContextEditor while it is already being updated",
  "location_data": {
    "file": "/Users/<redacted>/actions-runner-4/_work/zed/zed/crates/gpui/src/app/entity_map.rs",
    "line": 182
  },
  "backtrace": [
    "backtrace::capture::Backtrace::create::hc4c89705da5b1737+10169536",
    "backtrace::capture::Backtrace::new::hf7d621b6b1194da3+10169348",
    "zed::reliability::init_panic_hook::{{closure}}::h3be2dce345680599+83350620",
    "std::panicking::rust_panic_with_hook::h09e8a656f11e82b2+63691348",
    "std::panicking::begin_panic_handler::{{closure}}::h1230eb3cc91b241c+63688444",
    "std::sys::backtrace::__rust_end_short_backtrace::hc3491307aceda2c2+63680548",
    "_rust_begin_unwind+63687632",
    "core::panicking::panic_fmt::ha4b80a05b9fff47a+91403860",
    "gpui::app::entity_map::double_lease_panic::hc60f9802ad8d4ada+1212864",
    "<gpui::app::entity_map::Entity<T> as workspace::item::ItemHandle>::has_conflict::h65ce8476f33ff6de+1948872",
    "workspace::pane::Pane::add_item::h5a56694e7a065211+78854368",
    "workspace::Workspace::add_item::h2e2a269ef8809d0b+79531496",
    "gpui::app::entity_map::WeakEntity<T>::update::heaac02d5865f2271+6000788",
    "assistant_context_editor::context_editor::ContextEditor::open_patch_editor::{{closure}}::h755848d2ac8e240c+7265964",
    "assistant_context_editor::context_editor::ContextEditor::update_active_patch::{{closure}}::{{closure}}::hc932b9efc3d00108+7253304",
    "async_task::raw::RawTask<F,T,S,M>::run::h4539c865fb48f2f7+5398000",
    "gpui::platform::mac::dispatcher::trampoline::h9fb93fc1e274d7d2+32715728",
    "<gpui::platform::mac::platform::MacPlatform as gpui::platform::Platform>::run::he7d5379a29d93919+32776268",
    "gpui::app::Application::run::h627202cc06824102+80887908",
    "zed::main::h07b68fb29e5789ff+82503360",
    "std::sys::backtrace::__rust_begin_short_backtrace::h1db00eeb9d702a35+81843520",
    "std::rt::lang_start::{{closure}}::h6b09999b0d33dab5+82530244",
    "std::rt::lang_start_internal::hdd117cb81a316264+63622028",
    "_main+82515664"
  ],
  "app_version": "0.172.10",
  "release_channel": "stable",
  "target": "aarch64-apple-darwin",
  "os_name": "macOS",
  "os_version": "15.1.0",
  "architecture": "aarch64",
  "panicked_on": 1739207938834,
  "system_id": "<redacted>",
  "installation_id": "<redacted>",
  "session_id": "<redacted>"
}
@JosephTLyons JosephTLyons added ai Improvement related to Assistant, Copilot, or other AI features assistant AI feedback for Assistant (inline or panel) labels Feb 10, 2025
@probably-neb
Copy link
Contributor

Sorry you're experiencing a crash!
I think it's pretty clear what's going wrong from your Zed.log so thanks for including that.
Hope to get this fixed for you very soon!

@notpeter notpeter removed the ai Improvement related to Assistant, Copilot, or other AI features label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assistant AI feedback for Assistant (inline or panel)
Projects
None yet
Development

No branches or pull requests

4 participants