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

Nightly build crashes on start on Ubuntu 23.04 #2552

Closed
i-ky opened this issue Aug 17, 2023 · 3 comments
Closed

Nightly build crashes on start on Ubuntu 23.04 #2552

i-ky opened this issue Aug 17, 2023 · 3 comments
Labels
C-bug Category: bug - something isn't working as it's supposed to

Comments

@i-ky
Copy link

i-ky commented Aug 17, 2023

Lapce Version

$ ./lapce --version
Lapce nightly-ad9a8e1

System information

Ubuntu 23.04

Describe the bug

Crash on start:

$ RUST_BACKTRACE=full ./lapce --wait
2023-08-17T11:30:04.255756Z ERROR lapce_app::keypress: Failed to load from "/home/i-ky/.config/lapce-nightly/keymaps.toml": no keymaps
2023-08-17T11:30:04.296314Z ERROR wgpu_core::device: surface configuration failed: incompatible window kind    
thread 'main' panicked at 'Error in Surface::configure: invalid surface', /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.15.1/src/backend/direct.rs:316:9
stack backtrace:
   0:     0x55e9624d04b1 - std::backtrace_rs::backtrace::libunwind::trace::h782cc21a5acaf6cb
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x55e9624d04b1 - std::backtrace_rs::backtrace::trace_unsynchronized::hc579eb24ab204515
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x55e9624d04b1 - std::sys_common::backtrace::_print_fmt::h7223525cfdbacda2
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x55e9624d04b1 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbd7d55b7108d2ab8
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x55e96117aeff - core::fmt::rt::Argument::fmt::hb4f4a02b9bd9dd49
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/core/src/fmt/rt.rs:138:9
   5:     0x55e96117aeff - core::fmt::write::h6d54cd7c9e155ec5
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/core/src/fmt/mod.rs:1094:21
   6:     0x55e9624a3c46 - std::io::Write::write_fmt::h6a453a71c692f63b
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/io/mod.rs:1713:15
   7:     0x55e9624d351f - std::sys_common::backtrace::_print::h1cbaa8b42678f928
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x55e9624d351f - std::sys_common::backtrace::print::h4ddf81241a51b337
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x55e9624d2cb0 - std::panicking::default_hook::{{closure}}::hff91f1f484ade5cd
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panicking.rs:269:22
  10:     0x55e9624d3daa - std::panicking::default_hook::h21f14afd59f7aef9
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panicking.rs:288:9
  11:     0x55e9624d3daa - std::panicking::rust_panic_with_hook::h45f66047b14c555c
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panicking.rs:705:13
  12:     0x55e9624d37b2 - std::panicking::begin_panic_handler::{{closure}}::h49d1a88ef0908eb4
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panicking.rs:597:13
  13:     0x55e9624d3716 - std::sys_common::backtrace::__rust_end_short_backtrace::hccebf9e57f8cc425
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/sys_common/backtrace.rs:151:18
  14:     0x55e9624d3701 - rust_begin_unwind
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panicking.rs:593:5
  15:     0x55e9610079f2 - core::panicking::panic_fmt::h54ec9d0e3180a83d
                               at /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/core/src/panicking.rs:67:14
  16:     0x55e962922548 - wgpu::backend::direct::Context::handle_error_fatal::hfbd54cfc88089b26
  17:     0x55e9629c8ef9 - <T as wgpu::context::DynContext>::surface_configure::hb84a7377c066b08e
  18:     0x55e962a28811 - wgpu::Surface::configure::hc8c2761e80be2a59
  19:     0x55e96134d2e0 - floem::renderer::Renderer::new::ha5b5c2821db3bc69
  20:     0x55e96158af2d - <floem::app_handle::AppHandle<V> as glazier::window::WinHandler>::connect::h1e01f36fdd5436e2
  21:     0x55e96144d92d - glazier::backend::x11::window::Window::connect::h4ade9c68a6fa70bf
  22:     0x55e96144bf5a - glazier::backend::x11::window::WindowBuilder::build::hae037475bc9c816b
  23:     0x55e961e88218 - lapce_app::app::AppData::create_windows::hb36d4c29f564baab
  24:     0x55e961e79a6c - lapce_app::app::launch::h6fbcd5b1239a1138
  25:     0x55e9610bb7d3 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcdebdad1188d7d8a
  26:     0x55e9610bbc49 - main
  27:     0x7f9b31623a90 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  28:     0x7f9b31623b49 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:360:3
  29:     0x55e9610bb37a - _start
  30:                0x0 - <unknown>

Additional information

Version 0.2.8 launches fine.

@i-ky i-ky added the C-bug Category: bug - something isn't working as it's supposed to label Aug 17, 2023
@i-ky
Copy link
Author

i-ky commented Aug 29, 2023

@theotheroracle, your issue seems different. Backtraces are very different. The fact that we both have "Failed to load from ..." errors does not mean anything, these errors seem non-fatal (your log goes on for four minutes after them). I would encourage you to file your issue separately.

@lilium724
Copy link

lilium724 commented Aug 29, 2023

The nightly version currently doesn't support Wayland, which is ubuntu's default window system (see #2417 )
You can see in your backtrace it tries to use x11, which is probably why you're getting this incompatible window kind error
Support for Wayland has been added as an experimental feature (#2562), but for now it only seems to work in debug mode, and it's still missing a bunch of features.

@i-ky
Copy link
Author

i-ky commented Aug 30, 2023

@lilium724, thank you for the comment! I am going to close this issue as it is basically a duplicate of #2417.

@i-ky i-ky closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug - something isn't working as it's supposed to
Projects
None yet
Development

No branches or pull requests

2 participants