Closed Bug 556808 Opened 15 years ago Closed 15 years ago

ASSERTION: unknown nsISVGValue: 'Not Reached', when appending segment to SVG path

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: longsonr)

Details

Attachments

(3 files)

See attached minimal testcase, which produces this output in my Linux debug build: > ###!!! ASSERTION: unknown nsISVGValue: 'Not Reached', file ../../../../../mozilla/content/svg/content/src/nsSVGElement.cpp, line 1003
Here's the backtrace when we hit the NOTREACHED. We hit it because i == count -- but in this case, they're both 0, actually.
Here's the code around the failure, to provide context for comment 1: 978 nsSVGElement::GetModificationDataForObservable(nsISVGValue* aObservable, [...] 992 PRUint32 i, count = mMappedAttributes.AttrCount(); 993 const nsAttrValue* attrValue = nsnull; 994 for (i = 0; i < count; ++i) { 995 attrValue = mMappedAttributes.AttrAt(i); 996 if (attrValue->GetSVGValue() == aObservable) { 997 break; 998 } 999 } 1000 1001 if (i == count) { 1002 NS_NOTREACHED("unknown nsISVGValue"); 1003 1004 return ObservableModificationData(nsnull, 1); 1005 }
And the testcase?
Attached image testcase 1
oops, sorry! meant to attach when filing bug. Here's the testcase.
Attached patch patchSplinter Review
mSegments is not mapped.
Assignee: nobody → longsonr
Attachment #437820 - Flags: review?(jwatt)
Attachment #437820 - Flags: review?(jwatt) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: