See https://codepen.io/arnog/pen/YgZdEZ
scrollZoom = true and zsmooth = 'fast'Result:
The array being created is the pixel array in which to draw the interpolated heatmap at traces/heatmap/plot.js:238
The problem seems to be that imageWidth and imageHeight are used here and later in the function, perhaps instead of canvasW and canvasH.
@arnog I could not replicate the particular error message you received. What operating system and web browser were you using?
@archmoj Can you reproduce this issue?
While investigating the issue reported by @arnog, I uncovered the following bug in heatmapgl: https://github.com/plotly/plotly.js/issues/3624
I managed to crash the browser tab zooming in on this plot. It got slower and slower as I zoomed in, eventually crashing. But I also see a bug when you zoom out, an increasingly small fraction of the total trace is shown.

Mac OS 10.14, Chrome 72.
I could reproduce the issue as well. When zooming in, the memory usage skyrockets from ~200M to a whopping 1500M.
NixOS 18.09, Chromium 69
Thanks @arnog