Skip to content

Pipelined Rendering on Android crashing due to windows initialisation too early #3249

Closed
@mockersf

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorO-AndroidSpecific to the Android mobile operating system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions