Crahsing on android
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
0.15.1
## Relevant system information
Im using
- windows 11
- android studio
- Simulation pixel 9 pro xl api 31
- cpu struct x86_64
- rustc 1.83.0 (90b35a623 2024-11-26)
## What you did
I have change build.gradle app the file for
compileSdk 33 -> compileSdk 34
abiFilters 'arm64-v8a' -> abiFilters 'x86_64'
and I have compile the code with
cargo ndk -t x86_64 -o android_example/app/src/main/jniLibs build
and build gradle with the android studio
## What went wrong
It is crashing because
1. Failed to start Gilrs. Gilrs does not support current platform. (I think is ok..)
2. wgpu-hal heuristics assumed that the view dimension will be equal to `Cube` rather than `CubeArray`.
3. wgpu-hal heuristics assumed that the view dimension will be equal to `D2` rather than `D2Array`.
4. gpu-hal heuristics assumed that the view dimension will be equal to `Cube` rather than `CubeArray`.
5. wgpu-hal heuristics assumed that the view dimension will be equal to `D2` rather than `D2Array`.
6. wgpu-hal heuristics assumed that the view dimension will be equal to `Cube` rather than `CubeArray`.
7. wgpu-hal heuristics assumed that the view dimension will be equal to `D2` rather than `D2Array`.
8. Device::create_render_pipeline error: Internal error in ShaderStages(FRAGMENT) shader: The selected version doesn't support Features(CUBE_TEXTURES_ARRAY)log.target = "wgpu_core::device::global"
9. Shader translation error for stage ShaderStages(FRAGMENT): The selected version doesn't support Features(CUBE_TEXTURES_ARRAY)log.target = "wgpu::backend::wgpu_core"; log.module_path = "wgpu::backend::wgpu_core";
10. Handling wgpu errors as fatal by defaultlog.target = "wgpu::backend::wgpu_core"; log.module_path = "wgpu::backend::wgpu_core";
Contributor guide
Research direction
Reproduce the Bevy 0.15.1 Android build using the listed Windows 11, Android Studio, Pixel 9 Pro XL API 31, compileSdk 34, and x86_64 setup. Inspect build.gradle and the cargo ndk command, then trace the reported wgpu-hal render-pipeline and CUBE_TEXTURES_ARRAY errors. Done means the app no longer crashes on that emulator, with the Gilrs warning assessed separately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, rust
- Domain
- computer-graphics, game-dev, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100