playcanvas / playcanvas/engine
Safari 14 CompileError: WebAssembly.Module doesn't parse at byte 58: invalid opcode 192, in function at index 16
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
This only affects a relatively small number of users using Safari 14, but I thought it was worth reporting anyway. The following output is from Poki.com's console error tracking API. This data was collected over 24 hours across ~200K gameplays. The project uses an unmodified version of PlayCanvas v1.65.3 with the Ammo.js library installed.
You can recreate this by opening the following project: https://poki.com/en/g/vortellis-pizza-delivery in Safari 14.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by opening the linked Vortellis Pizza Delivery project in Safari 14 and reviewing how the unmodified PlayCanvas v1.65.3 setup loads the installed Ammo.js library. Trace the WebAssembly compilation failure at byte 58 and function index 16, then verify the result against the reported Safari 14 reproduction. Done should include a confirmed cause and a tested compatibility outcome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, wasm
- Domain
- game-dev, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100