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

crash after compile on windows minigw #13575

Open
1 task done
Morgal106 opened this issue Jun 27, 2024 · 21 comments
Open
1 task done

crash after compile on windows minigw #13575

Morgal106 opened this issue Jun 27, 2024 · 21 comments
Labels
bug [core label] gpui GPUI rendering framework support panic / crash [core label] windows

Comments

@Morgal106
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

i built zed from source and zed crashed when startup.

git hash: 209b1d19313a01db9a0a79d4bc644a80f1e22b7b

[2024-06-27T15:23:11+08:00 ERROR util] crates\fs\src/fs.rs:537: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-27T15:23:11+08:00 ERROR util] crates\fs\src/fs.rs:537: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-27T15:23:12+08:00 ERROR util] crates\fs\src/fs.rs:537: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
Thread "main" panicked with "called `Result::unwrap()` on an `Err` value: NoSupportedDeviceFound" at crates\gpui\src\platform\windows\window.rs:977:14
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: git_smart_subtransport_git
  10: git_smart_subtransport_git
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: DispatchMessageW
  16: DispatchMessageW
  17: CallNextHookEx
  18: KiUserCallbackDispatcher
  19: NtUserCreateWindowEx
  20: CreateWindowExW
  21: CreateWindowExW
  22: CreateWindowExW
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
  27: <unknown>
  28: <unknown>
  29: <unknown>
  30: <unknown>
  31: <unknown>
  32: <unknown>
  33: <unknown>
  34: <unknown>
  35: <unknown>
  36: <unknown>
  37: <unknown>
  38: CoreUICreateEx
  39: CoreUICallReceive
  40: CoreUICallReceive
  41: CoreUICallReceive
  42: CoreUICallReceive
  43: CoreUICallReceive
  44: CoreUICallReceive
  45: CoreUICallReceive
  46: CoreUICallReceive
  47: DispatchMessageW
  48: DispatchMessageW
  49: GetClassLongW
  50: KiUserCallbackDispatcher
  51: NtUserPeekMessage
  52: PeekMessageW
  53: PeekMessageW
  54: <unknown>
  55: <unknown>
  56: <unknown>
  57: <unknown>
  58: <unknown>
  59: <unknown>
  60: <unknown>
  61: <unknown>
  62: <unknown>
  63: <unknown>
  64: git_smart_subtransport_git
  65: BaseThreadInitThunk
  66: RtlUserThreadStart

Environment

windows 11 23h2 22631.3737
AMD Ryzen 7 4800U with Radeon Graphics

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

Zed.log
@Morgal106 Morgal106 added admin read Pending admin review bug [core label] panic / crash [core label] triage Maintainer needs to classify the issue labels Jun 27, 2024
@notpeter notpeter added windows gpui GPUI rendering framework support and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Jun 27, 2024
@zhouxs1023
Copy link

I use msys2 ucrt64 shell run zed,but turn on errors:

Administrator@XTZJ-20221117KS UCRT64 ~

zed

[2024-06-29T00:02:00+08:00 ERROR util] crates\fs\src/fs.rs:527: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-29T00:02:00+08:00 ERROR util] crates\fs\src/fs.rs:527: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-29T00:02:00+08:00 ERROR util] crates\fs\src/fs.rs:527: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-29T00:02:00+08:00 ERROR zed::reliability] {
"thread": "main",
"payload": "called Result::unwrap() on an Err value: NoSupportedDeviceFound",
"location_data": {
"file": "crates\gpui\src\platform\windows\window.rs",
"line": 969
},
"backtrace": [],
"app_version": "0.140.5",
"release_channel": "Zed",
"os_name": "Windows",
"os_version": "10.0.19045",
"architecture": "x86_64",
"panicked_on": 1719590520856,
"installation_id": "4271685c-21c5-47c7-b558-828092db56ac",
"session_id": "82913c0a-61f3-4bf1-a839-3a25ab7e098e"
}

@wwAww
Copy link

wwAww commented Jun 30, 2024

I use msys2 ucrt64 shell run zed,but turn on errors:

Administrator@XTZJ-20221117KS UCRT64 ~

zed

[2024-06-29T00:02:00+08:00 ERROR util] crates\fs\src/fs.rs:527: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-06-29T00:02:00+08:00 ERROR util] crates\fs\src/fs.rs:527: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-06-29T00:02:00+08:00 ERROR util] crates\fs\src/fs.rs:527: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } [2024-06-29T00:02:00+08:00 ERROR zed::reliability] { "thread": "main", "payload": "called Result::unwrap() on an Err value: NoSupportedDeviceFound", "location_data": { "file": "crates\gpui\src\platform\windows\window.rs", "line": 969 }, "backtrace": [], "app_version": "0.140.5", "release_channel": "Zed", "os_name": "Windows", "os_version": "10.0.19045", "architecture": "x86_64", "panicked_on": 1719590520856, "installation_id": "4271685c-21c5-47c7-b558-828092db56ac", "session_id": "82913c0a-61f3-4bf1-a839-3a25ab7e098e" }

i am also

@nickel-dev

This comment was marked as spam.

@405-studio
Copy link

i got the same issue
when i ran the command: "cargo run dev" , i got this logs:
"[2024-07-04T09:22:02+08:00 WARN blade_graphics::hal::init] Rejected for device extension "VK_KHR_dynamic_rendering" not supported"
this is because the VK_KHR_dynamic_rendering support in vulkan 1.3
but my graphic driver's vulkan apiVersion is 1.2.175
so, if you got this error ,try to update your graphic drivers (TT my NVIDIA GeForce GT 730 newest drivers not support vulkan 1.3)

image
image
image

@Duy-Thanh
Copy link

Same here at 13/7/2024 with main branch:

Microsoft Windows [Version 10.0.19045.4651]
(c) Microsoft Corporation. All rights reserved.

D:\zed\target\debug>zed
[2024-07-13T11:55:15+07:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-07-13T11:55:15+07:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-07-13T11:55:21+07:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-07-13T11:55:21+07:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
Thread "main" panicked with "called `Result::unwrap()` on an `Err` value: NoSupportedDeviceFound" at crates\gpui\src\platform\windows\window.rs:1061:14
   0: backtrace::backtrace::dbghelp::trace
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.69\src\backtrace\dbghelp.rs:98
   1: backtrace::backtrace::trace_unsynchronized<backtrace::capture::impl$1::create::closure_env$0>
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.69\src\backtrace\mod.rs:66
   2: backtrace::backtrace::trace<backtrace::capture::impl$1::create::closure_env$0>
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.69\src\backtrace\mod.rs:53
   3: backtrace::capture::Backtrace::create
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.69\src\capture.rs:176
   4: backtrace::capture::Backtrace::new
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\backtrace-0.3.69\src\capture.rs:140
   5: zed::reliability::init_panic_hook::closure$0
             at D:\zed\crates\zed\src\reliability.rs:58
   6: alloc::boxed::impl$50::call
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\alloc\src\boxed.rs:2036
   7: std::panicking::rust_panic_with_hook
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\panicking.rs:799
   8: std::panicking::begin_panic_handler::closure$0
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\panicking.rs:664
   9: std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\sys_common\backtrace.rs:171
  10: std::panicking::begin_panic_handler
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\panicking.rs:652
  11: core::panicking::panic_fmt
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\core\src\panicking.rs:72
  12: core::result::unwrap_failed
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\core\src\result.rs:1654
  13: core::result::Result::unwrap
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\library\core\src\result.rs:1077
  14: gpui::platform::windows::window::windows_renderer::windows_renderer
             at D:\zed\crates\gpui\src\platform\windows\window.rs:1051
  15: gpui::platform::windows::window::WindowsWindowState::new
             at D:\zed\crates\gpui\src\platform\windows\window.rs:87
  16: gpui::platform::windows::window::WindowsWindowStatePtr::new
             at D:\zed\crates\gpui\src\platform\windows\window.rs:207
  17: gpui::platform::windows::window::wnd_proc
             at D:\zed\crates\gpui\src\platform\windows\window.rs:924
  18: CallWindowProcW
  19: DispatchMessageW
  20: InitDManipHook
  21: KiUserCallbackDispatcher
  22: NtUserCreateWindowEx
  23: CreateWindowExW
  24: CreateWindowExW
  25: CreateWindowExW
  26: windows::Win32::UI::WindowsAndMessaging::CreateWindowExW<windows_core::strings::pcwstr::PCWSTR,ref$<windows_core::strings::hstring::HSTRING>,enum2$<core::option::Option<ref$<windows::Win32::Foundation::HWND> > >,enum2$<core::option::Option<ref$<windows::W
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.57.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:540
  27: gpui::platform::windows::window::WindowsWindow::new
             at D:\zed\crates\gpui\src\platform\windows\window.rs:298
  28: gpui::platform::windows::platform::impl$2::open_window
             at D:\zed\crates\gpui\src\platform\windows\platform.rs:285
  29: gpui::window::Window::new
             at D:\zed\crates\gpui\src\window.rs:653
  30: gpui::app::impl$4::open_window::closure$0<workspace::Workspace,workspace::impl$12::new_local::closure$0::async_block$0::closure_env$13>
             at D:\zed\crates\gpui\src\app.rs:478
  31: gpui::app::AppContext::update<enum2$<core::result::Result<gpui::window::WindowHandle<workspace::Workspace>,anyhow::Error> >,gpui::app::impl$4::open_window::closure_env$0<workspace::Workspace,workspace::impl$12::new_local::closure$0::async_block$0::closure
             at D:\zed\crates\gpui\src\app.rs:343
  32: gpui::app::AppContext::open_window<workspace::Workspace,workspace::impl$12::new_local::closure$0::async_block$0::closure_env$13>
             at D:\zed\crates\gpui\src\app.rs:475
  33: gpui::app::async_context::AsyncAppContext::open_window<workspace::Workspace,workspace::impl$12::new_local::closure$0::async_block$0::closure_env$13>
             at D:\zed\crates\gpui\src\app\async_context.rs:154
  34: workspace::impl$12::new_local::closure$0::async_block$0
             at D:\zed\crates\workspace\src\workspace.rs:1010
  35: core::future::future::impl$1::poll<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<tuple$<gpui::window::WindowHandle<workspace::Workspace>,alloc::vec::Vec<enum2$<core::option::Option<enum2$<core::result::Resul
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\library\core\src\future\future.rs:123
  36: async_task::runnable::impl$6::spawn_local::impl$1::poll<core::pin::Pin<alloc::boxed::Box<dyn$<core::future::future::Future<assoc$<Output,enum2$<core::result::Result<tuple$<gpui::window::WindowHandle<workspace::Workspace>,alloc::vec::Vec<enum2$<core::optio
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.0\src\runnable.rs:455
  37: 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,enum2$<core::result::Result<tuple$<gpui::window::WindowHandle<workspace::Workspace>,alloc::ve
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.0\src\raw.rs:557
  38: async_task::runnable::Runnable::run<tuple$<> >
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\async-task-4.7.0\src\runnable.rs:781
  39: gpui::platform::windows::dispatcher::impl$4::dispatch_on_main_thread::closure$0
             at D:\zed\crates\gpui\src\platform\windows\dispatcher.rs:114
  40: windows::System::DispatcherQueueHandlerBox::Invoke<gpui::platform::windows::dispatcher::impl$4::dispatch_on_main_thread::closure_env$0>
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.57.0\src\Windows\System\mod.rs:4697
  41: MsgBlobCreateShared
  42: CreateDispatcherQueueController
  43: CreateDispatcherQueueController
  44: CreateDispatcherQueueController
  45: CreateDispatcherQueueController
  46: CreateDispatcherQueueController
  47: CreateDispatcherQueueController
  48: CreateDispatcherQueueController
  49: CallWindowProcW
  50: DispatchMessageW
  51: windows::Win32::UI::WindowsAndMessaging::DispatchMessageW
             at D:\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.57.0\src\Windows\Win32\UI\WindowsAndMessaging\mod.rs:764
  52: gpui::platform::windows::platform::impl$2::run
             at D:\zed\crates\gpui\src\platform\windows\platform.rs:190
  53: gpui::app::App::run<zed::main::closure_env$2>
             at D:\zed\crates\gpui\src\app.rs:140
  54: zed::main
             at D:\zed\crates\zed\src\main.rs:390
  55: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\library\core\src\ops\function.rs:250
  56: std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\library\std\src\sys_common\backtrace.rs:155
  57: std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\library\std\src\sys_common\backtrace.rs:155
  58: std::rt::lang_start::closure$0<tuple$<> >
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\library\std\src\rt.rs:159
  59: std::rt::lang_start_internal
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library\std\src\rt.rs:141
  60: std::rt::lang_start<tuple$<> >
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081\library\std\src\rt.rs:158
  61: main
  62: invoke_main
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  63: __scrt_common_main_seh
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  64: BaseThreadInitThunk
  65: RtlUserThreadStart

D:\zed\target\debug>

This error also occured on Release mode:

D:\zed>cargo run --release
warning: zed@0.145.0: Info: using '89fbd6528f688cc98eaa4b3002f4b41da6c7b520' hash for ZED_COMMIT_SHA env var
   Compiling zed v0.145.0 (D:\zed\crates\zed)
    Finished `release` profile [optimized + debuginfo] target(s) in 23m 47s
     Running `target\release\zed.exe`
error: process didn't exit successfully: `target\release\zed.exe` (exit code: 0xffffffff)
D:\zed>cargo run --release
warning: zed@0.145.0: Info: using '89fbd6528f688cc98eaa4b3002f4b41da6c7b520' hash for ZED_COMMIT_SHA env var
   Compiling zed v0.145.0 (D:\zed\crates\zed)
    Finished `release` profile [optimized + debuginfo] target(s) in 23m 47s
     Running `target\release\zed.exe`
error: process didn't exit successfully: `target\release\zed.exe` (exit code: 0xffffffff)

@Polygons1
Copy link

it just happened to me on a clean Windows install, what I had to do is update the graphics driver to a version that supports Vulkan. Try giving it a shot.

@ognevny
Copy link
Contributor

ognevny commented Jul 19, 2024

from msys2 side I opened msys2/MINGW-packages#21435 for 0.144.3 update. can you test it from GHA artifacts, please?

@KennyxLan
Copy link

Having this issue on Windows 10, too.

[2024-07-21T22:21:15+08:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-07-21T22:21:15+08:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } 
[2024-07-21T22:21:15+08:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } 
[2024-07-21T22:21:16+08:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] } 
Zed failed to open a window: NoSupportedDeviceFound. See https://zed.dev/docs/linux for troubleshooting steps.

@Polygons1
Copy link

the classic case of an outdated graphics driver!

@ahdyt
Copy link

ahdyt commented Jul 24, 2024

Hi, I am successfully compiled Zed on Windows, but also having this issue when running the binary.

@notpeter notpeter changed the title crashed on windows crash after compile on windows minigw Jul 29, 2024
@designingSparks
Copy link

I get the following error:
[2024-08-28T10:30:20+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-08-28T10:30:20+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-08-28T10:30:20+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-08-28T10:30:20+02:00 ERROR fs.rs] Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
Zed failed to open a window: NoSupportedDeviceFound. See https://zed.dev/docs/linux for troubleshooting steps.

@Polygons1
Copy link

@designingSparks what is your graphics driver name and version?

@ahdyt
Copy link

ahdyt commented Aug 28, 2024

@designingSparks what is your graphics driver name and version?

Hi, trying to add, mine is Intel® UHD Graphics for 10th Gen Intel® Processors with the latest driver.

I think based on this website, it supports vulkan.

https://www.intel.com/content/www/us/en/support/articles/000005524/graphics.html

It is an onboard graphics driver of intel i5-1035g1.

I tried Zed on another machine with discrete Rx580 graphics, and it runs fine.

Is it because Zed uses discrete/external graphic first?

@Polygons1
Copy link

Polygons1 commented Aug 28, 2024

@ahdyt I have the same exact driver and CPU and all I had to do is update the driver. Also sometimes Windows Update downgrades the driver.

edit: are you sure you are on the latest version?

@ahdyt
Copy link

ahdyt commented Aug 28, 2024

@ahdyt I have the same exact driver and CPU and all I had to do is update the driver. Also sometimes Windows Update downgrades the driver.

edit: are you sure you are on the latest version?

gfx_win_101.2128.exe?

@Polygons1
Copy link

try installing that, it worked on my machine

@ahdyt
Copy link

ahdyt commented Aug 28, 2024

try installing that, it worked on my machine

Screenshot 2024-08-28 232600

Yeah it's working great now, my windows previously keeps installing the version 2019 driver, eventhough I already installed that version. but I report to disable it once and for all.

@Polygons1

This comment has been minimized.

@designingSparks
Copy link

@ahdyt Updating the driver manually worked actually.

@Priler
Copy link

Priler commented Oct 17, 2024

RTX 4090 here, latest drivers installed.

NVIDIA_Share_cvoJ5unylB

@fantasyland101
Copy link

I have the same problem as above, but the install of a new driver is vendor locked
(this is not realy a zed issue but I thought it was good to mension)

computer: Lenovo x1 yoga, 3rd edition
platform: windows 10

Intel driver support assistent:
Skärmklipp

lenovos latest driver:
Skärmklipp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] gpui GPUI rendering framework support panic / crash [core label] windows
Projects
None yet
Development

No branches or pull requests