Open Bug 1887920 Opened 2 years ago Updated 3 months ago

Todoist triggers high CPU via constantly painting infinite SVG animations

Categories

(Core :: Web Painting, defect)

defect

Tracking

()

Tracking Status
firefox126 --- affected

People

(Reporter: jryans, Unassigned)

References

()

Details

Attachments

(2 files)

Firefox 126.0a1 (2024-03-25)
macOS 14.4
Todoist v5552

STR

  1. Load the redacted version of https://app.todoist.com/app/today attached to this bug
  2. Profiling should reveal constant painting because of ~20 SVG animations (search for animateTransform in the page inspector)

ER

Since these animations seem to cause no perceptible visual change, it would be best if they did not trigger constant painting work and CPU usage.

AR

The animations paint forever despite not doing anything.

Notes

I have separately notified Todoist about this issue, so they may change the live site soon to fix the issue on their side. mstange suggested this might be an interesting page to study to improve painting performance, so that's why I have filed it here.

Here's a profile I captured of page in question: https://share.firefox.dev/4cunDu1

Added another attempt at capturing the page, still redacting some things, but more elements are preserved. This version seems to get closer to live site performance.

On my system, the live site causes:
Content process: 50 - 60% CPU
Main process: 160 - 200% CPU

This "Redacted 2" version causes:
Content process: 36 - 38% CPU
Main process: 160 - 200% CPU

The live site is now fixed: Todoist v5569 no longer leaves stray animateTransforms on the page. Profilers confirm the infinite painting has stopped.

Thanks. A simplified version of the page that triggers the infinite (but useless) painting would make it easier to debug the issue. The total cpu use isn't too important, just the infinite useless painting.

The severity field is not set for this bug.
:tnikkel, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tnikkel)
Severity: -- → S3
Flags: needinfo?(tnikkel)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: