playcanvas / playcanvas/engine

Basis loading gives error if Photon Emscripten SDK is loaded first

Open
#4,604 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

Project: https://playcanvas.com/project/975909/overview/basis-on-ios-14

The texture is not preloaded and therefore Basis WASM is loaded after the Photon Emscripten SDK. The error given is:

failed to initialize basis worker: TypeError: WebAssembly.compile is not a function

We recommend to use the default JS version of Photon SDK. Photon has mentioned that the Emscripten version is 'beta' and should not be used for production work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the linked PlayCanvas project and reproduce the case where the Photon Emscripten SDK loads before the Basis texture is preloaded. Read the Basis WASM loading path and the Photon SDK initialization behavior, then verify that the reported WebAssembly.compile error is resolved or that the supported SDK choice is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
computer-graphics, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.