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)

Most upvoted comments

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 arch linux gpu : intel uhd 630 using mesa vulkan vkube works

Neovide version: 0.7.0
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

+1 having a same issue here:

λ ❯ 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:     0x564f475369a0 - <unknown>
   1:     0x564f4745d82c - <unknown>
   2:     0x564f47536221 - <unknown>
   3:     0x564f47535bc5 - <unknown>
   4:     0x564f475352aa - <unknown>
   5:     0x564f47554578 - <unknown>
   6:     0x564f475544ec - <unknown>
   7:     0x564f4755449d - <unknown>
   8:     0x564f4745bb90 - <unknown>
   9:     0x564f47461d32 - <unknown>
  10:     0x564f473a2c04 - <unknown>
  11:     0x564f4738e457 - <unknown>
  12:     0x564f47416500 - <unknown>
  13:     0x564f4740fc16 - `<unknown>`
  14:     0x564f4739bfe3 - <unknown>
  15:     0x564f4740c2e5 - <unknown>
  16:     0x7f625a9d2b25 - __libc_start_main
  17:     0x564f4738b78e - <unknown>
  18:                0x0 - <unknown>

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

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
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

OS: Arch Kernel: 5.11.12-arch1-1 GPU: NVIDIA GeForce GTX 1050 Ti

$ export RUST_BACKTRACE=full
$ neovide

Ignored client type property: "methods"
Ignored client type property: "attributes"
Ignored style attribute: "standout"
thread 'main' panicked at 'Could not create surface', src/renderer/rendered_window.rs:40:6
stack backtrace:
   0:     0x55a684a3b170 - <unknown>
   1:     0x55a68495f5fc - <unknown>
   2:     0x55a684a3a9e1 - <unknown>
   3:     0x55a684a3a345 - <unknown>
   4:     0x55a684a39a2a - <unknown>
   5:     0x55a684a58f28 - <unknown>
   6:     0x55a684a58e9c - <unknown>
   7:     0x55a684a58e4d - <unknown>
   8:     0x55a68495d950 - <unknown>
   9:     0x55a684963b02 - <unknown>
  10:     0x55a6848a2ea4 - <unknown>
  11:     0x55a6848ae64c - <unknown>
  12:     0x55a684a8ce30 - <unknown>
  13:     0x55a6849374b6 - <unknown>
  14:     0x55a6848daf03 - <unknown>
  15:     0x55a684933b85 - <unknown>
  16:     0x7f4e8587db25 - __libc_start_main
  17:     0x55a68488f77e - <unknown>
  18:                0x0 - <unknown>

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.

  ~  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:     0x55a8dba5e170 - <unknown>
   1:     0x55a8db9825fc - <unknown>
   2:     0x55a8dba5d9e1 - <unknown>
   3:     0x55a8dba5d345 - <unknown>
   4:     0x55a8dba5ca2a - <unknown>
   5:     0x55a8dba7bf28 - <unknown>
   6:     0x55a8dba7be9c - <unknown>
   7:     0x55a8dba7be4d - <unknown>
   8:     0x55a8db980950 - <unknown>
   9:     0x55a8db986b02 - <unknown>
  10:     0x55a8db8c5ea4 - <unknown>
  11:     0x55a8db8d0967 - <unknown>
  12:     0x55a8dbaafde0 - <unknown>
  13:     0x55a8db95a4b6 - <unknown>
  14:     0x55a8db8fdf03 - <unknown>
  15:     0x55a8db956b85 - <unknown>
  16:     0x7fb7a8331b25 - __libc_start_main
  17:     0x55a8db8b277e - <unknown>
  18:                0x0 - <unknown>

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 and neovide-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