Mapbox-gl-js: Chrome Canary: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope'

Created on 25 Nov 2019  Â·  5Comments  Â·  Source: mapbox/mapbox-gl-js

mapbox-gl-js version: v1.5.0

browser: Chrome Canary v80.0.3977.0

Steps to Trigger Behavior

  1. Open Mapbox example from documentation site (or any map) in latest Chrome Canary

Link to Demonstration

https://docs.mapbox.com/mapbox-gl-js/example/simple-map/

Expected Behavior

  • Map will be displayed as usual, as it does in Chrome (not Canary).

Actual Behavior

  • Map background is displayed but nothing else appears
  • Multiple errors in console related to Web Workers
  • Maps worked in Chrome Canary as of end of last week
Uncaught DOMException: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': ArrayBuffer at index 59 could not be transferred.
    at a (blob:https://docs.mapbox.com/b78f2a61-03c1-407d-8d75-2d354d3a65c1:1:294044)
    at blob:https://docs.mapbox.com/b78f2a61-03c1-407d-8d75-2d354d3a65c1:1:349126
    at o.L (blob:https://docs.mapbox.com/b78f2a61-03c1-407d-8d75-2d354d3a65c1:1:346699)
    at blob:https://docs.mapbox.com/b78f2a61-03c1-407d-8d75-2d354d3a65c1:1:346086
    at Fu.process (blob:https://docs.mapbox.com/b78f2a61-03c1-407d-8d75-2d354d3a65c1:1:293928)
    at MessagePort.Vu.MessageChannel._channel.port2.onmessage (blob:https://docs.mapbox.com/b78f2a61-03c1-407d-8d75-2d354d3a65c1:1:292300)

Screenshots

Screen Shot 2019-11-25 at 12 11 10
Screen Shot 2019-11-25 at 12 10 59

bug environment-specific release blocker

Most helpful comment

Here's a corresponding Chromium bug — please star it to indicate its importance to the Chromium team. Hopefully it will be fixed before this hits beta channel so we won't have to do lots of patch releases retroactively for previous minor versions.

All 5 comments

I have the same problem using Kepler.gl.

My hunch is that this is not a library issue, but something has changed in Chrome which prevents it to connect to the tile server and the worker cannot load the tiles any more.

Confirmed, investigating. Thanks for catching this!

All the errors happen when trying to transfer an zero-length array. Submitting a PR with a quick fix.

Here's a corresponding Chromium bug — please star it to indicate its importance to the Chromium team. Hopefully it will be fixed before this hits beta channel so we won't have to do lots of patch releases retroactively for previous minor versions.

This got fixed on the Chromium side. 🎉

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rigoneri picture rigoneri  Â·  3Comments

yoursweater picture yoursweater  Â·  3Comments

aderaaij picture aderaaij  Â·  3Comments

muesliq picture muesliq  Â·  3Comments

shotor picture shotor  Â·  3Comments