neovide: thread 'main' panicked at 'Could not create surface'
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:
$ export RUST_BACKTRACE=full && ./target/release/neovide
Ignored client type property: "methods"
Ignored client type property: "attributes"
INTEL-MESA: warning: Haswell Vulkan support is incomplete
thread 'main' panicked at 'Could not create surface', src/renderer/rendered_window.rs:31:5
stack backtrace:
0: 0x55cddd6400ed - backtrace::backtrace::libunwind::trace::ha716b483344307d4
at /usr/src/rustc-1.43.0/vendor/backtrace/src/backtrace/libunwind.rs:86
1: 0x55cddd6400ed - backtrace::backtrace::trace_unsynchronized::h73191aaca03de050
at /usr/src/rustc-1.43.0/vendor/backtrace/src/backtrace/mod.rs:66
2: 0x55cddd6400ed - std::sys_common::backtrace::_print_fmt::h515542a6f0149e5c
at src/libstd/sys_common/backtrace.rs:78
3: 0x55cddd6400ed - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbd3babec5fee3351
at src/libstd/sys_common/backtrace.rs:59
4: 0x55cddd556efc - core::fmt::write::ha5eb378c8b683563
at src/libcore/fmt/mod.rs:1063
5: 0x55cddd63fe54 - std::io::Write::write_fmt::h7525b2825ed7383d
at src/libstd/io/mod.rs:1426
6: 0x55cddd633895 - std::sys_common::backtrace::_print::hfec26b72b492a55c
at src/libstd/sys_common/backtrace.rs:62
7: 0x55cddd633895 - std::sys_common::backtrace::print::h05570acc7a135366
at src/libstd/sys_common/backtrace.rs:49
8: 0x55cddd633895 - std::panicking::default_hook::{{closure}}::h9278410915688d73
at src/libstd/panicking.rs:204
9: 0x55cddd63349d - std::panicking::default_hook::hd3a187a77f7140a0
at src/libstd/panicking.rs:224
10: 0x55cddd63349d - std::panicking::rust_panic_with_hook::hb04c51c9d1a7c747
at src/libstd/panicking.rs:470
11: 0x55cddd633a98 - rust_begin_unwind
at src/libstd/panicking.rs:378
12: 0x55cddd5569f0 - core::panicking::panic_fmt::h2e8e792413b965d4
at src/libcore/panicking.rs:85
13: 0x55cddd552202 - core::option::expect_failed::h9d43a72d731e3e83
at src/libcore/option.rs:1203
14: 0x55cddd4df6a8 - neovide::renderer::rendered_window::build_window_surface::h207c6cbb4befbc2f
at /usr/src/rustc-1.43.0/src/libcore/option.rs:347
15: 0x55cddd4df6a8 - neovide::renderer::rendered_window::build_window_surface_with_grid_size::he84f9c4b4300cffe
at src/renderer/rendered_window.rs:52
16: 0x55cddd470f0a - neovide::renderer::rendered_window::SurfacePair::new::h31e703ad15e66adc
at src/renderer/rendered_window.rs:62
17: 0x55cddd470f0a - neovide::renderer::rendered_window::RenderedWindow::new::h9c0c0dbd41bec91e
at src/renderer/rendered_window.rs:166
18: 0x55cddd470f0a - neovide::renderer::Renderer::handle_draw_command::h6587c3a35b18e0a4
at src/renderer/mod.rs:230
19: 0x55cddd470f0a - neovide::renderer::Renderer::draw_frame::h0a47fb4f8b565d96
at src/renderer/mod.rs:280
20: 0x55cddd4a03e6 - neovide::window::window_wrapper::Sdl2WindowWrapper::draw_frame::hb23bdc84e98da261
at src/window/sdl2/mod.rs:370
21: 0x55cddd4a03e6 - neovide::window::window_wrapper::start_loop::h4085eb4b80a3ddca
at src/window/sdl2/mod.rs:469
22: 0x55cddd4f1f30 - neovide::main::hf6228aaafea6052c
at src/window/mod.rs:112
23: 0x55cddd4fe883 - std::rt::lang_start::{{closure}}::h6245cdbbbb045ac1
at /usr/src/rustc-1.43.0/src/libstd/rt.rs:67
24: 0x55cddd4ec093 - main
25: 0x7f46b24f20b3 - __libc_start_main
26: 0x55cddd46f41e - _start
27: 0x0 - <unknown>
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 10
- Comments: 36 (6 by maintainers)
still experiencing the error on v0.7.0 arch linux gpu : intel uhd 630 using mesa vulkan vkube works
+1 having a same issue here:
OS: Arch Linux x86_64 Kernel: 5.11.12-arch1-1 GPU: NVIDIA GeForce RTX 2070
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.
Same issue
OS: Arch Kernel: 5.11.12-arch1-1 GPU: NVIDIA GeForce GTX 1050 Ti
OS: Arch Linux Kernel: 5.11.12-arch1-1 GPU: Nvidia GTX1060
I realised that it crashes instantly only if an otb font is set but works fine otherwise.
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 https://github.com/Kethku/neovide/issues/491 which is my actual hope for fixing this.
I have the same issue.
I have a discrete Nvidia GPU.
vkcube
works fine.same here (output is the same as comment above, so I’m not posting it again)
I tried both
neovide
andneovide-git
with the same result.it opens the window bot then closes immidiatly after without drawing anything (my WM makes space for the window but then the window closes)
OS: arch Linux Kernel: 5.11.11-arch1-1 GPU: N/A