Giter Club home page Giter Club logo

Comments (4)

lavafroth avatar lavafroth commented on June 20, 2024

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

from universal-android-debloater-next-generation.

xelxebar avatar xelxebar commented on June 20, 2024

@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

from universal-android-debloater-next-generation.

Frigyes06 avatar Frigyes06 commented on June 20, 2024

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?

from universal-android-debloater-next-generation.

xelxebar avatar xelxebar commented on June 20, 2024

@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)
            };

from universal-android-debloater-next-generation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.