-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Out of memory on transformed text #3
Comments
@myfreeweb I think this is not just with the <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="256" height="256">
<text x="10" y="10">Anything</text>
</svg> Digging through the UpdateSo, it seems that Cairo is returning cairo_status_t status = cairo_status(cr); https://github.com/walling/node-rsvg/blob/master/src/Rsvg.cc#L396 |
Same here. |
@raphdg No. Ended up giving up, as we had to move on. Would like to know where it ends up. Maybe I'll take a look at it over the weekend? |
Has anyone made any progress on this? This effectively means I have to call out to rsvg-convert instead of using node-rsvg.
FYI, from reading the Cairo API it looks like that function just reports pre-existing errors. So the |
A fix here would also be a huge help to me. |
any updates on this?
The only text value which is being render is 0. Otherwise, any of the above mentioned examples return the above error |
Looks like this is fixed in 2gis/node-rsvg which is, apparently, the official fork (it's listed as the website on npm). |
Does anyone have a fix for this. @myfreeweb the fork also does not fix this issue. I just tried it and run into the same issue. |
I also have a problem with this with the following SVG: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" pointer-events="none" width="50" height="50" style="width: 50px; height: 50px; background-color: #2196F3;">
<text text-anchor="middle" y="50%" x="50%" dy="0.36em" pointer-events="auto" fill="#ffffff" font-family="Helvetica, Arial, Lucida Grande, sans-serif" style="font-weight: 400; font-size: 28px;">
AD
</text>
</svg> |
I reported it in 2gis repository: 2gis#7 |
node-rsvg
blows up witherror: out of memory
whentext
(or a group withtext
, etc.) is transformed.rsvg-convert
works just fine though!Minimal test case:
The text was updated successfully, but these errors were encountered: