New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Severe performance regression on Firefox in v. 3.19 #145563
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
Thanks for the report @kristoffer-zliide 145563.movCan you provide a short video which shows the performance difference between chrome and firefox that too with respect to 3.16 vs 3.19 ? |
OK, I concede it's not so clear with such a simple app, but despite how basic it is I find it very noticeable, with frame rates subjectively between 1 and 5 fps. The point of the sample builds was mostly to prove that the regression occurred in 3.19.0; 3.16.9 is super smooth in Firefox. If you want a taste of how bad it is in a real app, try opening https://flutter-gallery-archive.web.app/ in Firefox. Firefox.performance.regression.mp4 |
@kristoffer-zliide |
Recent? You've known about this for almost four months? 😬 I've updated the description with links to builds based on |
Thanks for the update. I can't seem to notice the difference using the updated links in original description and also after compiling locally using the |
I can reproduce the bug and see significant drop of performance in firefox since 3.19.0. Problem not related to scroll, drop exists in all animations. |
It's not only performance in firefox since 3.19.0 - also TextFormFields in Dialogs jumping around like crazy as soon as you enter text into them. Fingers crossed for a fast fix, can't upgrade to 3.19.0 until Safari and Firefox is fixed again. Edit: |
Another flutter 3.19's firefox issue is #144731, and I believe this also can be fixed by flutter/engine@f4a4f04. See my comment for more details. |
In our case Flutter 3.19 is unusable on Web on Firefox, however I can confirm that on latest master I couldn't spot any notable issues. Please find these two examples.
UPDATE: |
@bc-lee is correct. This is due to https://bugzilla.mozilla.org/show_bug.cgi?id=1788206, which we had to revert. Unfortunately the cherry pick was denied. We'll probably have to do a hot fix. |
We see a major performance degradation for all Flame games in Firefox too, you can see it clearly with this example, or pretty much any example on that page. |
@yjbanov: can you point us in the direction of the reasoning behind the cherry-pick being denied? |
I did not participate in the cherry pick process, so I'm not sure. Unfortunately, I mistakenly thought that the original regression didn't make it into stable yet. At this point a hot fix is the only option as 3.19 is already out. |
OK, cool. Let's do a hotfix as soon as possible, then |
I would like to note that my CP request to stable was rejected by the Flutter team. They said:
If you want to change the Flutter team's decision, you can try to convince them by commenting on this issue or that CP request. |
I don't see "Use html renderer" as workaround. The html renderer should be deprecated and doesn't support many features of the canvas renderer. |
@bc-lee It is true that it was rejected by the Flutter team. The Flutter team is made of individuals though. We depend on communication to make best decisions and sometimes we fail. We became aware of this bug early on, as it was reported by a customer who lives on the bleeding edge, so I mistakenly believed that we fixed it quickly enough before it made into a release. Sorry about that. |
I'm preparing a hotfix now |
See flutter/engine#52141 !!! |
…Safari (#52141) Cherry pick of #49572 to fix flutter/flutter#145563 Cherry-pick request issue: flutter/flutter#146787 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
I can confirm that with Flutter 3.19.6, the issue is gone. Thanks for the cherry-pick! |
I can also confirm that it has been fixed in v. 3.19.6. Thank you very much! |
UPDATE: No longer true. We've been running outdated Canvaskit: #145563 (comment) In our case performance problem is slightly improved, but site is still quite unusable with visible hover delay and forms requiring multiple clicks in order to get focus. If you visit these sites on Firefox: Staging runs on latest When used Chromium both: |
@tomekit |
@tomekit: it seems you're sending a ~50kb to sentry.s3drive.app on every mouse move event over your form fields. So maybe it's not a performance regression issue you're experiencing but a drowning-in-exceptions issue, albeit only on Firefox in version 3.19 of Flutter. If you build using |
@kristoffer-zliide Thanks for finding that out, it helped us to realize that issue wasn't on the Flutter side. In our case the issue was outdated Thank you Flutter team. |
The issue is gone when you update to 3.16.6. Thank you, Flutter team, for the fast hotfix and good work prioritizing this. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
Use a website built with Flutter 3.19.0 or later in Firefox.
Code sample
Code sample
I've built ListView.7 sample on versions 3.16.9, 3.19.0, and 3.19.4 using the html and canvaskit renderers:
https://zliide.github.io/flutter_web_perf/3.16.9-canvaskit/
https://zliide.github.io/flutter_web_perf/3.16.9-html/
https://zliide.github.io/flutter_web_perf/3.19.0-9.0.pre-canvaskit/
https://zliide.github.io/flutter_web_perf/3.19.0-9.0.pre-html/
https://zliide.github.io/flutter_web_perf/3.19.0-canvaskit/
https://zliide.github.io/flutter_web_perf/3.19.0-html/
https://zliide.github.io/flutter_web_perf/3.19.4-canvaskit/
https://zliide.github.io/flutter_web_perf/3.19.4-html/
Try opening them in Firefox, scroll up and down a bit, and see if you can spot a pattern.
Performance profiling on master channel
Timeline Traces
Timeline Traces JSON
N/A; flutter run doesn't work with Firefox.
Video demonstration
Video demonstration
[Upload media here]
What target platforms are you seeing this bug on?
Web
OS/Browser name and version | Device information
Firefox v123
Does the problem occur on emulator/simulator as well as on physical devices?
Unknown
Is the problem only reproducible with Impeller?
N/A
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: