Open xelxebar opened 2 months ago
I'm not sure where you got that ./uad-ng.sh
file because we do not serve a shell script. If you ran something like nix shell nixpkgs#universal-android-debloater
to land into a devshell, you'll need to run uad-ng
.
We are aware of the fact that the nixpkgs derivation does not link libwayland but that should not affect you since you're using X.
You can check out the nix-flake branch I've been working on.
git clone https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation -b nix-flake
cd universal-android-debloater-next-generation
nix develop
cargo run
@lavafroth Uh, I forgot to sanitize ./uad-ng.sh
out. It's a temporary wrapper fix. Something at startup wants libxkbcommon-x11.so
but the nix wrapper doesn't have it in LD_LIBRARY_PATH
, causing initialization to fall over. I didn't intend to mix issues here, though.
Seeing the same panic on the nix-flake
branch, unfortunately:
x@myyrix ~/universal-android-debloater-next-generation$ git rev-parse HEAD
1adf69bd8d358c6393bd487ef56bee9bb0924ff2
x@myyrix ~/universal-android-debloater-next-generation$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.23s
Running `target/debug/uad-ng`
2024-05-01 17:00:58 WARN [/home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/xdisplay.rs:124] error setting XSETTINGS; Xft options won't reload automatically
2024-05-01 17:00:58 WARN [/home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-0.19.3/src/gles/egl.rs:788] EGL_MESA_platform_surfaceless not available. Using default platform
thread 'main' panicked at /home/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-hal-0.19.3/src/gles/egl.rs:789:88:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
If I read that log correctly, this panic happens inside the wgpu-hal crate however. So maybe it'd be beneficial to open an issue for them?
@Frigyes06 Maybe? It's happening at the line below in wgpu-hal
. They're explicitly performing an unsafe
operation which I assume is intentional. Possible that we're not correctly setting up the display environment or something?
if let (Some(library), Some(egl)) = (wayland_library, egl1_5) {
...
} else {
log::warn!("EGL_MESA_platform_surfaceless not available. Using default platform");
let display = unsafe { egl.get_display(khronos_egl::DEFAULT_DISPLAY) }.unwrap(); // <-- this line
(display, None, WindowKind::Unknown)
};
Describe the bug
Overview
The Nix package for 1.0.3 is crashing with the below error. Is anyone here able to reproduce?
Version Information
Expected behavior
Application should boot.
You have a solution?
No response
Provide logs
UAD_20240427.log
Acknowledgements