Skip to content

GLTF Loader panics when loading GLTF file #1475

Open
@TheNeikos

Description

@TheNeikos

Bevy version

0.4

Operating system & version

Latest Archlinux

What you did

[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<dyn bevy_render::renderer::render_resource_context::RenderResourceContext> (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-glTFRelated to the glTF 3D scene/model formatC-BugAn unexpected or incorrect behaviorP-CrashA sudden unexpected crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions