Closed Bug 605345 Opened 14 years ago Closed 14 years ago

"ABORT: Got a regular sample during startup state, expected an end sample instead"

Categories

(Core :: SVG, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla2.0b8
Tracking Status
blocking2.0 --- final+

People

(Reporter: jruderman, Assigned: birtles)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file, 1 obsolete file)

Attached image testcase with sketchy timer (obsolete) —
###!!! ABORT: Got a regular sample during startup state, expected an end sample instead: 'mElementState != STATE_STARTUP || aEndOnly', file /builds/slave/mozilla-central-macosx64-debug/build/content/smil/nsSMILTimedElement.cpp, line 506
Assigning to me for now.
Assignee: nobody → birtles
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Nominating as a blocker until I have time to look at it properly.
blocking2.0: --- → ?
Attached patch Patch v1aSplinter Review
The problem is that we end up getting negative container times because we're not being careful about how we handle pause state whilst a time container has no parent. This patch fixes that behaviour. I've also added two minor tweaks: a) Clear the mStartAnimationOnBindToTree flag in nsSVGSVGElement after we've used it since it only makes sense to call Begin on a time container once. b) Moved the point where we reset our max milestone in nsSMILTimedElement::BindToTree. This isn't strictly necessary, but it's a little more intuitive. Stepping through this with a debugger I noticed that we end up clearing this value and registering the milestone twice: firstly in Rewind and then again at the end of the method. That's no problem since nsSMILTimeContainer allows for that, but if we reset this value at the start of the method, then we'll skip registering the milestone a second time.
Attachment #484194 - Attachment is obsolete: true
Attachment #488396 - Flags: review?(dholbert)
Comment on attachment 488396 [details] [diff] [review] Patch v1a Looks great! r=dholbert
Attachment #488396 - Flags: review?(dholbert) → review+
Flags: in-testsuite?
Whiteboard: [waiting to checkin]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Whiteboard: [waiting to checkin]
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: