Skip to content

another "ERROR wgpu_hal::vulkan::adapter" #69

Description

@derVedro

In 25.10 Ubuntu that uses only Wayland I encountered this errors:

installed from cargo
$ RUST_BACKTRACE=full ~/.cargo/bin/binocle file 
[destroyed object]: error 7: failed to import supplied dmabufs: Could not bind the given EGLImage to a CoglTexture2D
[2025-11-27T18:18:41Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_present_modes: ERROR_SURFACE_LOST_KHR
[2025-11-27T18:18:41Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_formats: ERROR_SURFACE_LOST_KHR

thread 'main' (56951) panicked at /home/me/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-core-0.16.1/src/device/mod.rs:5384:21:
internal error: entered unreachable code: Fallback system failed to choose present mode. This is a bug. Mode: AutoVsync, Options: []
stack backtrace:
   0:     0x63266e4230c2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h4e0a3aeea0f9c085
   1:     0x63266e43632f - core::fmt::write::hecf68a131630c74d
   2:     0x63266e3f4481 - std::io::Write::write_fmt::h93c9a261259c931a
   3:     0x63266e3ff532 - std::sys::backtrace::BacktraceLock::print::h75160192768e5621
   4:     0x63266e402a3f - std::panicking::default_hook::{{closure}}::h14d82797cfb1ddcb
   5:     0x63266e402899 - std::panicking::default_hook::h63f9bf8161c5d325
   6:     0x63266e4030c5 - std::panicking::panic_with_hook::h3173740e06bd0752
   7:     0x63266e402f5a - std::panicking::panic_handler::{{closure}}::hbac492c61eb56a87
   8:     0x63266e3ff679 - std::sys::backtrace::__rust_end_short_backtrace::haa3eac3df9535320
   9:     0x63266e3e7efd - __rustc[de0091b922c53d7e]::rust_begin_unwind
  10:     0x63266e440a50 - core::panicking::panic_fmt::h5138da2ef87be35b
  11:     0x63266e252933 - wgpu_core::device::<impl wgpu_core::hub::Global<G>>::surface_configure::validate_surface_configuration::h574203dd7463b70f
  12:     0x63266e10fb48 - wgpu_core::device::<impl wgpu_core::hub::Global<G>>::surface_configure::h8a7fae22b3791abe
  13:     0x63266e1caeed - <wgpu::backend::direct::Context as wgpu::context::Context>::surface_configure::h6ad1b915da0afbcd
  14:     0x63266e1be733 - <T as wgpu::context::DynContext>::surface_configure::h3bfc3ca16ff5edad
  15:     0x63266e0e69a1 - wgpu::Surface::configure::hc674851344caec8b
  16:     0x63266e0df856 - pixels::Pixels::resize_surface::h88770418f6ac46e8
  17:     0x63266de643d9 - binocle::event_loop::run::{{closure}}::h1b2bf61eda081efe
  18:     0x63266de34408 - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return::hc3cd55342c892320
  19:     0x63266de380ad - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run::hc81e0c1f7a0ef791
  20:     0x63266de5fb2c - winit::platform_impl::platform::EventLoop<T>::run::h8d543d6c0fe1b773
  21:     0x63266de1c835 - binocle::main::hafc96d7d488c9682
  22:     0x63266de244b3 - std::sys::backtrace::__rust_begin_short_backtrace::hdf6cc518ecdbd187
  23:     0x63266de50d6d - std::rt::lang_start::{{closure}}::hfc7d3e39fd026dde
  24:     0x63266e3f63e0 - std::rt::lang_start_internal::hce2b8b328837374b
  25:     0x63266de1ce35 - main
  26:     0x773f3382a575 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  27:     0x773f3382a628 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:360:3
  28:     0x63266de00155 - _start
  29:                0x0 - <unknown>
warning: queue 0x63267c11ca30 destroyed while proxies still attached:
  wl_buffer#109 still attached
  wl_buffer#108 still attached
  wl_buffer#107 still attached
  wl_buffer#106 still attached
  wl_buffer#42 still attached
  wl_buffer#41 still attached
  wl_buffer#39 still attached
  wl_buffer#40 still attached
  wl_subsurface#34 still attached
  wl_surface#33 still attached
  wl_subsurface#32 still attached
  wl_surface#31 still attached
  wl_subsurface#30 still attached
  wl_surface#29 still attached
  wl_subsurface#28 still attached
  wl_surface#27 still attached
  wl_subsurface#26 still attached
  wl_surface#25 still attached
  xdg_wm_base#23 still attached
  xdg_activation_v1#15 still attached
  zwp_text_input_manager_v3#14 still attached
  zwp_pointer_constraints_v1#13 still attached
  zwp_relative_pointer_manager_v1#12 still attached
  wl_seat#11 still attached
  wp_fractional_scale_manager_v1#10 still attached
  wp_viewporter#9 still attached
  wl_subcompositor#8 still attached
  wl_output#7 still attached
  wl_output#6 still attached
  wl_shm#5 still attached
  wl_compositor#4 still attached
  wl_registry#2 still attached
linux-musl
$ RUST_BACKTRACE=full ./binocle file 
thread 'main' panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.7/src/platform_impl/linux/mod.rs:757:9:
Failed to initialize any backend! Wayland status: NoWaylandLib X11 status: LibraryOpenError(OpenError { kind: Library, detail: "opening library failed (Dynamic loading not supported); opening library failed (Dynamic loading not supported)" })
stack backtrace:
   0:     0x7ef5658b2abc - std::backtrace_rs::backtrace::libunwind::trace::h81b367832b3e642f
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7ef5658b2abc - std::backtrace_rs::backtrace::trace_unsynchronized::h618986e75b3b9ca2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7ef5658b2abc - std::sys_common::backtrace::_print_fmt::h1847d9ff7c6cf3f3
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x7ef5658b2abc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha16b321ccf4a8ba0
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7ef5658f6dfc - core::fmt::rt::Argument::fmt::h8231dd52463fb384
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/fmt/rt.rs:138:9
   5:     0x7ef5658f6dfc - core::fmt::write::h08582f3f681c204a
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/fmt/mod.rs:1114:21
   6:     0x7ef5658af76e - std::io::Write::write_fmt::h461da2327f882c7f
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/io/mod.rs:1763:15
   7:     0x7ef5658b28a4 - std::sys_common::backtrace::_print::h73cc968a21ee9ea2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7ef5658b28a4 - std::sys_common::backtrace::print::hdb45b7c358bf5de2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7ef5658b3e23 - std::panicking::default_hook::{{closure}}::h6244ad222a505bfe
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:272:22
  10:     0x7ef5658b3b44 - std::panicking::default_hook::hf3be69941a926400
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:292:9
  11:     0x7ef5658b43a5 - std::panicking::rust_panic_with_hook::h06112bf18cdcb648
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:731:13
  12:     0x7ef5658b42a1 - std::panicking::begin_panic_handler::{{closure}}::h4e70ee0189883c0e
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:609:13
  13:     0x7ef5658b2fe6 - std::sys_common::backtrace::__rust_end_short_backtrace::hf1743efae4f296db
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:170:18
  14:     0x7ef5658b3ff2 - rust_begin_unwind
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:597:5
  15:     0x7ef5652b1795 - core::panicking::panic_fmt::h2e5f07c346294b4e
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:72:14
  16:     0x7ef5652bda7b - binocle::event_loop::run::h4d32ffb381f04ce7
  17:     0x7ef5652de803 - binocle::main::hf15c38789a57e5a0
  18:     0x7ef5652d69c3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h52a4ac4e31e74a49
  19:     0x7ef5652de9cd - std::rt::lang_start::{{closure}}::h2bb172c999ab6b7b
  20:     0x7ef5658aa4c2 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h82652f9ce79fee66
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/ops/function.rs:284:13
  21:     0x7ef5658aa4c2 - std::panicking::try::do_call::he4b5337a350acea1
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
  22:     0x7ef5658aa4c2 - std::panicking::try::hd48750cb63f7f01f
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
  23:     0x7ef5658aa4c2 - std::panic::catch_unwind::h81e9ecf5c019a4bd
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
  24:     0x7ef5658aa4c2 - std::rt::lang_start_internal::{{closure}}::hef99b32d530f302f
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:48
  25:     0x7ef5658aa4c2 - std::panicking::try::do_call::h223c3327abf6d3d9
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
  26:     0x7ef5658aa4c2 - std::panicking::try::ha6263cc242c2d045
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
  27:     0x7ef5658aa4c2 - std::panic::catch_unwind::h38c8a27284d90e98
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
  28:     0x7ef5658aa4c2 - std::rt::lang_start_internal::h2d2b3c117ba7283e
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:20
  29:     0x7ef5652de995 - main
linux-gnu
$ RUST_BACKTRACE=full ./binocle  file
[destroyed object]: error 7: failed to import supplied dmabufs: Could not bind the given EGLImage to a CoglTexture2D
[2025-11-27T18:17:37Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_present_modes: ERROR_SURFACE_LOST_KHR
[2025-11-27T18:17:37Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_formats: ERROR_SURFACE_LOST_KHR
thread 'main' panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-0.16.1/src/device/mod.rs:5384:21:
internal error: entered unreachable code: Fallback system failed to choose present mode. This is a bug. Mode: AutoVsync, Options: []
stack backtrace:
   0:     0x61cc6e3161bc - std::backtrace_rs::backtrace::libunwind::trace::h67a838aed1f4d6ec
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x61cc6e3161bc - std::backtrace_rs::backtrace::trace_unsynchronized::h1d1786bb1962baf8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x61cc6e3161bc - std::sys_common::backtrace::_print_fmt::h5a0b1f807a002d23
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:67:5
   3:     0x61cc6e3161bc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf84ab6ad0b91784c
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x61cc6e341a5c - core::fmt::rt::Argument::fmt::h28f463bd1fdabed5
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/fmt/rt.rs:138:9
   5:     0x61cc6e341a5c - core::fmt::write::ha37c23b175e921b3
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/fmt/mod.rs:1114:21
   6:     0x61cc6e312f5e - std::io::Write::write_fmt::haa1b000741bcbbe1
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/io/mod.rs:1763:15
   7:     0x61cc6e315fa4 - std::sys_common::backtrace::_print::h1ff1030b04dfb157
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x61cc6e315fa4 - std::sys_common::backtrace::print::hb982056c6f29541c
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x61cc6e317523 - std::panicking::default_hook::{{closure}}::h11f92f82c62fbd68
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:272:22
  10:     0x61cc6e317244 - std::panicking::default_hook::hb8810fe276772c66
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:292:9
  11:     0x61cc6e317aa5 - std::panicking::rust_panic_with_hook::hd2f0efd2fec86cb0
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:731:13
  12:     0x61cc6e3179a1 - std::panicking::begin_panic_handler::{{closure}}::h3651b7fc4f61d784
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:609:13
  13:     0x61cc6e3166e6 - std::sys_common::backtrace::__rust_end_short_backtrace::hbc468e4b98c7ae04
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:170:18
  14:     0x61cc6e3176f2 - rust_begin_unwind
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:597:5
  15:     0x61cc6dd14cb5 - core::panicking::panic_fmt::h979245e2fdb2fabd
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:72:14
  16:     0x61cc6e160b44 - wgpu_core::device::<impl wgpu_core::hub::Global<G>>::surface_configure::validate_surface_configuration::hf2f5fa2cc5b1d457
  17:     0x61cc6e04bc7b - wgpu_core::device::<impl wgpu_core::hub::Global<G>>::surface_configure::h4f941dd00fdbbcdb
  18:     0x61cc6e0d67cc - <wgpu::backend::direct::Context as wgpu::context::Context>::surface_configure::h98bdd00d40633096
  19:     0x61cc6e0e3f63 - <T as wgpu::context::DynContext>::surface_configure::hf6dadb73ec76512c
  20:     0x61cc6e0262c1 - wgpu::Surface::configure::hb1f160604fa7fa68
  21:     0x61cc6e011d6e - pixels::Pixels::resize_surface::h64e71f748d81cdb1
  22:     0x61cc6dd22f31 - binocle::event_loop::run::{{closure}}::h8127dbd37c104605
  23:     0x61cc6dd49ad2 - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run::h41d72b21a41002d6
  24:     0x61cc6dd1ecec - winit::platform_impl::platform::EventLoop<T>::run::h4ac83433e0b7d830
  25:     0x61cc6dd228dc - binocle::event_loop::run::h74fae1742b8cd7d3
  26:     0x61cc6dd41c03 - binocle::main::hc6ee1dfff2244d9b
  27:     0x61cc6dd39dc3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h4671b98331357ec2
  28:     0x61cc6dd5c84d - std::rt::lang_start::{{closure}}::h78d31fa2bf5861e0
  29:     0x61cc6e30db2b - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hf9057cfaeeb252e2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/ops/function.rs:284:13
  30:     0x61cc6e30db2b - std::panicking::try::do_call::h629e203a624883e4
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
  31:     0x61cc6e30db2b - std::panicking::try::h7b61614724d6a4f1
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
  32:     0x61cc6e30db2b - std::panic::catch_unwind::h354ac1c0268491d8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
  33:     0x61cc6e30db2b - std::rt::lang_start_internal::{{closure}}::h919fee3c5ba8f617
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:48
  34:     0x61cc6e30db2b - std::panicking::try::do_call::h54583f67455bff32
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
  35:     0x61cc6e30db2b - std::panicking::try::hb0e12c4e01d39dc2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
  36:     0x61cc6e30db2b - std::panic::catch_unwind::h367b6339e3ca9a3b
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
  37:     0x61cc6e30db2b - std::rt::lang_start_internal::ha5ce8533eaa0fda8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:20
  38:     0x61cc6dd41d95 - main
  39:     0x7bb84dc2a575 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  40:     0x7bb84dc2a628 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:360:3
  41:     0x61cc6dd15459 - _start
  42:                0x0 - <unknown>
warning: queue 0x61cc71f8c850 destroyed while proxies still attached:
  wl_buffer#109 still attached
  wl_buffer#108 still attached
  wl_buffer#107 still attached
  wl_buffer#106 still attached
  wl_buffer#42 still attached
  wl_buffer#41 still attached
  wl_buffer#39 still attached
  wl_buffer#40 still attached
  wl_subsurface#34 still attached
  wl_surface#33 still attached
  wl_subsurface#32 still attached
  wl_surface#31 still attached
  wl_subsurface#30 still attached
  wl_surface#29 still attached
  wl_subsurface#28 still attached
  wl_surface#27 still attached
  wl_subsurface#26 still attached
  wl_surface#25 still attached
  xdg_wm_base#23 still attached
  xdg_activation_v1#15 still attached
  zwp_text_input_manager_v3#14 still attached
  zwp_pointer_constraints_v1#13 still attached
  zwp_relative_pointer_manager_v1#12 still attached
  wl_seat#11 still attached
  wp_fractional_scale_manager_v1#10 still attached
  wp_viewporter#9 still attached
  wl_subcompositor#8 still attached
  wl_output#7 still attached
  wl_output#6 still attached
  wl_shm#5 still attached
  wl_compositor#4 still attached
  wl_registry#2 still attached

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions