Repository navigation
Open
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on
Description
When switching to wayland I get these errors:
warning: unused imports: `ObjectStorage`, `Renderer`, and `Window`
--> src/main.rs:1:36
|
1 | ...e, Renderer, ObjectStorage, /*ObjectSettings,*/ WindowDescriptor, PowerPreference}, Windo...
| ^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: `xero_time_calc` (bin "xero_time_calc") generated 1 warning (run `cargo fix --bin "xero_time_calc"` to apply 1 suggestion)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s
Running `/mnt/Windows10/Users/joe/Desktop/My made programs/Projects/Taggle Systems/xero_time_calc/target/debug/xero_time_calc`
[2024-11-15T06:06:16Z ERROR wgpu_hal::gles::egl] EGL 'eglMakeCurrent' code 0x3008: eglMakeCurrent
thread 'main' panicked at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-22.0.0/src/gles/egl.rs:296:14:
called `Result::unwrap()` on an `Err` value: BadDisplay
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2024-11-15T06:06:16Z ERROR wgpu_hal::gles::egl] EGL 'eglMakeCurrent' code 0x3008: eglMakeCurrent
thread 'main' panicked at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-22.0.0/src/gles/egl.rs:296:14:
called `Result::unwrap()` on an `Err` value: BadDisplay
stack backtrace:
0: 0x5c24fffd22aa - std::backtrace_rs::backtrace::libunwind::trace::h99efb0985cae5d78
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
1: 0x5c24fffd22aa - std::backtrace_rs::backtrace::trace_unsynchronized::he2c1aa63b3f7fad8
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x5c24fffd22aa - std::sys::backtrace::_print_fmt::h8a221d40f5e0f88b
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:66:9
3: 0x5c24fffd22aa - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h304520fd6a30aa07
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:39:26
4: 0x5c24ffffd05b - core::fmt::rt::Argument::fmt::h5da9c218ec984eaf
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/fmt/rt.rs:177:76
5: 0x5c24ffffd05b - core::fmt::write::hf5713710ce10ff22
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/fmt/mod.rs:1178:21
6: 0x5c24fffce103 - std::io::Write::write_fmt::hda708db57927dacf
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/io/mod.rs:1823:15
7: 0x5c24fffd3612 - std::sys::backtrace::BacktraceLock::print::hbcdbec4d97c91528
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:42:9
8: 0x5c24fffd3612 - std::panicking::default_hook::{{closure}}::he1ad87607d0c11c5
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:266:22
9: 0x5c24fffd327e - std::panicking::default_hook::h81c8cd2e7c59ee33
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:293:9
10: 0x5c24fffd3e9f - std::panicking::rust_panic_with_hook::had2118629c312a4a
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:797:13
11: 0x5c24fffd3b87 - std::panicking::begin_panic_handler::{{closure}}::h7fa5985d111bafa2
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:671:13
12: 0x5c24fffd2789 - std::sys::backtrace::__rust_end_short_backtrace::h704d151dbefa09c5
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:170:18
13: 0x5c24fffd3814 - rust_begin_unwind
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
14: 0x5c24fe449143 - core::panicking::panic_fmt::h3eea515d05f7a35e
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:74:14
15: 0x5c24fe4496f6 - core::result::unwrap_failed::h7c8d8bbbcf45dc13
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1677:5
16: 0x5c24ff6ffa9d - core::result::Result<T,E>::unwrap::h45808887a6bd811e
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1102:23
17: 0x5c24ff6ffa9d - wgpu_hal::gles::egl::EglContext::make_current::h18916c1be8f30f2c
at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-22.0.0/src/gles/egl.rs:294:9
18: 0x5c24ff6ffea2 - wgpu_hal::gles::egl::AdapterContext::lock::{{closure}}::h806c8e759d08dded
at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-22.0.0/src/gles/egl.rs:408:13
19: 0x5c24ff74fc4a - core::option::Option<T>::map::he55173d0a7f88499
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/option.rs:1105:29
20: 0x5c24ff6ffe36 - wgpu_hal::gles::egl::AdapterContext::lock::h80ed757d22cd8a11
at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-22.0.0/src/gles/egl.rs:407:19
21: 0x5c24ff777973 - wgpu_hal::gles::device::<impl wgpu_hal::Device for wgpu_hal::gles::Device>::destroy_sampler::h55e3153ae9e16aa9
at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-22.0.0/src/gles/device.rs:1102:19
22: 0x5c24ff5e9589 - <wgpu_core::resource::Sampler<A> as core::ops::drop::Drop>::drop::he893a8295473c6b2
at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-22.1.0/src/resource.rs:1738:17
23: 0x5c24ff59e3d7 - core::ptr::drop_in_place<wgpu_core::resource::Sampler<wgpu_hal::gles::Api>>::h952975027ea5c410
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
24: 0x5c24ff56516f - alloc::sync::Arc<T,A>::drop_slow::h015894b7381cf2ee
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/sync.rs:1831:18
25: 0x5c24ff56942a - <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop::hdbeb9c59dcf9920f
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/sync.rs:2524:13
26: 0x5c24ff58cf3b - core::ptr::drop_in_place<alloc::sync::Arc<wgpu_core::resource::Sampler<wgpu_hal::gles::Api>>>::h4292321e69ed23bc
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
27: 0x5c24ff58e755 - core::ptr::drop_in_place<wgpu_core::storage::Element<wgpu_core::resource::Sampler<wgpu_hal::gles::Api>>>::hb2d3f653bbd07dd6
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
28: 0x5c24ff590e30 - core::ptr::drop_in_place<[wgpu_core::storage::Element<wgpu_core::resource::Sampler<wgpu_hal::gles::Api>>]>::hda4fe4a4aa5cc5e5
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
29: 0x5c24ff55c0ce - alloc::vec::Vec<T,A>::clear::h31fa7aed9fbed19d
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/vec/mod.rs:2249:13
30: 0x5c24ff5ad705 - wgpu_core::hub::Hub<A>::clear::hc3faa4e748ff37d1
at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-22.1.0/src/hub.rs:231:9
31: 0x5c24ff5c4b27 - <wgpu_core::global::Global as core::ops::drop::Drop>::drop::h160d33d41f8fdae7
at /home/joe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-core-22.1.0/src/global.rs:152:13
32: 0x5c24ff382767 - core::ptr::drop_in_place<wgpu_core::global::Global>::h83e419bef56a1adf
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
33: 0x5c24ff3836e4 - core::ptr::drop_in_place<wgpu::backend::wgpu_core::ContextWgpuCore>::hca654bc0165c6692
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
34: 0x5c24ff382e7d - core::ptr::drop_in_place<dyn wgpu::context::DynContext>::h5869017522439198
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
35: 0x5c24ff3f3e5a - alloc::sync::Arc<T,A>::drop_slow::h8c08d0d3f0117818
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/sync.rs:1831:18
36: 0x5c24ff3f77a1 - <alloc::sync::Arc<T,A> as core::ops::drop::Drop>::drop::hb97974d37ee9d9c6
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/sync.rs:2524:13
37: 0x5c24ff38523b - core::ptr::drop_in_place<alloc::sync::Arc<dyn wgpu::context::DynContext>>::h73a1ad4773943fdd
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
38: 0x5c24fe947ce7 - core::ptr::drop_in_place<wgpu::BindGroup>::h387709b350ec2efd
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
39: 0x5c24fe94849f - core::ptr::drop_in_place<blue_engine::header::Camera>::h460c5c09734831ab
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
40: 0x5c24fe94a01c - core::ptr::drop_in_place<(alloc::sync::Arc<str>,blue_engine::header::Camera)>::h1cf71b8fb1ad4d18
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
41: 0x5c24fe8c245e - core::ptr::mut_ptr::<impl *mut T>::drop_in_place::h447aaaae6b75bbd1
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mut_ptr.rs:1368:18
42: 0x5c24fe8c245e - hashbrown::raw::Bucket<T>::drop::h7420818c97737f58
at /rust/deps/hashbrown-0.14.5/src/raw/mod.rs:590:23
43: 0x5c24fe8c245e - hashbrown::raw::RawTableInner::drop_elements::h39ea2df6a1c3397e
at /rust/deps/hashbrown-0.14.5/src/raw/mod.rs:2377:22
44: 0x5c24fe8c2d20 - hashbrown::raw::RawTableInner::drop_inner_table::hc825d1d7b928b698
at /rust/deps/hashbrown-0.14.5/src/raw/mod.rs:2432:17
45: 0x5c24fe8c1d5c - <hashbrown::raw::RawTable<T,A> as core::ops::drop::Drop>::drop::h6a6ff1a1c0e3c0aa
at /rust/deps/hashbrown-0.14.5/src/raw/mod.rs:3673:13
46: 0x5c24fe94654b - core::ptr::drop_in_place<hashbrown::raw::RawTable<(alloc::sync::Arc<str>,blue_engine::header::Camera)>>::h17b5a65f97f6a649
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
47: 0x5c24fe946dbb - core::ptr::drop_in_place<hashbrown::map::HashMap<alloc::sync::Arc<str>,blue_engine::header::Camera,std::hash::random::RandomState>>::h24bddfefe364030a
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
48: 0x5c24fe94680b - core::ptr::drop_in_place<std::collections::hash::map::HashMap<alloc::sync::Arc<str>,blue_engine::header::Camera>>::h218cdfafa0f280da
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
49: 0x5c24fe948e7b - core::ptr::drop_in_place<blue_engine::header::CameraContainer>::hf66bfc6b0611d73a
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
50: 0x5c24fe48faf8 - core::ptr::drop_in_place<blue_engine::header::Engine>::hbbcf98c52886a7d5
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ptr/mod.rs:574:1
51: 0x5c24fe4b9acc - xero_time_calc::main::hde90ee34acfff2e7
at /mnt/Windows10/Users/joe/Desktop/My made programs/Projects/Taggle Systems/xero_time_calc/src/main.rs:70:1
52: 0x5c24fe48de8b - core::ops::function::FnOnce::call_once::h4a5ef324c238d909
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
53: 0x5c24fe457bae - std::sys::backtrace::__rust_begin_short_backtrace::hb9ad49f034fcd883
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:154:18
54: 0x5c24fe45e4d1 - std::rt::lang_start::{{closure}}::h7b95e5c43035b1f6
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:164:18
55: 0x5c24fffc4f60 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h08ecba131ab90ec4
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:284:13
56: 0x5c24fffc4f60 - std::panicking::try::do_call::hf33a59fd8ce953f4
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
57: 0x5c24fffc4f60 - std::panicking::try::h5005ce80ce949fd8
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
58: 0x5c24fffc4f60 - std::panic::catch_unwind::hfbae19e2e2c5b7ed
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
59: 0x5c24fffc4f60 - std::rt::lang_start_internal::{{closure}}::ha0331c3690741813
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:143:48
60: 0x5c24fffc4f60 - std::panicking::try::do_call::hcdcbdb616b4d0295
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
61: 0x5c24fffc4f60 - std::panicking::try::h3f2f1725a07d2256
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
62: 0x5c24fffc4f60 - std::panic::catch_unwind::h51869e04b56b2dc3
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
63: 0x5c24fffc4f60 - std::rt::lang_start_internal::h4d90db0530245041
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:143:20
64: 0x5c24fe45e4aa - std::rt::lang_start::h1ed77a4c493f02b0
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:163:17
65: 0x5c24fe4b9e7e - main
66: 0x7bfb4621ce08 - <unknown>
67: 0x7bfb4621cecc - __libc_start_main
68: 0x5c24fe449cf5 - _start
69: 0x0 - <unknown>Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on
Activity
ElhamAryanpur commentedon Nov 15, 2024
This is not an engine issue, by most chances its driver problem
Raj2032 commentedon Nov 16, 2024
@ElhamAryanpur Actually its only to do with BlueEngine, I tried imgui through wgpu and egui demo and they don't have the same issue as blue engine does.
ElhamAryanpur commentedon Nov 16, 2024
@Raj2032 there was no error related to BE in the log that you posted. The closest relation was from an error by WGPU's GL backend that couldn't start.
Probably the wgpu couldn't get a context and run in an unknown environment, hence the assumption of a bad driver. Try using another backend, or set it to pick a default backend.
Raj2032 commentedon Nov 17, 2024
@ElhamAryanpur I used https://github.com/katharostech/NESImg
ANd that uses wgpu and opengl for backend. So still lost what may be the issue over here?
not too sure other backends vulkan causes a panick (happens with other gui projects as well so need to figure that one out).
ElhamAryanpur commentedon Nov 17, 2024
I see, I'm not sure tbh. I am sure it's not an engine issue since I'm using wayland as well and I can't reproduce your errors.
Raj2032 commentedon Nov 17, 2024
@ElhamAryanpur Yeah I don't get it, all though NESImg uses eframe as its backend which uses wgpu.
I assume maybe that your engine has an issue with amd graphics cards as I assume you use nvidia?
ElhamAryanpur commentedon Nov 17, 2024
Can you run one of the examples in this repository? Maybe triangle example
ElhamAryanpur commentedon Nov 17, 2024
And nah I use both Nvidia and AMD, shouldn't be the issue
Raj2032 commentedon Nov 17, 2024
Have you used amd on wayland? Are you using EndeavourOS and are you using SystemD boot? When you run
lspci -nnk | grep -i -EA3 "3d|display|vga"what is the output?Mine is:
I am using amdgpu drivers, not radeon. What driver are you using for amd graphics card?
You want me to run this on wayland?
ElhamAryanpur commentedon Nov 18, 2024
Those shouldn't matter much, drivers for both gpu and drivers are good enough for Vulkan and GL. Just try running the triangle example and see if it still errors?
Raj2032 commentedon Nov 19, 2024
@ElhamAryanpur Last time Vulkan never worked on radeon, only on amdgpu, also mentioned on Debian:
I ran the example on wayland using amdgpu driver and got these errors:
Also ran this:
Just in case there is something useful you can find.
ElhamAryanpur commentedon Nov 19, 2024
Possibly related to gfx-rs/wgpu/issues/5505
Raj2032 commentedon Nov 19, 2024
@ElhamAryanpur Ah right
What's weird is I am using
gtk-rsand that uses wgpu, weird that I have no issues on wayland.ElhamAryanpur commentedon Nov 20, 2024
Do they? I'm not sure then, perhaps different versions
Raj2032 commentedon Nov 20, 2024
@ElhamAryanpur My mistake, actually they use vulkan but not too sure about wgpu I should have read more carefully.
ElhamAryanpur commentedon Nov 21, 2024
@Raj2032 It's all good, lets keep this issue opened until theres a wgpu fix