Having multiple versions of ndk-glue in the dependency tree leads to crashes because of uninitialized NATIVE_ACTIVITY.
Example: Including ndk-glue 0.5. When entering main(), NATIVE_ACTIVITY 0.5 gets initialized. Including Oboe crate that uses ndk-glue 0.4.0. When enumerating audio devices, i get:
thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', /Users/ric/.cargo/registry/src/github.com-1ecc6299db9ec823/ndk-glue-0.4.0/src/lib.rs:59:39
I tried using [patch.crates-io] but that does not seem to work.
This bug might be related to using resolver = "2" as required by wgpu.
Having multiple versions of ndk-glue in the dependency tree leads to crashes because of uninitialized
NATIVE_ACTIVITY.Example: Including ndk-glue 0.5. When entering
main(),NATIVE_ACTIVITY0.5 gets initialized. Including Oboe crate that uses ndk-glue 0.4.0. When enumerating audio devices, i get:I tried using
[patch.crates-io]but that does not seem to work.This bug might be related to using
resolver = "2"as required by wgpu.