playcanvas / playcanvas/engine

Safari 14 CompileError: WebAssembly.Module doesn't parse at byte 58: invalid opcode 192, in function at index 16

Open
#5,681 5 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

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.
Screenshot 2023-09-27 at 12 07 10 PM

You can recreate this by opening the following project: https://poki.com/en/g/vortellis-pizza-delivery in Safari 14.

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.