Bug 68195 - ASSERTion failure with very large SVG Filter
: ASSERTion failure with very large SVG Filter
Status: NEW
: WebKit
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
: InRadar
: 68469
  Show dependency treegraph
Reported: 2011-09-15 15:14 PST by
Modified: 2014-03-02 10:20 PST (History)

test case (230 bytes, image/svg+xml)
2011-09-15 15:14 PST, Tim Horton
no flags Details


You need to log in before you can comment on or make changes to this bug.

Description From 2011-09-15 15:14:02 PST
Created an attachment (id=107555) [details]
test case

For some reason we ASSERT() if a filter is larger than an arbitrary maximum size; this is somewhat annoying, I feel like a web inspector warning or something might be better.

ASSERTION FAILED: isFilterSizeValid(rect)
/Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/platform/graphics/filters/FilterEffect.cpp(123) : PassRefPtr<WTF::ByteArray> WebCore::FilterEffect::asPremultipliedImage(const WebCore::IntRect &)
1   WebCore::FilterEffect::asPremultipliedImage(WebCore::IntRect const&)
2   WebCore::FEDisplacementMap::apply()
3   WebCore::RenderSVGResourceFilter::postApplyResource(WebCore::RenderObject*, WebCore::GraphicsContext*&, unsigned short, WebCore::Path const*)
4   WebCore::SVGRenderSupport::finishRenderSVGContent(WebCore::RenderObject*, WebCore::PaintInfo&, WebCore::GraphicsContext*)
------- Comment #1 From 2011-09-15 15:14:33 PST -------
------- Comment #2 From 2011-09-15 22:16:20 PST -------
That assertion looks wrong! single filter effects can be bigger than 5000x5000! Just the size of the source   is limited. The growing of effect size can be caused by the needs of single filter effects (e.g. blur needs a bigger image because of the blur radius).