fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
28.92k stars 3.5k forks source link

[Bug]: Nothing is rendered on IOS WeChat browser when the canvas is too large #9159

Closed chuyun closed 1 year ago

chuyun commented 1 year ago

CheckList

Version

5.3.0

In What environments are you experiencing the problem?

Safari

Node Version (if applicable)

14.21.3

Link To Reproduction

none

Steps To Reproduce

  const canvas = new fabric.StaticCanvas('c', {
      width: 3165,
      height: 844,
      backgroundColor: 'red',
    });
    const rect = new fabric.Rect({
      width: 40,
      height: 40,
      top: 0,
      left: 0,
      fill: 'green',
    });
    canvas.add(rect);

open width IOS WeChat browser

Expected Behavior

rendering normal

Actual Behavior

do not render

Error Message & Stack Trace

No response

ShaMan123 commented 1 year ago

This is not our fault so it seems, out of memeory error probably, If you manage to render something without fabric (bare html canvas) I will reopen