-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android crashing with enabled bevy_audio #3648
Comments
The panic comes from here: For some reason it can't get the activity for the app, it must be something on |
Ah, I think I see whats going on here. The activity handle is actually initialized in #[cfg_attr(target_os = "android", ndk_glue::main(backtrace = "full"))] I wonder if there's a way to do that it bevy automatically? |
It's a part of bevy/crates/bevy_derive/src/bevy_main.rs Line 19 in a6d3cd9
|
Oh, right. Are you using it though? From reading the code in |
Yep, this is init problem with So, if you have a powerful device, maybe you didn't see this errors at all. |
Think this might be rust-mobile/ndk#211 |
winit is bringing in ndk 0.5, and rodio is using both ndk 0.3 and 0.6... so it's probably not possible to get audio working with bevy_audio... |
# Objective - Merge the examples on iOS and Android - Make sure they both work from the same code ## Solution - don't create window when not in an active state (from #6830) - exit on suspend on Android (from #6830) - automatically enable dependency feature of bevy_audio on android so that it works out of the box - don't inverse y position of touch events - reuse the same example for both Android and iOS Fixes #4616 Fixes #4103 Fixes #3648 Fixes #3458 Fixes #3249 Fixes #86
# Objective - Merge the examples on iOS and Android - Make sure they both work from the same code ## Solution - don't create window when not in an active state (from #6830) - exit on suspend on Android (from #6830) - automatically enable dependency feature of bevy_audio on android so that it works out of the box - don't inverse y position of touch events - reuse the same example for both Android and iOS Fixes #4616 Fixes #4103 Fixes #3648 Fixes #3458 Fixes #3249 Fixes #86
Bevy version
bevy#bc499591c2d090e17c95d2c59bc6e16ba60a023d
Operating system & version
Android 8
What you did
Enable
bevy_audio
on android.The text was updated successfully, but these errors were encountered: