[Webkit-unassigned] [Bug 132557] New: SVG animation stops running.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 4 21:44:54 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=132557

           Summary: SVG animation stops running.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://jsfiddle.net/anvaka/CGcZ6/2/show/
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: anvaka at gmail.com
                CC: zimmermann at kde.org


I'm animating an SVG circle using circle.cx.baseVal property. It works fine when you try to directly access it:

circle.cx.baseVal.value = x;

But it stops working if you do something like this:

var update = (function (circle) {
  var pos = circle.cx.baseVal;
  return function (x) { pos.value = x; }
})(circleElement);

Pattern is similar in all cases. Dot moves for couple frames, then just stops. As soon as I replace pos.value with circle.cx.baseVal.value - all works fine. WebKit nightly requires more time to get it reproduced (usually happens within first 60 seconds). Release version of Safari reproduces it within first couple seconds.

Judging from this pattern, It seems it's GC related

Steps to Reproduce:
Navigate to http://jsfiddle.net/anvaka/CGcZ6/2/show/ - observe dot stops moving.
Source code: http://jsfiddle.net/anvaka/CGcZ6/2/

Expected Results:
Chrome and Firefox keep moving point on the screen indefinitely long.

Actual Results:
Point stops moving

Version:
Safari: Version 6.1.2 (7537.74.9), Version 7.0.2 (9537.74.9), Version 7.0.2 (9537.74.9, 538+)
OSX: 10.7.5, 10.9.2, iOS 7.0.6

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list