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.68k stars 3.14k forks source link

Crash on selecting workflow #18894

Open Cunya opened 1 month ago

Cunya commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

The app is built from source as it needs a change for me to start with UI. Empty new folder open, logged in, claude sonnet 3.5 selected. Selecting workflow crashes the app. Applied this change otherwise the app doesn't have any UI: https://github.com/zed-industries/zed/issues/18610#issuecomment-2397709563

Environment

Zed: v0.157.0 (Zed Dev e35114815257f800acf9020aeb82470b8cec53b3) OS: Windows 10.0.22631 Memory: 31.8 GiB Architecture: x86_64 GPU: NVIDIA GeForce RTX 4070 || NVIDIA || 561.09

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

This is the cli output with the call stack as I don't see where the log is, the log file that app shows doesn't have the recent entries:


D:\Apps\Build\Zed\repo\zed>cargo run Finished dev profile [unoptimized + debuginfo] target(s) in 1.80s Running target\debug\zed.exe [2024-10-09T10:43:00+03:00 ERROR fs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-10-09T10:43:01+03:00 ERROR fs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-10-09T10:43:01+03:00 ERROR fs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-10-09T10:43:01+03:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-10-09T10:43:01+03:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-10-09T10:43:01+03:00 ERROR blade_graphics::hal::init] No composite alpha flag for transparency: OPAQUE [2024-10-09T10:43:01+03:00 ERROR fs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-10-09T10:43:01+03:00 ERROR workspace] No path or contents found for buffer [2024-10-09T10:43:01+03:00 ERROR project] NotPresent Thread "main" panicked with "offset 8231 is out of range, max allowed is 7920" at crates\text\src/text.rs:2899:9 0: backtrace::backtrace::dbghelp64::trace at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.74\src\backtrace\dbghelp64.rs:91 backtrace::backtrace::trace_unsynchronized<backtrace::capture::impl$4::create::closure_env$0> at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.74\src\backtrace\mod.rs:66 1: backtrace::backtrace::trace<backtrace::capture::impl$4::create::closure_env$0> at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.74\src\backtrace\mod.rs:53 2: backtrace::capture::Backtrace::create at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.74\src\capture.rs:292 3: backtrace::capture::Backtrace::new at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.74\src\capture.rs:257 4: zed::reliability::init_panic_hook::closure$0 at D:\Apps\Build\Zed\repo\zed\crates\zed\src\reliability.rs:58 5: alloc::boxed::impl$50::call at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\alloc\src\boxed.rs:2084 std::panicking::rust_panic_with_hook at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:808 6: std::panicking::begin_panic_handler::closure$0 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:674 7: std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$> at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\sys\backtrace.rs:168 8: std::panicking::begin_panic_handler at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:665 9: core::panicking::panic_fmt at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\core\src\panicking.rs:74 10: text::impl$39::to_offset at D:\Apps\Build\Zed\repo\zed\crates\text\src\text.rs:2899 11: text::BufferSnapshot::anchor_at at D:\Apps\Build\Zed\repo\zed\crates\text\src\text.rs:2276 12: text::BufferSnapshot::anchor_before at D:\Apps\Build\Zed\repo\zed\crates\text\src\text.rs:2268 13: assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure$0::closure$1::closure$0 at D:\Apps\Build\Zed\repo\zed\crates\assistant\src\context.rs:1833 14: core::iter::adapters::map::map_fold::closure$0<assistant_slash_command::SlashCommandOutputSection,assistant_slash_command::SlashCommandOutputSection,tuple$<>,assistant::context::impl$9::insert_command_output::closure$0::async_b at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\iter\adapters\map.rs:89 15: alloc::vec::into_iter::impl$5::fold<assistant_slash_command::SlashCommandOutputSection,alloc::alloc::Global,tuple$<>,core::iter::adapters::map::map_fold::closure_env$0<assistant_slash_command::SlashCommandOutputSection,assistant_slash_command at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\alloc\src\vec\into_iter.rs:317 16: core::iter::adapters::map::impl$2::fold<assistant_slash_command::SlashCommandOutputSection,alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::alloc::Global>,assistant::context::impl$9::ins at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\iter\adapters\map.rs:129 17: core::iter::traits::iterator::Iterator::for_each<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::alloc::Global>,assistant::context::impl$9::insert_command_output::closure$0::as at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\iter\traits\iterator.rs:818 18: alloc::vec::Vec::extend_trusted<assistant_slash_command::SlashCommandOutputSection,alloc::alloc::Global,core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::al at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\alloc\src\vec\mod.rs:3113 19: alloc::vec::spec_extend::impl$1::spec_extend<assistant_slash_command::SlashCommandOutputSection,core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::alloc::Glo at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\alloc\src\vec\spec_extend.rs:26 20: alloc::vec::spec_from_iter_nested::impl$1::from_iter<assistant_slash_command::SlashCommandOutputSection,core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::al at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\alloc\src\vec\spec_from_iter_nested.rs:62 21: alloc::vec::in_place_collect::impl$1::from_iter<assistant_slash_command::SlashCommandOutputSection,core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::alloc:: at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\alloc\src\vec\in_place_collect.rs:246 22: alloc::vec::impl$15::from_iter<assistant_slash_command::SlashCommandOutputSection,core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::alloc::Global>,assistant at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\alloc\src\vec\mod.rs:2977 23: core::iter::traits::iterator::Iterator::collect<core::iter::adapters::map::Map<alloc::vec::into_iter::IntoIter<assistant_slash_command::SlashCommandOutputSection,alloc::alloc::Global>,assistant::context::impl$9::insert_command_output::closure$0::asy at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\iter\traits\iterator.rs:2005 24: assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure$0::closure$1 at D:\Apps\Build\Zed\repo\zed\crates\assistant\src\context.rs:1828 25: gpui::app::impl$5::update_model::closure$0<language::buffer::Buffer,tuple$<enum2$,enum2$ >,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure$0::closu at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app.rs:1366 26: gpui::app::AppContext::update<tuple$<enum2$,enum2$ >,gpui::app::impl$5::update_model::closure_env$0<language::buffer::Buffer,tuple$<enum2$,enum2$< at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app.rs:363 27: gpui::app::impl$5::update_model<language::buffer::Buffer,tuple$<enum2$,enum2$ >,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure$0::closure_env$1> at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app.rs:1364 28: gpui::app::model_context::impl$2::update_model<assistant::context::Context,language::buffer::Buffer,tuple$<enum2$,enum2$ >,assistant::context::impl$9::insert_command_output::closure$0: at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app\model_context.rs:250 29: gpui::app::entity_map::Model::update<language::buffer::Buffer,gpui::app::model_context::ModelContext,tuple$<enum2$,enum2$ >,assistant::context::impl$9::ins at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app\entity_map.rs:422 30: assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure$0 at D:\Apps\Build\Zed\repo\zed\crates\assistant\src\context.rs:1822 31: gpui::app::impl$5::update_model::closure$0<assistant::context::Context,tuple$<>,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure_env$0> at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app.rs:1366 32: gpui::app::AppContext::update<tuple$<>,gpui::app::impl$5::update_model::closure_env$0<assistant::context::Context,tuple$<>,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure_env$0> > at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app.rs:363 33: gpui::app::impl$5::update_model<assistant::context::Context,tuple$<>,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure_env$0> at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app.rs:1364 34: gpui::app::async_context::impl$0::update_model<assistant::context::Context,tuple$<>,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure_env$0> at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app\async_context.rs:69 35: gpui::app::entity_map::impl$34::update::closure$1<assistant::context::Context,gpui::app::async_context::AsyncAppContext,tuple$<>,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure_env$0> at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app\entity_map.rs:604 36: core::result::Result::map<gpui::app::entity_map::Model,anyhow::Error,enum2$<core::result::Result<tuple$<>,anyhow::Error> >,gpui::app::entity_map::impl$34::update::closure_env$1<assistant::context::Context,gpui::app::async_conte at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\result.rs:771 37: gpui::app::entity_map::WeakModel::update<assistant::context::Context,gpui::app::async_context::AsyncAppContext,tuple$<>,assistant::context::impl$9::insert_command_output::closure$0::async_block$0::closure_env$0> at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app\entity_map.rs:602 38: assistant::context::impl$9::insert_command_output::closure$0::async_block$0 at D:\Apps\Build\Zed\repo\zed\crates\assistant\src\context.rs:1795 39: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,tuple$<> > > >,alloc::alloc::Global> > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\future\future.rs:123 40: async_task::runnable::impl$6::spawn_local::impl$1::poll<core::pin::Pin<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,tuple$<> > > >,alloc::alloc::Global> > > at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:455 41: async_task::raw::RawTask::run<async_task::runnable::impl$6::spawn_local::Checked<core::pin::Pin<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,tuple$<> > > >,alloc::alloc::Global> > >,tuple$<>,gpui::executor::impl$6::spawn::inner::closur at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\raw.rs:557 42: async_task::runnable::Runnable::run<tuple$<> > at D:\Apps\Cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.1\src\runnable.rs:781 43: gpui::platform::windows::platform::WindowsPlatform::run_foreground_tasks at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\platform\windows\platform.rs:171 44: gpui::platform::windows::platform::impl$2::run at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\platform\windows\platform.rs:245 45: gpui::app::App::run<zed::main::closure_env$5> at D:\Apps\Build\Zed\repo\zed\crates\gpui\src\app.rs:161 46: zed::main at D:\Apps\Build\Zed\repo\zed\crates\zed\src\main.rs:446 47: core::ops::function::FnOnce::call_once<void ()(),tuple$<> > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\ops\function.rs:250 48: core::hint::black_box at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\core\src\hint.rs:389 std::sys::backtrace::__rust_begin_short_backtrace<void ()(),tuple$<> > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\std\src\sys\backtrace.rs:152 49: std::rt::lang_start::closure$0<tuple$<> > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\std\src\rt.rs:162 50: std::rt::lang_start_internal::closure$2 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\rt.rs:141 std::panicking::try::do_call at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:557 std::panicking::try at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panicking.rs:521 std::panic::catch_unwind at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\panic.rs:350 std::rt::lang_start_internal at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library\std\src\rt.rs:141 51: std::rt::lang_start<tuple$<> > at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c\library\std\src\rt.rs:161 52: main 53: invoke_main at D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 __scrt_common_main_seh at D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 54: BaseThreadInitThunk 55: RtlUserThreadStart

error: process didn't exit successfully: target\debug\zed.exe (exit code: 0xffffffff)

D:\Apps\Build\Zed\repo\zed>

Cunya commented 1 month ago

https://github.com/superboxes/zed-windows seems to work without this issue.