Skip to content

Can't open the GLTF file #77

@WojciechTrzasko

Description

@WojciechTrzasko

Hello 👋

I'm trying to open the GLTF from app's local assets and I'm getting such error message:

Bad state: Cannot use origin without a scheme:

Similar error was reported on February (link).

It looks like the issue in the ModelViewerState, available in the model_viewer_mobile. When handling GLTF files the code calls url.origin, which by documentation is throwing exception when the scheme not equals http:// or https://. So when you are trying to load the model from assets (which has scheme assets://) or file (scheme == file://) then the load ends with error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions