bevyengine / bevyengine/bevy

iOS WASM out of memory error - asset loading

Open
#12,921 5 comments 0 reactions 0 assignees View on GitHub
A-Assets C-Bug O-iOS O-Web
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

0.13.1

```
AdapterInfo { name: "Apple GPU", vendor: 4203, device: 0, device_type: Other, driver: "", driver_info: "", backend: Gl }
```

iOS 17.2

Loading 10 larger images quickly with `asset_server.load(format!("tester{}.webp", x));` on iOS web causes:
![317829886-81be22d5-7943-4ea4-a5b8-b9901db5d7a3](https://github.com/bevyengine/bevy/assets/1297926/68141274-0ff3-402c-9a2f-0107aeb63a82)

https://github.com/v-kat/bevy_bad_render_bug_repo has a reproduction

Also see https://github.com/bevyengine/bevy/discussions/12678#discussioncomment-9076015

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction repository and run the iOS 17.2 web case that loads 10 larger WebP images through asset_server.load(format!("tester{}.webp", x)). Read the linked discussion for related findings; done means identifying the asset-loading cause of the out-of-memory error and verifying the reproduction no longer fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, rust, wasm
Domain
game-dev, mobile-dev, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.