cambecc / earth

a project to visualize global weather conditions
http://earth.nullschool.net
MIT License
5.99k stars 1.17k forks source link

"TypeError: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData'." #98

Open poulson opened 5 years ago

poulson commented 5 years ago

After launching a server from the current source (and using the updated data download scripts described in https://github.com/cambecc/earth/pull/97), I can manipulate the underlying spherical earth model, but I get the render error:

TypeError: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData'.

Googling around for this error string, it seems to be common among a variety of projects and to be related to JSON serialization. Any thoughts?

EDIT: I should mention that this only happens in some browsers. For example, everything works in my Chrome installation but not my Brave installation. I will try to debug and post a fix.