Large canvas drawImage Bug

In this test, a single small image (orange rectangle 1440x700px) is drawn onto a very large canvas element (2880x??px). When the canvas is large enough the drawImage function fails leading to a blank canvas and no errors in the browser console, but Chrome itself generates the following errors:

[5764:775:0925/172224.826100:ERROR:shared_image_backing_factory_gl_texture.cc(812)] CreateSharedImage: invalid size
[5764:775:0925/172224.826164:ERROR:shared_image_factory.cc(344)] CreateSharedImage: could not create backing.
[5764:775:0925/172224.826201:ERROR:shared_image_stub.cc(104)] SharedImageStub: Unable to create shared image

I am able to recreate this on Mac OSX 10.14.6 with Chrome Version 77.0.3865.90. For me, it breaks between 16000–17000px tall. Test it out below!

px  
Click generate above to run test.