Comments (5)
Both .unwrap()
errors were from wgpu and winit, so unfortunately Bevy can't do anything to improve them. Would you mind opening issues for wgpu and winit about this instead?
The error message first included in the issue are from winit:
thread 'main' panicked at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/seat/keyboard/mod.rs:315:41:
called `Result::unwrap()` on an `Err` value: XKBNotFound
The second is from wgpu:
thread 'main' panicked at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-0.19.4/src/instance.rs:521:39:
called `Option::unwrap()` on a `None` value
I'm going to close this issue since Bevy can't do much about it, but feel free to continue commenting if you have questions, or raise another issue if you have more problems!
from bevy.
Sorry wrong place for this.
Edit: Never mind I was redirected here again lol.
from bevy.
Hello! Is it possible to add the path to libxkbcommon.so
to LD_LIBRARY_PATH
? I think because you're using NixOS it is not discoverable by default.
Also check out this Stack Overflow question, which may provide possible solutions.
from bevy.
I tried adding, this as one of my env variable but the error stays the same.
LD_LIBRARY_PATH="/nix/store/n7d5jdjml3nrqa0bvp2pi7cjdkxrhb8p-libxkbcommon-1.5.0/lib/libxkbcommon.so";
from bevy.
Update I managed to make it work with this config. However the error was very unclear so we should probably change the unwrap to at least an except
with explanation. Same goes at the vulkan-loader side, without adding vulkan-loader at LD_LIBARY_PATH i got this error.
2024-05-21T02:09:35.924406Z INFO bevy_winit::system: Creating new window "App" (0v1)
thread 'main' panicked at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-0.19.4/src/instance.rs:521:39:
called `Option::unwrap()` on a `None` value
stack backtrace:
0: 0x7fb4bd536417 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h83d3e31f1809523c
1: 0x7fb4bd59ab80 - core::fmt::write::h76573a5842288faa
2: 0x7fb4bd5599b5 - std::io::Write::write_fmt::hb095d534967ab243
3: 0x7fb4bd5361e4 - std::sys_common::backtrace::print::h73765b495122298a
4: 0x7fb4bd5370a7 - std::panicking::default_hook::{{closure}}::hfad133b7877f7d1a
5: 0x7fb4bd536e07 - std::panicking::default_hook::hb7ccbed45ddd154f
6: 0x7fb4bd537708 - std::panicking::rust_panic_with_hook::h03308f3977d70e82
7: 0x7fb4bd5375ae - std::panicking::begin_panic_handler::{{closure}}::h6543c8dd74f459e9
8: 0x7fb4bd536646 - std::sys_common::backtrace::__rust_end_short_backtrace::h68617e661e847078
9: 0x7fb4bd537334 - rust_begin_unwind
10: 0x7fb4bd4fad55 - core::panicking::panic_fmt::hf7f647d933c4266a
11: 0x7fb4bd4fae13 - core::panicking::panic::h423064a40da58821
12: 0x7fb4bd4fb4d6 - core::option::unwrap_failed::hffb1e9e838106d36
13: 0x7fb4bfaaf9b2 - core::option::Option<T>::unwrap::h4b00b9768e10c5a7
at /build/rustc-1.77.1-src/library/core/src/option.rs:931:21
14: 0x7fb4bfaaf9b2 - wgpu_core::instance::<impl wgpu_core::global::Global<G>>::instance_create_surface::hf6152019ee2b4bf7
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-0.19.4/src/instance.rs:521:39
15: 0x7fb4bf9ec02a - <wgpu::backend::wgpu_core::ContextWgpuCore as wgpu::context::Context>::instance_create_surface::h007b59669e6e9854
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.19.4/src/backend/wgpu_core.rs:529:17
16: 0x7fb4bf9ec02a - <T as wgpu::context::DynContext>::instance_create_surface::h019b560c86605da9
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.19.4/src/context.rs:1995:40
17: 0x7fb4bfa0c48b - wgpu::Instance::create_surface_unsafe::h57d93827d21d0f8e
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.19.4/src/lib.rs:2052:35
18: 0x7fb4bf7b4e43 - wgpu::Instance::create_surface::h9880854811cd8e80
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.19.4/src/lib.rs:1985:31
19: 0x7fb4bf5c9fc4 - <bevy_render::RenderPlugin as bevy_app::plugin::Plugin>::build::{{closure}}::{{closure}}::h5e966b495cd8d008
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/lib.rs:275:29
20: 0x7fb4bf5c9fc4 - core::option::Option<T>::map::h1c8e0daa9afda784
at /build/rustc-1.77.1-src/library/core/src/option.rs:1072:29
21: 0x7fb4bf5c9fc4 - <bevy_render::RenderPlugin as bevy_app::plugin::Plugin>::build::{{closure}}::hd40087b2d41482ce
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/lib.rs:273:39
22: 0x7fb4bf5c9fc4 - futures_lite::future::block_on::{{closure}}::hb3aa544d16cbdc52
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:99:19
23: 0x7fb4bf5c9fc4 - std::thread::local::LocalKey<T>::try_with::h446fd164455ef80d
at /build/rustc-1.77.1-src/library/std/src/thread/local.rs:286:16
24: 0x7fb4bf5c9fc4 - std::thread::local::LocalKey<T>::with::h6aa94705e5a72339
at /build/rustc-1.77.1-src/library/std/src/thread/local.rs:262:9
25: 0x7fb4bf5c9fc4 - futures_lite::future::block_on::hf70d2c6da7a3309d
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:78:11
26: 0x7fb4bf750bd7 - <bevy_render::RenderPlugin as bevy_app::plugin::Plugin>::build::h420cb231dfba1024
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/lib.rs:312:21
27: 0x7fb4c038f9e8 - bevy_app::app::App::add_boxed_plugin::{{closure}}::ha9953f970f4d991c
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.13.2/src/app.rs:657:55
28: 0x7fb4c038f9e8 - core::ops::function::FnOnce::call_once::h99734c45857cac5b
at /build/rustc-1.77.1-src/library/core/src/ops/function.rs:250:5
29: 0x7fb4c038f9e8 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::he580d9c5d6062b68
at /build/rustc-1.77.1-src/library/core/src/panic/unwind_safe.rs:272:9
30: 0x7fb4c038f9e8 - std::panicking::try::do_call::hcb635a35215eeef3
at /build/rustc-1.77.1-src/library/std/src/panicking.rs:554:40
31: 0x7fb4c038f9e8 - std::panicking::try::hd2649b9c7b9b07fe
at /build/rustc-1.77.1-src/library/std/src/panicking.rs:518:19
32: 0x7fb4c038f9e8 - std::panic::catch_unwind::ha024a3f784107ab3
at /build/rustc-1.77.1-src/library/std/src/panic.rs:142:14
33: 0x7fb4c038f9e8 - bevy_app::app::App::add_boxed_plugin::hd3573e0bb203554e
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.13.2/src/app.rs:657:22
34: 0x7fb4c03a0f8b - bevy_app::plugin_group::PluginGroupBuilder::finish::hbb24b099fb1b7c12
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.13.2/src/plugin_group.rs:182:25
35: 0x5607d5784316 - <P as bevy_app::plugin::sealed::Plugins<bevy_app::plugin::sealed::PluginGroupMarker>>::add_to_app::h8f1e637616f392e3
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.13.2/src/plugin.rs:147:13
36: 0x5607d5784316 - bevy_app::app::App::add_plugins::h06a115627a1555ef
at /home/Dennis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_app-0.13.2/src/app.rs:756:9
37: 0x5607d5784316 - five_nights_at_clark::main::hdf00d60099c2e6a2
at /home/Dennis/Projects/five_nights_at_clark/src/ma
in.rs:4:5
38: 0x5607d5782d03 - core::ops::function::FnOnce::call_once::hdf7d4ae8854cccbc
at /build/rustc-1.77.1-src/library/core/src/ops/function.rs:250:5
39: 0x5607d5782d03 - std::sys_common::backtrace::__rust_begin_short_backtrace::hc596548f89cbe067
at /build/rustc-1.77.1-src/library/std/src/sys_common/backtrace.rs:155:18
40: 0x5607d5782199 - std::rt::lang_start::{{closure}}::he2a2f79f344bbe84
at /build/rustc-1.77.1-src/library/std/src/rt.rs:166:18
41: 0x7fb4bd5371a4 - std::panicking::try::hbc3e77d512204ae2
42: 0x7fb4bd51595b - std::rt::lang_start_internal::hf04efd76000e5213
43: 0x5607d57843bc - main
44: 0x7fb4bd2f310e - __libc_start_call_main
45: 0x7fb4bd2f31c9 - __libc_start_main@@GLIBC_2.34
46: 0x5607d57820a5 - _start
47: 0x0 - <unknown>
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
packages = with pkgs; [
cargo
rustc
rust-analyzer
rustfmt
clippy
gcc
alsa-lib
dbus
pkg-config
udev
wayland
libxkbcommon
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
# stdenv.cc.cc
pkgs.libxkbcommon
pkgs.vulkan-loader
];
env = {
RUST_BACKTRACE = "full";
WINIT_UNIX_BACKEND="wayland";
};
}
from bevy.
Related Issues (20)
- Support user interaction in `ci_testing` HOT 1
- UI Node's transform is sometimes incorrectly calculated HOT 17
- Setting 'Specular Transmission' to a value higher than 0.0 on a standard material (or ext material) -> it wont write to depth buffer HOT 1
- Adding VolumetricLight makes objects near the camera brighter HOT 1
- Re-using transform in other apps requires a lot of deps HOT 2
- bevy_app doesn't compile without default features
- Implement `Reflect` for all `bevy_math` types HOT 1
- ComputedStates are not linked from the `States` documentation
- Debugger Remix: Terminal outputting ALSA function 'snd_pcm_poll_descriptors' failed with error 'UnknownErrno: Unknown errno'
- Examples should use the `From<Color>` impl for `StandardMaterial`? HOT 2
- Lightmaps break when deferred rendering is enabled HOT 1
- STATUS_ACCESS_VIOLATION in CorePipelinePlugin HOT 13
- Allow me to rotate a UiImage node or ui texture HOT 1
- Panic when `bevy_pbr` feature is not included
- SyncEntityPool Proposal HOT 1
- Docs for `NextState` are outdated HOT 1
- Increase default font size HOT 4
- Buttons do not update in color_grading example
- Range<f32> is reflectable but not serializable
- when will this support the mmd? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.