engine icon indicating copy to clipboard operation
engine copied to clipboard

DataCloneError: Failed to execute 'postMessage' on 'Worker': #<Module> could not be cloned.

Open Devortel opened this issue 2 years ago • 1 comments

This only seems to affect Chrome 70 and older (~October 2018). It would be nice if this Worker incompatibility was gracefully handled in older browsers, understand it may not be a priority.

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. Screenshot 2023-09-27 at 2 48 42 PM

You can recreate by opening this project: https://poki.com/en/g/vortellis-pizza-delivery in Chrome 70 or older

Devortel avatar Sep 27 '23 04:09 Devortel

The Chromium version that corresponds to failing Chrome version (70.0.3538) - 587811. Here is a link to its Windows variant: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/587811/ or other variants: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html

No install needed. Unzip and open the game link - the error will be in console. Something with failing to send draco module to worker.

Edit: It actually happens in Editor as well, if the project is using Draco. Here is example project: https://playcanvas.com/editor/scene/1867478

image

LeXXik avatar Sep 27 '23 16:09 LeXXik