Pipelined Rendering on Android crashing due to windows initialisation too early #3249
Closed
Description
Bevy version
4423a2f, current main
Operating system & version
macOS 12.0, compiling for Android
What you did
I updated example https://github.com/bevyengine/bevy/blob/main/examples/android/android.rs to use the new renderer and executed cargo apk run --example android
What you expected to happen
It should run.
What actually happened
Black screen on android, and the following message in the logs:
RustStdoutStderr: thread '<unnamed>' panicked at 'Cannot get the native window, it's null and will always be null before Event::Resumed and after Event::Suspended. Make sure you only call this function between those events.', /Users/francoismockers/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.26.0/src/platform_impl/android/mod.rs:598:13
Additional information
I didn't manage to run the example as is due to shaderc compilation issues
Activity