Jump to content


understanding onUpdate stack traces in chrome

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have recently noticed some large stack traces in my javascript console when debugging greensock tweens in chrome.

If you look at the example codepen url, you will see that `requestAnimationFrame (async)` is called repeatedly on every `onUpdate`.

I think something has changed in Chrome, as I don't ever recall seeing such long callbacks when debugging before.

Any suggestions how to reduce/suppress those stack traces?  (And out of curiosity, what's going on to cause those stack traces?)





See the Pen YxWXez?editors=0010 by jedierikb (@jedierikb) on CodePen

Link to comment
Share on other sites

Hm, I can't seem to reproduce that at all. Can you do a screen recording and show me how you're getting that? Also, do you maybe have a 3rd party Chrome extension that might be causing trouble somewhere? Are you running this in incognito mode? 

Link to comment
Share on other sites

No browser extensions installed.  This is on Chrome Version 60.0.3112.78 (Official Build) (64-bit) running on macOS 10.12.6 (16G29).


As you see in the video, the initial load does not have the large stack trace.  Those come with subsequent reloads.

Link to comment
Share on other sites

If you would like to disable async stack traces when Chrome Dev Tools is open, you can press Ctrl + Shift + p to access the Chrome Command Menu.


In the pop up list search area, type debugger .. Then click the following to disable

  • Debugger Do not capture async stack traces

Async Stack Traces are on by default now.. so doing the above will disable it :)




  • Like 5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.