-
Notifications
You must be signed in to change notification settings - Fork 231
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
Process tries to allocate 133TB of memory #852
Comments
We also found a similar issue where the process is killed by the OS after starting to allocate tons of memory. SVG:<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><tg:svg xmlns:tg="http://www.w3.org/2000/svg" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id = "id0" xml:base ="&" xml:lang ="" xml:space= "preserve" externalResourcesRequired = "true" class ="" style = "" color="WcyqYi" color-rendering = "optimizeSpeed" enable-background="accumulate" fill= "" fill-opacity= "" stroke-dashoffset= "" stroke-linejoin = "miter" stroke-miterlimit="" stroke-width ="" color-interpolation-filters ="sRGB" font-stretch="ultra-condensed" font-style = "italic" font-weight="bolder" clip-path="GC" clip-rule ="inherit" filter="x@[QI" visibility ="hidden" lighting-color ="򹥜
" marker-mid="inherit" marker-end= "W" baseline-shift = "5.e5" dominant-baseline= "auto" glyph-orientation-vertical="229" text-decoration= "none" unicode-bidi="normal" clip= "" preserveAspectRatio= "xMinYMin " onfocusin= "
" onfocusout ="" onclick= "£" onmousedown ="f" onmouseup ="" onmouseover= "" onmouseout ="" onload = "ø
ŽW" onabort ="" onresize= "
􍀕
k" x="+1" width="+93in" contentStyleType="message" > <tg:circle id = "id1" xml:base= "q9a\m" color-interpolation ="auto" stroke-dasharray= "" stroke-dashoffset = "􈍮" stroke-linejoin = "round" clip-path ="inherit" clip-rule="nonzero" display ="table-cell" mask = "inherit" pointer-events = "visibleStroke" visibility= "hidden" transform = " " onfocusin=" " onactivate ="" onclick ="
" onmousedown = "@
" onmousemove=" " onload = "" cx= "4872em" cy= "+2e+6" r ="9mm"> <metadata id ="id2" xml:base= "s"> </metadata> <tg:animateColor id = "id3" xml:base="$%l(" requiredFeatures = "" onend=" " xlink:title= "" xlink:show= "replace" attributeName = "
Ì" begin= "󏞠. " dur ="" fill ="remove" calcMode ="discrete" keySplines = "Â" from ="
" additive="sum" accumulate ="sum"><desc id = "id5" xml:lang = "i-bnn" style =" " > </desc></tg:animateColor> <tg:animateMotion id = "id4" xml:base = "IN]'T" requiredFeatures= "" externalResourcesRequired="1" onend = "􁹯" onrepeat =" '喙" xlink:type="simple" xlink:role = "û" xlink:title ="" xlink:actuate = "none" xlink:href =":@\F" begin= "" dur = "" max = "" restart ="always" repeatCount ="×" fill ="remove" calcMode= "paced" values="
" keySplines="􌸝 " to ="|
" accumulate ="sum" path="" keyPoints= "" ><metadata id="id6" xml:base= "Nr@">
: </metadata> </tg:animateMotion> </tg:circle></tg:svg> |
The first of these is the same as #853, but with a different failure mode but the same solution. The stack trace for it is:
|
The second one is more interesting and I'd have to look more:
|
@yanschor If you could include the stack traces on future reports, that'd be great ... and if you can isolate what the actual issue is, that'd be good too. The test cases are already pretty minimal, but could be slightly more so with a bit of hand editing, probably! |
While processing the attached SVG file the process fails with the following error message:
memory allocation of 133671936000000 bytes failed
We know that limiting the memory allocation is already the topic of issue #815. But considering the scale of the allocated memory we thought that it might be interesting anyway.
Our team discovered the issue during a current research project focusing on the schema-based generation of test-data for different XML specification formats.
Steps to Reproduce
resvg <filepath> test.png
Environment:
• OS: macOS 15.1.1
• reSVG version: 0.44.0
SVG File:
The text was updated successfully, but these errors were encountered: