None of the examples seem to work for me when using wayland. The window never becomes visible.
When running my own app that uses glutin, it panics on startup (only on Wayland, Xorg works fine):
OpenGL version 4.5 (Core Profile) Mesa 19.2.1
thread '<unnamed>' panicked at 'Surface was not created with create_surface.', src/libcore/option.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
wl_display@1: error 0: invalid object 34
thread 'main' panicked at 'failed to dispatch wayland events: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/libcore/result.rs:1188:5
Everything worked great before 0.20.
This is on Ubuntu 19.10 with open source intel drivers. I can do a git bisect if you want.
Can you rerun with RUST_BACKTRACE=1?
@kaimast You should run examples from glutin, examples in winit for Wayland doesn't show anything, since they don't draw anything into a window. Could you test glutin examples?
@kaimast You should run examples from glutin, examples in winit for Wayland doesn't show anything, since they don't draw anything into a window. Could you test glutin examples?
While usually relevant advice, @kchibisov, in this case they are mentioning a panic when using glutin.
Okay so the glutin examples actually work for me which makes it even more confusing. My application seems to crash at EventLoop::run (probably when handling some resize event?).
Full output below:
[2020-01-12][12:47:56][quokka_client][INFO] Client started
OpenGL version 4.5 (Core Profile) Mesa 19.2.1
[2020-01-12][12:47:56][quokka_client::graphics::resources][DEBUG] Loading RGB image from /home/kai/.local/share/quokka-client/resources/grass.png
thread '<unnamed>' panicked at 'Surface was not created with create_surface.', src/libcore/option.rs:1188:5
stack backtrace:
0: 0x5617bbcf1ea4 - backtrace::backtrace::libunwind::trace::h257ee8fa702033a5
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: 0x5617bbcf1ea4 - backtrace::backtrace::trace_unsynchronized::h5f0627dd9ccaab6f
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: 0x5617bbcf1ea4 - std::sys_common::backtrace::_print_fmt::h4ed17834c4e5b6fe
at src/libstd/sys_common/backtrace.rs:84
3: 0x5617bbcf1ea4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h68dbadc0bcc77b5f
at src/libstd/sys_common/backtrace.rs:61
4: 0x5617bbd13f2c - core::fmt::write::hc38fdda30204d4dc
at src/libcore/fmt/mod.rs:1025
5: 0x5617bbceeea7 - std::io::Write::write_fmt::h0900d6e763137782
at src/libstd/io/mod.rs:1426
6: 0x5617bbcf404e - std::sys_common::backtrace::_print::h03ca3de8c1fabc8b
at src/libstd/sys_common/backtrace.rs:65
7: 0x5617bbcf404e - std::sys_common::backtrace::print::h0089c2a21e41632b
at src/libstd/sys_common/backtrace.rs:50
8: 0x5617bbcf404e - std::panicking::default_hook::{{closure}}::he2d2ff837d4de97e
at src/libstd/panicking.rs:193
9: 0x5617bbcf3d41 - std::panicking::default_hook::h2f717321fdee40b4
at src/libstd/panicking.rs:210
10: 0x5617bbcf472b - std::panicking::rust_panic_with_hook::h9d80a6967ad27edd
at src/libstd/panicking.rs:471
11: 0x5617bbcf42de - rust_begin_unwind
at src/libstd/panicking.rs:375
12: 0x5617bbd1024e - core::panicking::panic_fmt::h15ac915805b55762
at src/libcore/panicking.rs:84
13: 0x5617bbd102b7 - core::option::expect_failed::hd4d0805ce0f22e9f
at src/libcore/option.rs:1188
14: 0x5617bba40a4a - core::option::Option<T>::expect::h188533ac39f867d6
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libcore/option.rs:348
15: 0x5617bba2e0d0 - smithay_client_toolkit::surface::get_dpi_factor::h826a0f3ee7a55fec
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.6.4/src/surface.rs:99
16: 0x5617bb5a95e7 - winit::platform_impl::platform::wayland::window::Window::scale_factor::h0070a8b8fbbb9cb7
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/platform_impl/linux/wayland/window.rs:276
17: 0x5617bb598387 - winit::platform_impl::platform::Window::scale_factor::hc2b81a1d9d397c57
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/platform_impl/linux/mod.rs:348
18: 0x5617bb579cb6 - winit::window::Window::scale_factor::h7cf98ffe6a3846ec
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/window.rs:387
19: 0x5617bb5a4d6b - quokka_client::main::{{closure}}::ha9b04c1c528de43a
at client/src/main.rs:124
20: 0x5617bb5b31d5 - std::sys_common::backtrace::__rust_begin_short_backtrace::h851bfa92f1455f50
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/sys_common/backtrace.rs:136
21: 0x5617bb560485 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h406355bf88e280d9
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/thread/mod.rs:469
22: 0x5617bb57c8f3 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h2cffe212339138c2
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/panic.rs:318
23: 0x5617bb5bd581 - std::panicking::try::do_call::h2bc6dc1117278804
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/panicking.rs:292
24: 0x5617bbcf84ba - __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:78
25: 0x5617bb5bcf2e - std::panicking::try::h8ead05e51acf138e
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/panicking.rs:270
26: 0x5617bb57ca75 - std::panic::catch_unwind::hfee1f300b0883f22
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/panic.rs:394
27: 0x5617bb560269 - std::thread::Builder::spawn_unchecked::{{closure}}::h557a92177251aad0
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/thread/mod.rs:468
28: 0x5617bb60ef13 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd914db40da3c8ee2
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libcore/ops/function.rs:232
29: 0x5617bbce89cf - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::hbabfae4f70ab9609
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/liballoc/boxed.rs:1022
30: 0x5617bbcf7640 - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h8471b989095c2da7
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/liballoc/boxed.rs:1022
31: 0x5617bbcf7640 - std::sys_common::thread::start_thread::h0647e91c8800cb8c
at src/libstd/sys_common/thread.rs:13
32: 0x5617bbcf7640 - std::sys::unix::thread::Thread::new::thread_start::h3f42d1616b825de5
at src/libstd/sys/unix/thread.rs:80
33: 0x7fd99c201669 - start_thread
34: 0x7fd99c10f323 - clone
35: 0x0 - <unknown>
wl_display@1: error 0: invalid object 34
thread 'main' panicked at 'failed to dispatch wayland events: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', src/libcore/result.rs:1188:5
stack backtrace:
0: 0x5617bbcf1ea4 - backtrace::backtrace::libunwind::trace::h257ee8fa702033a5
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: 0x5617bbcf1ea4 - backtrace::backtrace::trace_unsynchronized::h5f0627dd9ccaab6f
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: 0x5617bbcf1ea4 - std::sys_common::backtrace::_print_fmt::h4ed17834c4e5b6fe
at src/libstd/sys_common/backtrace.rs:84
3: 0x5617bbcf1ea4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h68dbadc0bcc77b5f
at src/libstd/sys_common/backtrace.rs:61
4: 0x5617bbd13f2c - core::fmt::write::hc38fdda30204d4dc
at src/libcore/fmt/mod.rs:1025
5: 0x5617bbceeea7 - std::io::Write::write_fmt::h0900d6e763137782
at src/libstd/io/mod.rs:1426
6: 0x5617bbcf404e - std::sys_common::backtrace::_print::h03ca3de8c1fabc8b
at src/libstd/sys_common/backtrace.rs:65
7: 0x5617bbcf404e - std::sys_common::backtrace::print::h0089c2a21e41632b
at src/libstd/sys_common/backtrace.rs:50
8: 0x5617bbcf404e - std::panicking::default_hook::{{closure}}::he2d2ff837d4de97e
at src/libstd/panicking.rs:193
9: 0x5617bbcf3d41 - std::panicking::default_hook::h2f717321fdee40b4
at src/libstd/panicking.rs:210
10: 0x5617bbcf472b - std::panicking::rust_panic_with_hook::h9d80a6967ad27edd
at src/libstd/panicking.rs:471
11: 0x5617bbcf42de - rust_begin_unwind
at src/libstd/panicking.rs:375
12: 0x5617bbd1024e - core::panicking::panic_fmt::h15ac915805b55762
at src/libcore/panicking.rs:84
13: 0x5617bbd10347 - core::result::unwrap_failed::h7ee63907f56ec7cf
at src/libcore/result.rs:1188
14: 0x5617bb67bad8 - core::result::Result<T,E>::expect::hf7d40352ec0dd23e
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libcore/result.rs:983
15: 0x5617bb5f3c23 - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return::h2fd85f6e7c186c07
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/platform_impl/linux/wayland/event_loop.rs:480
16: 0x5617bb5f5d11 - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run::h0eec4b2125f39e28
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/platform_impl/linux/wayland/event_loop.rs:445
17: 0x5617bb5eab78 - winit::platform_impl::platform::EventLoop<T>::run::hf822ef89e2b6d8c4
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/platform_impl/linux/mod.rs:643
18: 0x5617bb595cae - winit::event_loop::EventLoop<T>::run::h7e80ff6c3dee5d6e
at /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/event_loop.rs:148
19: 0x5617bb5f6b7d - quokka_client::main::h945568c494b27491
at client/src/main.rs:164
20: 0x5617bb5eb540 - std::rt::lang_start::{{closure}}::hd3d46e3120b9e1ca
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/rt.rs:67
21: 0x5617bbcf4173 - std::rt::lang_start_internal::{{closure}}::hc3a7bf6141d6fb71
at src/libstd/rt.rs:52
22: 0x5617bbcf4173 - std::panicking::try::do_call::h1f3e9b1e5088796f
at src/libstd/panicking.rs:292
23: 0x5617bbcf84ba - __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:78
24: 0x5617bbcf4c80 - std::panicking::try::h9241957305334fb5
at src/libstd/panicking.rs:270
25: 0x5617bbcf4c80 - std::panic::catch_unwind::h6f26ed7457a3b67e
at src/libstd/panic.rs:394
26: 0x5617bbcf4c80 - std::rt::lang_start_internal::hf225ee90fc1b21bb
at src/libstd/rt.rs:51
27: 0x5617bb5eb519 - std::rt::lang_start::h8280d71e49a51548
at /rustc/0de96d37fbcc54978458c18f5067cd9817669bc8/src/libstd/rt.rs:67
28: 0x5617bb5f6dfa - main
29: 0x7fd99c0141e3 - __libc_start_main
30: 0x5617bb5571be - _start
31: 0x0 - <unknown>
Could we have the output of running the app with the env variable WAYLAND_DEBUG=1 as well? It looks like somehow the state of the wayland connection gets corrupted.
@vberger here, WAYLAND_DEBUG=1 and RUST_BACKTRACE=1
[2125096.356] -> [email protected]_registry(new id wl_registry@2)
[2125096.445] -> [email protected](new id wl_callback@3)
[2125096.779] [email protected]_id(3)
[2125096.837] [email protected](1, "wl_shm", 1)
[2125096.898] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[2125096.986] [email protected](2, "zwp_linux_dmabuf_v1", 3)
[2125097.117] [email protected](3, "wl_drm", 2)
[2125097.172] [email protected](4, "wl_compositor", 4)
[2125097.261] -> [email protected](4, "wl_compositor", 4, new id [unknown]@5)
[2125097.835] -> [email protected]_pool(new id wl_shm_pool@6, fd 15, 1024)
[2125098.354] -> [email protected](4352)
[2125098.527] -> [email protected](11008)
[2125102.943] -> [email protected](24320)
[2125103.066] -> [email protected](50944)
[2125103.195] -> [email protected](104192)
[2125103.406] -> [email protected](210688)
[2125108.041] -> [email protected](423680)
[2125113.217] -> [email protected](849664)
[2125121.924] -> [email protected](1701632)
[2125136.621] [email protected](5, "wl_subcompositor", 1)
[2125136.646] [email protected](6, "wl_data_device_manager", 3)
[2125136.656] [email protected](7, "zwlr_gamma_control_manager_v1", 1)
[2125136.664] [email protected](8, "gtk_primary_selection_device_manager", 1)
[2125136.673] [email protected](9, "zxdg_output_manager_v1", 3)
[2125136.690] [email protected](10, "org_kde_kwin_idle", 1)
[2125136.705] [email protected](11, "zwp_idle_inhibit_manager_v1", 1)
[2125136.723] [email protected](12, "zwlr_layer_shell_v1", 1)
[2125136.744] [email protected](13, "zxdg_shell_v6", 1)
[2125136.762] [email protected](14, "xdg_wm_base", 2)
[2125136.781] [email protected](15, "org_kde_kwin_server_decoration_manager", 1)
[2125136.801] [email protected](16, "zxdg_decoration_manager_v1", 1)
[2125136.821] [email protected](17, "zwp_relative_pointer_manager_v1", 1)
[2125136.846] -> [email protected](17, "zwp_relative_pointer_manager_v1", 1, new id [unknown]@7)
[2125136.884] [email protected](18, "zwp_pointer_constraints_v1", 1)
[2125136.910] -> [email protected](18, "zwp_pointer_constraints_v1", 1, new id [unknown]@8)
[2125136.940] [email protected](19, "wp_presentation", 1)
[2125136.963] [email protected](20, "zwlr_output_manager_v1", 1)
[2125136.984] [email protected](21, "zwlr_export_dmabuf_manager_v1", 1)
[2125137.006] [email protected](22, "zwlr_screencopy_manager_v1", 1)
[2125137.027] [email protected](23, "zwlr_data_control_manager_v1", 2)
[2125137.049] [email protected](24, "zwp_primary_selection_device_manager_v1", 1)
[2125137.070] [email protected](25, "zwp_virtual_keyboard_manager_v1", 1)
[2125137.092] [email protected](26, "zwlr_input_inhibit_manager_v1", 1)
[2125137.113] [email protected](27, "wl_seat", 7)
[2125137.140] -> [email protected](27, "wl_seat", 5, new id [unknown]@9)
[2125137.171] [email protected](28, "wl_output", 3)
[2125137.208] -> [email protected](28, "wl_output", 3, new id [unknown]@10)
[2125137.237] [email protected](23647)
[2125137.251] -> [email protected](new id wl_callback@3)
[2125137.383] [email protected]_id(3)
[2125137.397] [email protected](0)
[2125137.410] [email protected](1)
[2125137.419] [email protected](875708993)
[2125137.429] [email protected](875709016)
[2125137.438] [email protected]("seat0")
[2125137.449] [email protected](3)
[2125137.463] -> [email protected]_pointer(new id wl_pointer@11)
[2125137.479] -> [email protected]_surface(new id wl_surface@12)
[2125137.495] -> [email protected]_relative_pointer(new id zwp_relative_pointer_v1@13, wl_pointer@11)
[2125144.290] -> [email protected]_keyboard(new id wl_keyboard@14)
[2125144.313] [email protected](0, 0, 310, 170, 0, "Unknown", "0x05EC", 0)
[2125144.336] [email protected](3, 1920, 1080, 60020)
[2125144.351] [email protected](1)
[2125144.361] [email protected]()
[2125144.369] [email protected](23648)
[2125144.382] -> [email protected](4, "wl_compositor", 4, new id [unknown]@3)
[2125144.408] -> [email protected](5, "wl_subcompositor", 1, new id [unknown]@15)
[2125144.434] -> [email protected](1, "wl_shm", 1, new id [unknown]@16)
[2125144.456] -> [email protected](6, "wl_data_device_manager", 3, new id [unknown]@17)
[2125144.481] -> [email protected](14, "xdg_wm_base", 1, new id [unknown]@18)
[2125144.503] -> [email protected](16, "zxdg_decoration_manager_v1", 1, new id [unknown]@19)
[2125144.526] -> [email protected](new id wl_callback@20)
[2125144.734] [email protected]_id(20)
[2125144.744] [email protected](1, fd 15, 47187)
[2125146.394] [email protected]_info(50, 275)
[2125146.407] [email protected](0)
[2125146.413] [email protected](1)
[2125146.418] [email protected](875708993)
[2125146.422] [email protected](875709016)
[2125146.426] [email protected](23648)
[2125157.204] -> [email protected]_surface(new id wl_surface@20)
[2125157.231] -> [email protected]_surface(new id wl_surface@21)
[2125157.239] -> [email protected]_subsurface(new id wl_subsurface@22, wl_surface@21, wl_surface@20)
[2125157.251] -> [email protected]_surface(new id wl_surface@23)
[2125157.257] -> [email protected]_subsurface(new id wl_subsurface@24, wl_surface@23, wl_surface@20)
[2125157.272] -> [email protected]_surface(new id wl_surface@25)
[2125157.278] -> [email protected]_subsurface(new id wl_subsurface@26, wl_surface@25, wl_surface@20)
[2125157.293] -> [email protected]_surface(new id wl_surface@27)
[2125157.301] -> [email protected]_subsurface(new id wl_subsurface@28, wl_surface@27, wl_surface@20)
[2125157.317] -> [email protected]_surface(new id wl_surface@29)
[2125157.325] -> [email protected]_subsurface(new id wl_subsurface@30, wl_surface@29, wl_surface@20)
[2125157.359] -> [email protected]_pool(new id wl_shm_pool@31, fd 16, 128)
[2125157.392] -> [email protected]_pool(new id wl_shm_pool@32, fd 18, 128)
[2125157.435] -> [email protected]_pool(new id wl_shm_pool@33, fd 20, 1024)
[2125157.570] -> [email protected](4352)
[2125157.619] -> [email protected](11008)
[2125158.764] -> [email protected](24320)
[2125158.789] -> [email protected](50944)
[2125158.821] -> [email protected](104192)
[2125158.879] -> [email protected](210688)
[2125160.079] -> [email protected](423680)
[2125161.790] -> [email protected](849664)
[2125166.277] -> [email protected](1701632)
[2125177.427] -> [email protected]_xdg_surface(new id xdg_surface@34, wl_surface@20)
[2125177.449] -> [email protected]_toplevel(new id xdg_toplevel@35)
[2125177.457] -> [email protected]()
[2125177.462] -> [email protected]_min_size(2, 31)
[2125177.470] -> [email protected]_window_geometry(0, -30, 843, 846)
[2125177.483] -> [email protected]_toplevel_decoration(new id zxdg_toplevel_decoration_v1@36, xdg_toplevel@35)
[2125177.498] -> [email protected]_mode(2)
[2125177.508] -> [email protected]_surface(new id wl_surface@37)
[2125177.521] -> [email protected]_pointer(new id wl_pointer@38)
[2125177.533] -> [email protected]_min_size(2, 31)
[2125177.544] -> [email protected]_max_size(0, 0)
[2125177.555] -> [email protected]_mode()
[2125177.564] -> [email protected]_title("Neovide")
[2125177.574] -> [email protected]_min_size(2, 31)
[2125177.589] -> [email protected]_max_size(0, 0)
[2125177.604] -> [email protected](new id wl_callback@39)
[2125177.775] [email protected]_id(39)
[2125177.784] [email protected](23650)
[2125177.790] -> [email protected](23650)
[2125177.795] [email protected](23650)
[2125177.800] [email protected](0, 0, array)
[2125177.809] [email protected](2)
[2125177.814] [email protected](23649)
[2125177.819] -> [email protected]_configure(23649)
thread 'main' panicked at 'internal error: entered unreachable code', /home/ada/.cargo/registry/src/github.com-1ecc6299db9ec823/skulpin-0.5.1/src/renderer/window_support.rs:45:14
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: backtrace::backtrace::trace_unsynchronized
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:77
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
at src/libstd/sys_common/backtrace.rs:61
4: core::fmt::write
at src/libcore/fmt/mod.rs:1028
5: std::io::Write::write_fmt
at src/libstd/io/mod.rs:1412
6: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:65
7: std::sys_common::backtrace::print
at src/libstd/sys_common/backtrace.rs:50
8: std::panicking::default_hook::{{closure}}
at src/libstd/panicking.rs:188
9: std::panicking::default_hook
at src/libstd/panicking.rs:205
10: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:464
11: std::panicking::begin_panic
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/panicking.rs:400
12: skulpin::renderer::window_support::create_surface
at /home/ada/.cargo/registry/src/github.com-1ecc6299db9ec823/skulpin-0.5.1/src/renderer/window_support.rs:45
13: skulpin::renderer::device::VkDevice::new
at /home/ada/.cargo/registry/src/github.com-1ecc6299db9ec823/skulpin-0.5.1/src/renderer/device.rs:50
14: skulpin::renderer::renderer::Renderer::new
at /home/ada/.cargo/registry/src/github.com-1ecc6299db9ec823/skulpin-0.5.1/src/renderer/renderer.rs:249
15: skulpin::renderer::renderer::RendererBuilder::build
at /home/ada/.cargo/registry/src/github.com-1ecc6299db9ec823/skulpin-0.5.1/src/renderer/renderer.rs:163
16: neovide::window::ui_loop
at src/window.rs:59
17: std::rt::lang_start::{{closure}}
at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/libstd/rt.rs:61
18: std::rt::lang_start_internal::{{closure}}
at src/libstd/rt.rs:48
19: std::panicking::try::do_call
at src/libstd/panicking.rs:287
20: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:78
21: std::panicking::try
at src/libstd/panicking.rs:265
22: std::panic::catch_unwind
at src/libstd/panic.rs:396
23: std::rt::lang_start_internal
at src/libstd/rt.rs:47
24: main
25: __libc_start_main
26: _start
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
At neovide sha: b60132132e0e26d89c7fa8649310bf6f1726c6cb
.. and
extra/vulkan-intel 19.3.2-2 (2.0 MiB 7.2 MiB) (Installed)
Hmm, this panic originates from skulpin, not winit, and is not the same as the previous one. This one looks like a skulpin issue.
Sorry for the rate reply. Here's my output with WAYLAND_DEBUG=1:
[1478314.167] -> [email protected]_registry(new id wl_registry@2)
[1478314.224] -> [email protected](new id wl_callback@3)
[1478349.894] [email protected]_id(3)
[1478349.957] [email protected](1, "wl_drm", 2)
[1478349.988] [email protected](2, "wl_compositor", 4)
[1478350.009] -> [email protected](2, "wl_compositor", 4, new id [unknown]@4)
[1478350.035] [email protected](3, "wl_shm", 1)
[1478350.057] -> [email protected](3, "wl_shm", 1, new id [unknown]@5)
[1478350.396] -> [email protected]_pool(new id wl_shm_pool@6, fd 9, 1024)
[1478350.598] -> [email protected](4352)
[1478350.677] -> [email protected](11008)
[1478350.797] -> [email protected](24320)
[1478351.032] -> [email protected](50944)
[1478351.962] -> [email protected](104192)
[1478352.087] -> [email protected](210688)
[1478356.521] -> [email protected](423680)
[1478360.128] -> [email protected](849664)
[1478367.284] [email protected](4, "wl_output", 2)
[1478367.347] -> [email protected](4, "wl_output", 2, new id [unknown]@7)
[1478367.382] [email protected](5, "zxdg_output_manager_v1", 3)
[1478367.404] [email protected](6, "wl_data_device_manager", 3)
[1478367.424] [email protected](7, "gtk_primary_selection_device_manager", 1)
[1478367.444] [email protected](8, "wl_subcompositor", 1)
[1478367.466] [email protected](9, "xdg_wm_base", 2)
[1478367.486] [email protected](10, "zxdg_shell_v6", 1)
[1478367.507] [email protected](11, "wl_shell", 1)
[1478367.533] [email protected](12, "gtk_shell1", 3)
[1478367.555] [email protected](13, "wp_viewporter", 1)
[1478367.575] [email protected](14, "zwp_pointer_gestures_v1", 1)
[1478367.596] [email protected](15, "zwp_tablet_manager_v2", 1)
[1478367.616] [email protected](16, "wl_seat", 5)
[1478367.641] -> [email protected](16, "wl_seat", 5, new id [unknown]@8)
[1478367.680] [email protected](17, "zwp_relative_pointer_manager_v1", 1)
[1478367.697] -> [email protected](17, "zwp_relative_pointer_manager_v1", 1, new id [unknown]@9)
[1478367.718] [email protected](18, "zwp_pointer_constraints_v1", 1)
[1478367.733] -> [email protected](18, "zwp_pointer_constraints_v1", 1, new id [unknown]@10)
[1478367.753] [email protected](19, "zxdg_exporter_v1", 1)
[1478367.768] [email protected](20, "zxdg_importer_v1", 1)
[1478367.781] [email protected](21, "zwp_linux_dmabuf_v1", 3)
[1478367.795] [email protected](22, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[1478367.809] [email protected](23, "zwp_text_input_manager_v3", 1)
[1478367.823] [email protected](24, "gtk_text_input_manager", 1)
[1478367.837] [email protected](172344)
[1478367.847] -> [email protected](new id wl_callback@3)
[1478368.004] [email protected]_id(3)
[1478368.020] [email protected](0)
[1478368.028] [email protected](1)
[1478368.035] [email protected](0, 0, 310, 170, 0, "LGD", "0x055f", 0)
[1478368.069] [email protected](3, 1280, 720, 60004)
[1478368.087] [email protected](2)
[1478368.094] [email protected]()
[1478368.100] [email protected](3)
[1478368.109] -> [email protected]_pointer(new id wl_pointer@11)
[1478368.121] -> [email protected]_surface(new id wl_surface@12)
[1478368.132] -> [email protected]_relative_pointer(new id zwp_relative_pointer_v1@13, wl_pointer@11)
[1478389.000] -> [email protected]_keyboard(new id wl_keyboard@14)
[1478389.068] [email protected]("seat0")
[1478389.088] [email protected](172344)
[1478389.112] -> [email protected](2, "wl_compositor", 4, new id [unknown]@3)
[1478389.146] -> [email protected](8, "wl_subcompositor", 1, new id [unknown]@15)
[1478389.184] -> [email protected](3, "wl_shm", 1, new id [unknown]@16)
[1478389.236] -> [email protected](6, "wl_data_device_manager", 3, new id [unknown]@17)
[1478389.269] -> [email protected](9, "xdg_wm_base", 1, new id [unknown]@18)
[1478389.298] -> [email protected](new id wl_callback@19)
[1478390.038] [email protected]_id(19)
[1478390.083] [email protected](1, fd 9, 53565)
[1478393.870] [email protected]_info(33, 500)
[1478393.904] [email protected](0)
[1478393.929] [email protected](1)
[1478393.940] [email protected](172345)
[1478393.980] -> [email protected]_surface(new id wl_surface@19)
[1478394.005] -> [email protected]_surface(new id wl_surface@20)
[1478394.021] -> [email protected]_subsurface(new id wl_subsurface@21, wl_surface@20, wl_surface@19)
[1478394.046] -> [email protected]_surface(new id wl_surface@22)
[1478394.061] -> [email protected]_subsurface(new id wl_subsurface@23, wl_surface@22, wl_surface@19)
[1478394.091] -> [email protected]_surface(new id wl_surface@24)
[1478394.109] -> [email protected]_subsurface(new id wl_subsurface@25, wl_surface@24, wl_surface@19)
[1478394.539] -> [email protected]_surface(new id wl_surface@26)
[1478394.565] -> [email protected]_subsurface(new id wl_subsurface@27, wl_surface@26, wl_surface@19)
[1478394.592] -> [email protected]_surface(new id wl_surface@28)
[1478394.605] -> [email protected]_subsurface(new id wl_subsurface@29, wl_surface@28, wl_surface@19)
[1478394.669] -> [email protected]_pool(new id wl_shm_pool@30, fd 10, 128)
[1478394.728] -> [email protected]_pool(new id wl_shm_pool@31, fd 12, 128)
[1478394.860] -> [email protected]_pool(new id wl_shm_pool@32, fd 14, 1024)
[1478395.209] -> [email protected](4352)
[1478395.328] -> [email protected](11008)
[1478395.453] -> [email protected](24320)
[1478395.663] -> [email protected](50944)
[1478396.610] -> [email protected](104192)
[1478396.871] -> [email protected](210688)
[1478398.763] -> [email protected](423680)
[1478400.807] -> [email protected](849664)
[1478404.470] -> [email protected]_xdg_surface(new id xdg_surface@33, wl_surface@19)
[1478404.501] -> [email protected]_toplevel(new id xdg_toplevel@34)
[1478404.512] -> [email protected]()
[1478404.519] -> [email protected]_min_size(2, 31)
[1478404.531] -> [email protected]_window_geometry(0, -30, 1024, 798)
[1478404.552] -> [email protected]_surface(new id wl_surface@35)
[1478404.563] -> [email protected]_pointer(new id wl_pointer@36)
[1478404.573] -> [email protected]_min_size(2, 31)
[1478404.583] -> [email protected]_max_size(0, 0)
[1478404.595] -> [email protected]_title("Shattered Worlds (Pre-Alpha 0.1)")
[1478404.603] -> [email protected]_min_size(800, 630)
[1478404.613] -> [email protected]_max_size(0, 0)
[1478404.626] -> [email protected](new id wl_callback@37)
[1478424.745] [email protected]_id(37)
[1478424.816] [email protected](0, 0, array)
[1478424.847] [email protected](172346)
[1478424.862] -> [email protected]_configure(172346)
[1478424.880] [email protected](172346)
[1478426.967] -> [email protected]_registry(new id wl_registry@37)
[1478426.994] -> [email protected](new id wl_callback@38)
[1478427.168] [email protected]_id(38)
[1478427.187] [email protected](1, "wl_drm", 2)
[1478427.209] -> [email protected](1, "wl_drm", 2, new id [unknown]@39)
[1478427.233] [email protected](2, "wl_compositor", 4)
[1478427.250] [email protected](3, "wl_shm", 1)
[1478427.267] [email protected](4, "wl_output", 2)
[1478427.283] [email protected](5, "zxdg_output_manager_v1", 3)
[1478427.300] [email protected](6, "wl_data_device_manager", 3)
[1478427.316] [email protected](7, "gtk_primary_selection_device_manager", 1)
[1478427.333] [email protected](8, "wl_subcompositor", 1)
[1478427.349] [email protected](9, "xdg_wm_base", 2)
[1478427.366] [email protected](10, "zxdg_shell_v6", 1)
[1478427.382] [email protected](11, "wl_shell", 1)
[1478427.399] [email protected](12, "gtk_shell1", 3)
[1478427.415] [email protected](13, "wp_viewporter", 1)
[1478427.432] [email protected](14, "zwp_pointer_gestures_v1", 1)
[1478427.448] [email protected](15, "zwp_tablet_manager_v2", 1)
[1478427.465] [email protected](16, "wl_seat", 5)
[1478427.481] [email protected](17, "zwp_relative_pointer_manager_v1", 1)
[1478427.498] [email protected](18, "zwp_pointer_constraints_v1", 1)
[1478427.514] [email protected](19, "zxdg_exporter_v1", 1)
[1478427.545] [email protected](20, "zxdg_importer_v1", 1)
[1478427.561] [email protected](21, "zwp_linux_dmabuf_v1", 3)
[1478427.578] -> [email protected](21, "zwp_linux_dmabuf_v1", 3, new id [unknown]@40)
[1478427.602] [email protected](22, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[1478427.618] [email protected](23, "zwp_text_input_manager_v3", 1)
[1478427.635] [email protected](24, "gtk_text_input_manager", 1)
[1478427.651] [email protected](172346)
[1478427.660] -> [email protected](new id wl_callback@38)
[1478427.873] [email protected]_id(38)
[1478427.892] [email protected]("/dev/dri/card0")
[1478427.959] -> [email protected](4)
[1478427.971] [email protected](875713089)
[1478427.979] [email protected](875713112)
[1478427.987] [email protected](909199186)
[1478427.995] [email protected](961959257)
[1478428.003] [email protected](825316697)
[1478428.011] [email protected](842093913)
[1478428.019] [email protected](909202777)
[1478428.027] [email protected](875713881)
[1478428.034] [email protected](842094158)
[1478428.042] [email protected](909203022)
[1478428.050] [email protected](1448695129)
[1478428.058] [email protected](1)
[1478428.066] [email protected](875713089)
[1478428.074] [email protected](875713089, 0, 0)
[1478428.096] [email protected](875713089, 16777216, 1)
[1478428.119] [email protected](875713089, 16777216, 2)
[1478428.141] [email protected](875713112)
[1478428.150] [email protected](875713112, 0, 0)
[1478428.166] [email protected](875713112, 16777216, 1)
[1478428.183] [email protected](875713112, 16777216, 2)
[1478428.199] [email protected](808669761)
[1478428.207] [email protected](808669761, 0, 0)
[1478428.223] [email protected](808669761, 16777216, 1)
[1478428.240] [email protected](808669761, 16777216, 2)
[1478428.256] [email protected](909199186)
[1478428.264] [email protected](909199186, 0, 0)
[1478428.281] [email protected](909199186, 16777216, 1)
[1478428.297] [email protected](909199186, 16777216, 2)
[1478428.314] [email protected](172346)
[1478428.323] -> [email protected](new id wl_callback@38)
[1478428.436] [email protected]_id(38)
[1478428.454] [email protected]()
[1478428.461] [email protected](172346)
[2020-01-31][12:23:18][quokka_client][INFO] Client started
[1478444.981] -> [email protected](173184)
OpenGL version 4.5 (Core Profile) Mesa 19.2.8
[2020-01-31][12:23:18][quokka_client::graphics::resources][DEBUG] Loading RGB image from /home/kai/.local/share/quokka-client/resources/grass.png
[1478454.244] -> [email protected]_buffer(new id wl_buffer@38, 0, 1024, 30, 4096, 0)
[1478454.317] -> [email protected]_position(0, -30)
[1478454.336] -> [email protected](wl_buffer@38, 0, 0)
[1478454.357] -> [email protected]_buffer(0, 0, 1024, 30)
[1478454.382] -> [email protected]()
[1478454.530] -> [email protected]_buffer(new id wl_buffer@41, 122880, 1048, 12, 4192, 0)
[1478454.586] -> [email protected]_position(-12, -42)
[1478454.605] -> [email protected](wl_buffer@41, 0, 0)
[1478454.633] -> [email protected]_buffer(0, 0, 1048, 12)
[1478454.668] -> [email protected]()
[1478454.682] -> [email protected]_buffer(new id wl_buffer@42, 122880, 1048, 12, 4192, 0)
[1478454.730] -> [email protected]_position(-12, 768)
[1478454.747] -> [email protected](wl_buffer@42, 0, 0)
[1478454.768] -> [email protected]_buffer(0, 0, 1048, 12)
[1478454.795] -> [email protected]()
[1478454.806] -> [email protected]_buffer(new id wl_buffer@43, 122880, 12, 798, 48, 0)
[1478454.851] -> [email protected]_position(-12, -30)
[1478454.865] -> [email protected](wl_buffer@43, 0, 0)
[1478454.886] -> [email protected]_buffer(0, 0, 12, 798)
[1478454.911] -> [email protected]()
[1478454.920] -> [email protected]_buffer(new id wl_buffer@44, 122880, 12, 798, 48, 0)
[1478454.970] -> [email protected]_position(1024, -30)
[1478454.992] -> [email protected](wl_buffer@44, 0, 0)
[1478455.021] -> [email protected]_buffer(0, 0, 12, 798)
[1478455.049] -> [email protected]()
thread '<unnamed>' panicked at 'Surface was not created with create_surface.', /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/smithay-client-toolkit-0.6.4/src/surface.rs:99:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1478466.904] -> [email protected]()
[1478466.940] -> [email protected]()
[1478466.955] -> [email protected]()
[1478466.975] -> [email protected]()
[1478467.009] -> [email protected]()
[1478467.025] -> [email protected]()
[1478488.694] [email protected]_id(36)
[1478488.748] [email protected]_id(30)
[1478488.756] [email protected]_id(34)
[1478488.763] [email protected]_id(33)
[1478488.771] [email protected]_id(19)
[1478488.778] [email protected]_id(31)
[1478488.785] [email protected](wl_display@1, 0, "invalid object 34")
wl_display@1: error 0: invalid object 34
thread 'main' panicked at 'failed to dispatch wayland events: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }', /home/kai/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0/src/platform_impl/linux/wayland/event_loop.rs:480:21
Weird. It seems to work for me now, but I am still on 0.20.0. Is there another crate that winit depends on that was updated recently?
I suspect this issue was actually the same as https://github.com/rust-windowing/winit/issues/1441, which was fixed by an update of SCTK.
Thanks @vberger. I will just close this for now.