GLTF Loader panics when loading GLTF file
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
**Bevy version**
0.4
**Operating system & version**
Latest Archlinux
**What you did**
```toml
[dependencies]
bevy = { version = "0.4", features = ["dynamic", "bevy_gltf"], default-features = false }
```
And then `asset_server.load_folder(...)`.
**What you expected to happen**
~~It allows me to load gltf files without having a render backend (Since I only need the mesh in this case)~~
It simply loads the gltf file.
**What actually happened**
~~A panic with the following message: `Resource does not exist alloc::boxed::Box`~~ (A dependency was activating the `render` feature of bevy but I was not adding a backend)
It panics with an error: "thread 'IO Task Pool (1)' panicked at 'Failed to find AssetLifecycle for label Some("Mesh0/Primitive0"), which has an asset type 8ecbac0f-f545-4473-ad43-e1f4243af51e. Are you sure that is a registered asset type?',"
**Additional information**
Contributor guide
Research direction
Start by reproducing the panic with Bevy 0.4, the bevy_gltf feature, and asset_server.load_folder(...) using the configuration in the issue. Trace the GLTF loader's handling of the Mesh0/Primitive0 asset lifecycle and verify that loading the GLTF file completes without the unregistered asset-type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100