-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugSomething is brokenSomething is broken
Description
cargo run on current main is not starting anymore. It seems like wgpu can't find a backend feature or something. 0.31.1 is working fine for me.
Log:
k@nixos ~/C/egui (main)> RUST_LOG=trace cargo run
Compiling emath v0.31.1 (/home/k/Coding/egui/crates/emath)
Compiling ecolor v0.31.1 (/home/k/Coding/egui/crates/ecolor)
Compiling epaint v0.31.1 (/home/k/Coding/egui/crates/epaint)
Compiling egui v0.31.1 (/home/k/Coding/egui/crates/egui)
Compiling egui-wgpu v0.31.1 (/home/k/Coding/egui/crates/egui-wgpu)
Compiling egui_glow v0.31.1 (/home/k/Coding/egui/crates/egui_glow)
Compiling egui_extras v0.31.1 (/home/k/Coding/egui/crates/egui_extras)
Compiling egui-winit v0.31.1 (/home/k/Coding/egui/crates/egui-winit)
Compiling eframe v0.31.1 (/home/k/Coding/egui/crates/eframe)
Compiling egui_demo_lib v0.31.1 (/home/k/Coding/egui/crates/egui_demo_lib)
Compiling egui_demo_app v0.31.1 (/home/k/Coding/egui/crates/egui_demo_app)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.11s
Running `target/debug/egui_demo_app`
[2025-05-31T14:01:09Z INFO eframe] Both the glow and wgpu renderers are available. Using wgpu.
[2025-05-31T14:01:09Z DEBUG eframe] Using the wgpu renderer
[2025-05-31T14:01:09Z DEBUG sctk] Bound new global [59] wl_output v4
[2025-05-31T14:01:09Z DEBUG sctk] Bound new global [31] zxdg_output_manager_v1 v3
[2025-05-31T14:01:09Z DEBUG sctk] Bound new global [10] wl_seat v7
[2025-05-31T14:01:09Z DEBUG sctk] Bound new global [16] wp_cursor_shape_manager_v1 v1
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Argb8888
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Xrgb8888
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Argb2101010
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Xrgb2101010
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Abgr2101010
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Xbgr2101010
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Abgr16161616
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Xbgr16161616
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Bgr888
[2025-05-31T14:01:09Z DEBUG sctk] supported wl_shm format Rgb888
[2025-05-31T14:01:09Z TRACE calloop::loop_logic] [calloop] Inserting new source #0
[2025-05-31T14:01:09Z TRACE calloop::loop_logic] [calloop] Inserting new source #1
[2025-05-31T14:01:09Z TRACE calloop::loop_logic] [calloop] Inserting new source #2
[2025-05-31T14:01:09Z TRACE eframe::native::run] Entering the winit event loop (run_app_on_demand)…
[2025-05-31T14:01:09Z DEBUG eframe::native::wgpu_integration] Event::Resumed
[2025-05-31T14:01:09Z DEBUG eframe::native::file_storage] Loading app state from "/home/k/.local/share/eguidemoapp/app.ron"…
[2025-05-31T14:01:09Z DEBUG egui_winit] Failed to set window size
[2025-05-31T14:01:09Z DEBUG egui_wgpu::setup] Creating wgpu instance with backends Backends(VULKAN | GL | METAL | DX12 | BROWSER_WEBGPU)
thread 'main' panicked at /home/k/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-25.0.0/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
Commit: 92fea8a
I'm running NixOs and this is my devshell:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=06d97499a426b5ccf87461a281889e64503cc017";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
buildDependencies = with pkgs; [
trunk
];
packageDependencies = with pkgs; [
# misc. libraries
openssl
pkg-config
# GUI libs
libxkbcommon
libGL
fontconfig
# wayland libraries
wayland
# x11 libraries
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
# equis specific
jack2
];
devDependencies = with pkgs; [
rustup
faust
];
in with pkgs; {
packages.default = let
manifest = (pkgs.lib.importTOML ./crates/equis-gui/Cargo.toml).package;
in pkgs.rustPlatform.buildRustPackage rec {
pname = manifest.name;
version = manifest.version;
cargoLock = {
lockFile = ./Cargo.lock;
allowBuiltinFetchGit = true;
};
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = with pkgs; [
pkg-config
makeWrapper
];
buildInputs = buildDependencies ++ packageDependencies;
postFixup = ''
patchelf $out/bin/equis \
--add-rpath ${pkgs.lib.makeLibraryPath packageDependencies}
wrapProgram $out/bin/equis \
--prefix LD_PRELOAD ${pkgs.lib.makeLibraryPath packageDependencies}
'';
};
devShells.default = mkShell rec {
buildInputs = buildDependencies ++ packageDependencies ++ devDependencies;
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
};
});
}
guivieiras, radiantly and UnknownSuperficialNight
Metadata
Metadata
Assignees
Labels
bugSomething is brokenSomething is broken