FVTT-DD-Import icon indicating copy to clipboard operation
FVTT-DD-Import copied to clipboard

Import bug: ddimport.js:252 Uncaught TypeError: Cannot read property 'arrayBuffer' of null at ddimport.js:252

Open Merudo opened this issue 3 years ago • 3 comments

When I try to import a large map, the import stops after a while. If I look into the console, I see the following error:

ddimport.js:252 Uncaught TypeError: Cannot read property 'arrayBuffer' of null at ddimport.js:252

Merudo avatar Apr 25 '21 10:04 Merudo

Well that is somehow a known issue. The reliability of the browser canvas to handle large images is not always granted. Sometimes maps are partly missing, sometimes it does not work at all. I currently have no idea to work around that.

m42e avatar May 26 '21 18:05 m42e

image

image i have the same problem with a map.

i get this information at console image

stillday avatar Dec 20 '21 08:12 stillday

I had the same issue and found this thread.

After looking into it, the problem seems to come from the image being too bing and surpassing the limit size for the canvas.

(see https://stackoverflow.com/questions/6081483/maximum-size-of-a-canvas-element for limit per browser)

the quick fix is to reduce grid ppi (aka scale down the image so it fits inside a 16,384 x 16,384 image for modern browsers.

I think there should be an error specifying that the image is too big though

ThePhosphorus avatar Sep 16 '23 19:09 ThePhosphorus