-
Notifications
You must be signed in to change notification settings - Fork 500
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
thread 'main' panicked at 'Could not create surface' #459
Comments
I ran into the same issue (just compiled it 15 minutes ago):
|
@pranphy looks like haswell vulkan support isn't very good given the error message. Do you have a discrete gpu? |
I am not sure if I have discrete gpu in my machine. Edit: I assume this entry means the driver is there:
|
This is happening for me too, but without the
|
same issue on laptop
vulkaninfo gives
|
same error on another computer wit nvidia video card: dunno what is a discrete GPU but seems like it
NB: |
https://www.linuxquestions.org/questions/slackware-14/vulkan-using-llvmpipe-instead-of-amdgpu-on-slackware64-current-4175686371/ advised to run |
May be that is the same issue with me too, that somehow drivers are not working properly.
|
vkcube works fine (I see a spinning cube) |
also can try |
Yes, (X11) error now.
|
I just pushed a change to main which causes neovide to prefer the discrete gpu over the integrated one. I have no idea if this would fix the issues you folks are running into but maybe give it a try? |
@Kethku I had modified that myself before, but it didn't seem to work. Tinkered for a while and gave up! |
FWIW, I have the same issue on a laptop with no discrete GPU (only an integrated Intel iGPU). Stacktrace
Output of `vulkaninfo | grep GPU`
|
I'm going to look into what it would take to enable opengl for skia. I'm not going to make any promises, but it seems like it might be possible. |
Would folks here be willing to try the recent main branch? It introduces an opengl renderer which may be easier to run. |
I've tried running the main branch (after experiencing the same panic as described in the issue). Output is as follows:
Get the same error if I manually set the geometry with the |
I compiled e730a54, ran fine with very few warnings.
RUST_BACKTRACE=full ./target/release/neovide
|
@Kethku , I am also facing similar issue on ❯ ~/neovide
Ignored client type property: "methods"
Ignored client type property: "attributes"
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: CreationErrors([NoAvailablePixelFormat, Window(OsError { line: 430, file: "/home/lalitmee/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/linux/x11/window.rs", error: XError(XError { description: "BadWindow (invalid Window parameter)", error_code: 3, request_code: 131, minor_code: 46 }) })])', src/window/window_wrapper/mod.rs:428:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
Hi, I had the same issue, but was actually missing the Vulkan driver; Installed
still shows when running from console ( hope this helps. |
Hey, I am also getting a similar error on the main branch. Was able to build just fine with
OS: Fedora 33 Thanks for all your hard work on this project, I'll keep my eye on the main branch updates and see if I can get it to build and run soon, I'm excited to try this project out as a big fan of Neovim! |
+1 having a same issue here:
OS: Arch Linux x86_64 |
Same issue
OS: Arch |
OS: Arch Linux I realised that it crashes instantly only if an otb font is set but works fine otherwise. |
same here (output is the same as comment above, so I'm not posting it again) I tried both OS: arch Linux |
I have a Nvidia GPU and a on-chip Intel GPU. I can fix this issue by removing the Intel ICD located somewhere in the /etc directory ( try to grep |
Have same issue described here. I tried building with
|
I ended up reverting the main branch opengl change and pushed the code to the opengl branch instead. So any people with vulkan issues should try building from there instead |
still experiencing the error on v0.7.0
|
Have the same error
VGA
|
I have the same issue.
I have a discrete Nvidia GPU. |
Using the latest release binary on Fedora 33, I get the same error. Full backtrace❯ RUST_BACKTRACE=full ./neovide Ignored client type property: "methods" Ignored client type property: "attributes" thread 'main' panicked at 'Could not create surface', src/renderer/rendered_window.rs:40:6 stack backtrace: 0: 0x564b85a49050 - std::backtrace_rs::backtrace::libunwind::trace::h25e12e0d899beba0 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 1: 0x564b85a49050 - std::backtrace_rs::backtrace::trace_unsynchronized::h70e61195d6ae3df6 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x564b85a49050 - std::sys_common::backtrace::_print_fmt::hba93ab80d779695a at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/sys_common/backtrace.rs:67:5 3: 0x564b85a49050 - ::fmt::hf092b5883b4b2e50 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/sys_common/backtrace.rs:46:22 4: 0x564b8596b01c - core::fmt::write::hf68bc350a8f2f0dc at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/fmt/mod.rs:1078:17 5: 0x564b85a488c1 - std::io::Write::write_fmt::hf66811b1bc767436 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/io/mod.rs:1517:15 6: 0x564b85a48225 - std::sys_common::backtrace::_print::hd425a11bfe1f20f8 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/sys_common/backtrace.rs:49:5 7: 0x564b85a48225 - std::sys_common::backtrace::print::h6d678795c1e61e13 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/sys_common/backtrace.rs:36:9 8: 0x564b85a48225 - std::panicking::default_hook::{{closure}}::h78a02a4a0dee5e7e at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:208:50 9: 0x564b85a478eb - std::panicking::default_hook::h56eb7eda02f355a7 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:225:9 10: 0x564b85a478eb - std::panicking::rust_panic_with_hook::hb27ea14285131c61 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:591:17 11: 0x564b85a66ba8 - std::panicking::begin_panic_handler::{{closure}}::hc552fcee62aad17f at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:497:13 12: 0x564b85a66b1c - std::sys_common::backtrace::__rust_end_short_backtrace::hb9f0aa9a78e885a0 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/sys_common/backtrace.rs:141:18 13: 0x564b85a66acd - rust_begin_unwind at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:493:5 14: 0x564b85969390 - core::panicking::panic_fmt::h12ac4570ea43d06f at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:92:14 15: 0x564b8596f542 - core::option::expect_failed::h7e0f81ae38d4dc42 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/option.rs:1260:5 16: 0x564b8592a814 - core::option::Option::expect::h8f452010a24480b0 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/option.rs:349:21 17: 0x564b8592a814 - neovide::renderer::rendered_window::build_window_surface::ha4ce31d2e2dc0463 at /home/runner/work/neovide/neovide/src/renderer/rendered_window.rs:31:5 18: 0x564b8592a814 - neovide::renderer::rendered_window::build_window_surface_with_grid_size::hbef5f02da7fb8712 at /home/runner/work/neovide/neovide/src/renderer/rendered_window.rs:52:5 19: 0x564b8592a4c4 - neovide::renderer::rendered_window::RenderedWindow::new::h3a5aedda0f13f352 20: 0x564b859258cb - neovide::renderer::Renderer::draw_frame::h96b064db79b97958 21: 0x564b85934add - skulpin_renderer::renderer::Renderer::draw::h0e111049e4fe16b6 22: 0x564b85916234 - neovide::window::window_wrapper::Sdl2WindowWrapper::draw_frame::h45a632078e73f017 at /home/runner/work/neovide/neovide/src/window/sdl2/mod.rs:368:13 23: 0x564b85916234 - neovide::window::window_wrapper::start_loop::h894d4f0140af088e at /home/runner/work/neovide/neovide/src/window/sdl2/mod.rs:508:15 24: 0x564b858cc288 - neovide::window::create_window::h0f8dee7f8042e695 at /home/runner/work/neovide/neovide/src/window/mod.rs:112:5 25: 0x564b858cc288 - neovide::main::he540a142533223b2 at /home/runner/work/neovide/neovide/src/main.rs:180:5 26: 0x564b85a92d63 - core::ops::function::FnOnce::call_once::h211140fe246648ce at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/ops/function.rs:227:5 27: 0x564b85a92d63 - std::sys_common::backtrace::__rust_begin_short_backtrace::haa5c536756ae6800 at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/sys_common/backtrace.rs:125:18 28: 0x564b858c96c5 - main 29: 0x7f23342581e2 - __libc_start_main 30: 0x564b8589960e - _start 31: 0x0 - I've tried building from source multiple times, master and OpenGL. None of the suggested fixes have worked. |
same issue on arch linux using the neovide-git package from aur and a radeon rx 560 Ignored client type property: "methods" |
Some new instructions were added to the readme for dealing with vulkan issues. However the goal is to eventually swap to opengl via the opengl branch. So I think I'm going to close these as repeat of #491 which is my actual hope for fixing this. |
I compiled the master version of this repo today ( b0f7c2e ) and compiled it. The compilation went successfully and when I try to run, it says:
The text was updated successfully, but these errors were encountered: