SVG icon indicating copy to clipboard operation
SVG copied to clipboard

Error when opening the document

Open detmach opened this issue 5 years ago • 4 comments

Description

Sorry for bad english. When I try to open my svg files before converting to png, I encounter this error below

Example data

var svgDocument = SvgDocument.Open("filename.svg");

Sample File : https://svg-clipart.com/svg/glitch/57uVccz-grendaline-mask-vector.svg

** (process:15421): WARNING **: 03:37:02.116: Requested 3087975 bytes. Maximum size for region is 262144 bytes.

Used Versions

Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1062.18.1.el7.x86_64 Architecture: x86-64 bash-4.2$ dotnet --version 3.1.201

detmach avatar May 02 '20 01:05 detmach

The following seems to be cause. https://github.com/mono/linux-packaging-libgdiplus/blob/master/src/region-bitmap.c#L169

H1Gdev avatar May 03 '20 01:05 H1Gdev

I usually convert .SVG files to .PNG, this is the error I get when opening the file before converting. Do I have a chance to fix this or how can I go differently?

detmach avatar May 03 '20 13:05 detmach

No memory is allocated in Open method... Is there clue to 3087975 bytes ?

H1Gdev avatar May 04 '20 10:05 H1Gdev

how to fix it

koaqiu avatar Jun 15 '21 06:06 koaqiu