bevyengine / bevyengine/bevy

wgpu crashes on Redmi k60pro mobile phone due to too high of resolution

Open
#16,361 2 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug I-Crash O-Android S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

https://bevyengine.org/examples/3d-rendering/3d-scene/

This is my actual machine demonstration. Please tell me how to solve it. I also want to write a demo that can be displayed on mobile phones.
```
wasm_example.js:1885 panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:751:18:
Error in Surface::configure: Validation Error

Caused by:
`Surface` width and height must be within the maximum supported texture size. Requested was (4480, 2520), maximum extent for either dimension is 4096.

Stack:

Error
at imports.wbg.__wbg_new_abda76e883ba8a5f (https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example.js:1869:21)
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[53132]:0x125c108
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[15774]:0xfa878b
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[26849]:0x1177b99
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[22765]:0x109e733
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[9796]:0xd5761c
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[3380]:0x83cab6
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[51476]:0x124c632
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[2077]:0x6eced3
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[14528]:0xf1ac5d
```
![Image](https://github.com/user-attachments/assets/ba3f0752-de67-45ee-bd0a-698135c99f8e)

If you look at it from the browser's debugging page, it's normal, but I don't know why the progress bar doesn't disappear.

![Image](https://github.com/user-attachments/assets/41e5c97d-bdeb-4e30-ae22-211665c705bb)

It's the same with 2D

![Image](https://github.com/user-attachments/assets/4b23f7d3-8d84-445a-b1f9-350f12f92633)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.