-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
On commit a05417c, when running this with the command suggested in the readme, I get the following error.
thread 'main' panicked at /home/osh/.local/share/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-25.0.2/src/api/instance.rs:117:13:
No wgpu backend feature that is implemented for the target platform was enabled. See `wgpu::Instance::enabled_backend_features()` for more information.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
It seems that wgpu, a dependency of egui, has all its default features disabled. This is why no backend is compiled into it. I found a fix by forcefully enabled the features in the Cargo.toml:
diff --git a/analyser-gui/Cargo.toml b/analyser-gui/Cargo.toml
index 7879bf1..2c7297f 100644
--- a/analyser-gui/Cargo.toml
+++ b/analyser-gui/Cargo.toml
@@ -12,6 +12,9 @@ dump-analyser = { path = "../analyser" }
egui = { version = "0.32.0", features = ["rayon"] }
egui_plot = "0.33.0"
egui_extras = "0.32.0"
+wgpu = { version = "25.0.0", features = [
+ "gles",
+] }
eframe = { version = "0.32.0", default-features = false, features = [
"x11",
"wgpu",However, to me, this does not seem like the most elegant solution.
I have tested this on both Hyprland
$ fastfetch
-` osh@oshlaptop
.o+` -------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: 20YDS00G00 (ThinkPad E14 Gen 3)
`+oooooo: Kernel: Linux 6.15.9-arch1-1
-+oooooo+: Uptime: 20 hours, 21 mins
`/:-:++oooo+: Packages: 2400 (pacman)
`/++++/+++++++: Shell: zsh 5.9
`/++++++++++++++: Display (LEN40A9): 1920x1080 @ 60 Hz in 14" [Built-in]
`/+++ooooooooooooo/` DE: sway
./ooosssso++osssssso+` WM: Hyprland 0.50.1 (Wayland)
.oossssso-````/ossssss+` Theme: Arc-Dark [GTK2/3]
-osssssso. :ssssssso. Icons: breeze [GTK2/3]
:osssssss/ osssso+++. Font: Noto Sans (10pt) [GTK2/3]
/ossssssss/ +ssssooo/- Cursor: Breeze-Dark-Red (40px)
`/ossssso+/:- -:/+osssso+- Terminal: st 0.9.2
`+sso+:-` `.-/+oso: Terminal Font: Source Code Pro (12pt)
`++:. `-/+/ CPU: AMD Ryzen 5 5500U (12) @ 4.06 GHz
.` `/ GPU: AMD Lucienne [Integrated]
Memory: 4.60 GiB / 14.45 GiB (32%)
Swap: 11.84 MiB / 16.00 GiB (0%)
Battery (5B11C732): 95% [Charging, AC Connected]
Locale: de_DE.UTF-8
as well as a X11 setup
-` osh@oshlaptop
.o+` -------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: 20YDS00G00 (ThinkPad E14 Gen 3)
`+oooooo: Kernel: Linux 6.15.9-arch1-1
-+oooooo+: Uptime: 20 hours, 23 mins
`/:-:++oooo+: Packages: 2400 (pacman)
`/++++/+++++++: Shell: zsh 5.9
`/++++++++++++++: Display (eDP): 1920x1080 @ 60 Hz in 14"
`/+++ooooooooooooo/` WM: dwm (X11)
./ooosssso++osssssso+` Theme: Arc-Dark [GTK2/3]
.oossssso-````/ossssss+` Icons: breeze [GTK2/3]
-osssssso. :ssssssso. Font: Noto Sans (10pt) [GTK2/3]
:osssssss/ osssso+++. Cursor: Breeze-Dark-Red (40px)
/ossssssss/ +ssssooo/- Terminal: st 0.9.2
`/ossssso+/:- -:/+osssso+- Terminal Font: Source Code Pro (12pt)
`+sso+:-` `.-/+oso: CPU: AMD Ryzen 5 5500U (12) @ 4.06 GHz
`++:. `-/+/ GPU: AMD Lucienne [Integrated]
.` `/ Memory: 4.63 GiB / 14.45 GiB (32%)
Swap: 11.76 MiB / 16.00 GiB (0%)
Locale: de_DE.UTF-8
I get the same error on both setups.
Metadata
Metadata
Assignees
Labels
No labels