skia-canvas: Error: Could not allocate new bitmap
Version 1.0.0 throws Error: Could not allocate new 100x100 bitmap
error when trying to save/buffer result image.
const canvas = new Canvas(100, 100)
const ctx = canvas .getContext("2d")
await canvas.toBuffer("jpg") //error
Downgrade to 0.9.30 fixes the issue.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 19 (9 by maintainers)
Tested both with rc2:
Version 1.0.1-rc1 👇
Version 1.0.0 👇
I’ve reinstalled
skia-canvas
as you described. Now when i runconsole.log(canvas.gpu)
it returnsfalse
. My laptop uses Intel UHD Graphics 620 video card, but as i know it supports Vulkan.