Skip to content

Creating a script "worker.js" will lead to racing condition with Basis. #8256

@Maksims

Description

@Maksims

If you create a script, that is called "worker.js" with basic ScriptType implementation called "worker", and use Basis in your project. Then there is a racing condition, where it can lead to Basis failing to load. Only replicable when loading with cleared cache, or there is a significant project size (some delay for loading?).

Project that replicates an issue: https://playcanvas.com/project/1440466/overview/model-viewer
Launch with "disable cache" checkbox in dev tools.

Error:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions